HereMap (API Reference)
Class HereMap
The representation of a dynamic and interactive geographic map. The map manages a collection of layers of objects and spaces, presents them in a stacked layout and offers the means to focus on a certain area. The layers, their relation to the objects and spaces, the layout and the representation style is described through a configuration.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMapIdleListener(MapIdleListener listener) Adds a listener for receiving idle state notifications and notifies it of the current state.getStyle()Gets the style that the map uses to customize the visual appearance of rendered features.voidremoveMapIdleListener(MapIdleListener listener) Removes a listener from receiving idle state notifications.
-
Method Details
-
addMapIdleListener
Adds a listener for receiving idle state notifications and notifies it of the current state.
The first notification received is always the state at the time of registration.
The new listener is appended to the set of
HereMapidle listeners as a strong reference. The caller is responsible for releasing the strong reference by callingremoveMapIdleListener(com.here.sdk.mapview.MapIdleListener).- Parameters:
listener-The listener
-
removeMapIdleListener
Removes a listener from receiving idle state notifications.
- Parameters:
listener-The listener
-
getStyle
Gets the style that the map uses to customize the visual appearance of rendered features.
Changes made to the map style using
Style.update(com.here.sdk.mapview.Style)are lost when new scene is loaded usingMapScene.loadScene(MapScheme, MapScene.LoadSceneCallback)and its variants as well as when map features are enabled or disabled usingMapScene.enableFeatures(java.util.Map<java.lang.String, java.lang.String>)andMapScene.disableFeatures(java.util.List<java.lang.String>).Note: This is a beta release of this feature, so there could be a few bugs and unexpected behavior. Related APIs may change for new releases without a deprecation process.
- Returns:
The style that the map uses to customize the visual appearance of rendered features.
-