Map Controller
Core controller managing map state, rendering, and interactions.
Handles map positioning (zoom, center), tile management, marker rendering, shape drawing, camera animations, and touch event processing.
This class is used internally by OpenMapView and is not part of the public API.
Properties
Functions
Parses GeoJSON and adds all features to the map.
Adds a polygon to the map.
Adds a polyline to the map.
Animates the camera to a new position.
Removes all markers from the map.
Removes all polygons from the map.
Removes all polylines from the map.
Creates a Projection instance for coordinate conversions.
Returns the current camera position.
Returns a copy of all markers on the map.
Returns the current maximum zoom level preference.
Returns the current minimum zoom level preference.
Returns a copy of all polygons on the map.
Returns a copy of all polylines on the map.
Finds the info window at the specified screen coordinates.
Finds the topmost marker at the specified screen coordinates.
Checks if a touch at screen coordinates hits a clickable polygon.
Checks if a touch at screen coordinates hits a clickable polyline.
Moves the camera instantly to a new position.
Removes a marker from the map.
Removes a polygon from the map.
Removes a polyline from the map.
Resets the min/max zoom preferences to their defaults (2.0 - 19.0).
Converts screen coordinates to geographic coordinates.
Sets the maximum zoom level preference.
Sets the minimum zoom level preference.
Sets a callback to be invoked when tiles finish loading.
Sets the view dimensions for rendering calculations.
Stops any ongoing camera animation.
Updates the temporary pan offset during a drag gesture.