![]() Starts the map, creating rendering resources as necessary. See also: Understand the Activity Lifecycle OnCreate You must override lifecycle methods in parent activity or fragment, and call respective MapView methods listed below. IOS readonly) MSMapUserLocation* userLocation Returns an instance of the MapUserLocation class to access the user location API.Īndroid MapUserLocation getUserLocation() IOS (nonatomic) MSMapStyleSheet *styleSheet Void setMapStyleSheet(MapStyleSheet mapStyleSheet) Specifies the style sheet that defines the style of the map, such as Road Light, Aerial, or other styles. IOS (nonatomic, readonly) double zoomLevel Returns the zoom level of the current view. See also: ViewPadding iOS (nonatomic) UIEdgeInsets viewPadding ViewPadding setViewPadding(double left, double top, double right, double bottom) Specifies the padding inside the map control in device-independent pixels.Īndroid void setViewPadding(ViewPadding viewPadding) IOS (nonatomic, readonly) MSMapUserInterfaceOptions *userInterfaceOptions Returns a container class that lets a developer access configuration controls for the map user interface.Īndroid MapUserInterfaceOptions getUserInterfaceOptions() IOS (nonatomic) BOOL transitFeaturesVisible Void setTransitFeaturesVisible(boolean visible) The string can be an ISO 3166 two-letter uppercase code associated with a country or region.ĭetermines whether transit features (e.g., transit stops) are rendered on the map.Īndroid boolean isTransitFeaturesVisible() World including borders and contested regions. Different regions of the world have different views of the Specifies the region of the world to display a map for. Note that pitch may be limited in some views. Values outside of this range will cause an exception. Specifies the pitch of the camera in degrees, where 0 is looking straight down (minimum) and 90 is looking towards Note that in Android, class is used since is only available in API level 21. Specifies the size of rendered map in device-independent pixels. IOS (nonatomic) MSMapProjection projection Void setMapProjection(MapProjection mapProjection) Specifies the projection used to render the map. IOS (nonatomic) MSMapRenderMode renderMode Void setMapRenderMode(MapRenderMode mapRenderMode) Raster tiles will generally give a faster framerate IOS (nonatomic, readonly) MSMapLayerCollection *layersĭetermines whether to render maps using raster tiles or vector data. Rather, on Windows, directly add any elements you may have the to the MapElements collection exposed Note that this concept of independent layers doesn't exist on the Windows version of the control. Returns developer-added layers of content for the map. IOS (nonatomic) IBInspectable NSString *credentialsKey Get credentials at Android void setCredentialsKey(String credentialsKey) Specifies the license key authorizing use of the map. Example values: "en-US", "ko-KR", "ja-JP". The string can optionally be combined with an ISO 3166 two-letter uppercase subculture code associated with a country The string can be an ISO 639 two-letter lowercase culture code associated with a language. Specifies the language to be used when rendering locale-specific strings like country and city names. IOS (nonatomic) CLLocationDirection heading Specifies the heading of the view in degrees where 0 is north, 90 is east, 180 is south, and 270 is west. IOS (nonatomic, readonly) MSGeopath *nearVisibleRegion Returns the current geopath is the right-hand traverse of the approximate area of interest in the current map view. IOS (nonatomic, readonly) MSGeopath *fullVisibleRegion Returns the current geopath that is the right-hand traverse of the currently visible area. IOS (nonatomic, readonly) MSGeopoint *mapCenter The "center" that is returned may not be at the physical center of the control's viewable rectangle. Keep in mind that in oblique views (where some horizon is shown), ![]() IOS (nonatomic, readonly) MSMapCamera *camera For example, when updating the Center property or calling the SetScene method. ![]() The map's camera settings are updated whenever Returns the current perspective of the current view of the map. IOS (nonatomic) BOOL businessLandmarksVisible Void setBusinessLandmarksVisible(boolean visible) ![]() Void setBuildingsVisible(boolean visible)ĭetermines whether business landmarks (e.g., restaurants, hotels) are rendered on the map.Īndroid boolean isBusinessLandmarksVisible() IOS (nonatomic, readonly) MSGeoboundingBox *mapBoundsĭetermines whether 3D buildings are rendered on the map. Returns the current geo-bounding box bounds of the current view. MapView( context, attributeSet, MapRenderMode rasterRenderMode) This is the master class for using the Map functionality within maps.Īndroid class MapView extends FrameLayoutĪndroid MapView( context, MapRenderMode rasterRenderMode) ![]()
0 Comments
Leave a Reply. |