MapViewPosition class
Constructors
MapViewPosition (double ? _latitude , double ? _longitude , int zoomLevel , int indoorLevel , int tileSize , double _rotation )
MapViewPosition.indoorLevelDown (MapViewPosition old )
MapViewPosition.indoorLevelUp (MapViewPosition old )
MapViewPosition.move (MapViewPosition old , double ? _latitude , double ? _longitude )
MapViewPosition.rotate (MapViewPosition old , double _rotation )
MapViewPosition.scaleAround (MapViewPosition old , Mappoint ? focalPoint , double scale )
sets the new scale relative to the current zoomlevel. A scale of 1 means no action,
0..1 means zoom-out (you will see more area on screen since at pinch-to-zoom the fingers are moved towards each other)
MapViewPosition.setCenter (MapViewPosition old , double x , double y )
MapViewPosition.setIndoorLevel (MapViewPosition old , int indoorLevel )
MapViewPosition.setLeftUpper (MapViewPosition old , double left , double upper , Dimension mapDimension )
MapViewPosition.zoom (MapViewPosition old , int zoomLevel )
MapViewPosition.zoomAround (MapViewPosition old , double latitude , double longitude , int zoomLevel )
MapViewPosition.zoomIn (MapViewPosition old )
MapViewPosition.zoomInAround (MapViewPosition old , double latitude , double longitude )
MapViewPosition.zoomOut (MapViewPosition old )
Methods
calculateBoundingBox (Dimension mapDimension )
→ BoundingBox
Calculates the bounding box of the given dimensions of the view. Scaling or focalPoint are NOT considered.
getCenter ()
→ Mappoint
Returns the center of the map in absolute mappixels
getLeftUpper (Dimension mapDimension )
→ Mappoint
returns the absoulute pixel-coordinates of the left-upper point of the mapview.
Since this is confusing while rotating the map we encourage you to use center()
instead and calculate everything from there.
hasPosition ()
→ bool
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
override