Class HereMap
Class HereMap
- java.lang.Object
-
- com.here.NativeBase
-
- com.here.sdk.mapview.HereMap
-
public final class HereMap extends NativeBase
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMapIdleListener(MapIdleListener listener)Adds a listener for receiving idle state notifications and notifies it of the current state.StylegetStyle()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 Detail
-
addMapIdleListener
public void addMapIdleListener(@NonNull MapIdleListener listener)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
public void removeMapIdleListener(@NonNull MapIdleListener listener)Removes a listener from receiving idle state notifications.
- Parameters:
listener-The listener
-
getStyle
@NonNull public Style 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 disbaled 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.
-
-