MTMapViewController
Object exposing methods and properties that enable changes to the map, and events that can be interacted with.
Properties
Functions
Registers a content delegate that observes map events without replacing the primary delegate.
Returns whether all currently requested tiles are loaded.
Centers the map on the coarse location inferred from the device's public IP address.
Changes any combination of center, zoom, bearing and pitch with an animated transition between old and new values.
Fits the viewport so that the supplied bounds are fully visible, applying optional padding or animation overrides.
Initiates an animated fit to the coarse bounds derived from the device's public IP address.
Changes any combination of center, zoom, bearing, and pitch, animating the transition along a curve that evokes flight.
Returns the map's current bearing.
Returns the elevation of the location currently targeted by the camera, in meters above sea level.
Returns whether the map's center is clamped to the ground.
Returns the elevation of the map's center point in meters above sea level.
Returns the geographical constraints currently applied to the map, if any.
Returns the map's maximum pitch.
Returns the map's maximum zoom level.
Returns the map's minimum pitch.
Returns the map's minimum zoom level.
Returns the pixel ratio currently used to render the map.
Returns the current map projection type. Defaults to MTProjectionType.MERCATOR if unavailable.
Returns whether the map is set to render multiple world copies.
Converts a GPX XML payload to a GeoJSON FeatureCollection string using the SDK converter.
Changes any combination of center, zoom, bearing, and pitch, without an animated transition
Converts a KML XML payload to a GeoJSON FeatureCollection string using the SDK converter.
WebGL Context error handler
Unregisters a previously registered content delegate.
Sets bearing of the map.
Sets the elevation of the map's center point, in meters above sea level.
Sets the center clamped to the ground.
Constrains map interactions to the provided bounds, or removes the constraint when null is supplied.
Sets the maximum number of images (raster tiles, sprites, icons) to load in parallel.
Sets the map's maximum zoom.
Sets the map's minimum zoom.
Sets the padding in pixels around the viewport.
Overrides the pixel ratio used to render the map.
Sets the map's RTL text plugin. Necessary for supporting the right-to-left text direction found in languages like Arabic and Hebrew.
Sets the secondary map language.
Set the map terrain.
Set the duration (millisec) of the terrain animation for growing or flattening. Must be positive.
Change the terrain exaggeration.
Sets the map's vertical field of view in degrees (defaults to 36.87 degrees).
Show or hide collision boxes
Show or hide overdraw inspector
Show or hide padding
Show or hide tile boundaries
Snaps the map so that north is up (bearing 0), animating the transition.
Trigger the rendering of a single frame. Use this method with custom layers to repaint the map when the layer changes. Calling this multiple times before the next frame is rendered will still result in only a single frame being rendered.
Zooms the map to the specified zoom level, with an optional animation.