MapClass

Properties

public Object box the current map bounding box. Can be used to get and set the current bounding box.
public Object center the current map center. Can be used to get and set the current map center.
public Boolean addressLookup Enables long press on map and click on the position marker to show the info bubble with the address of the place.
public Object position position property can be used to retrieve the current latitude and longitude
public nokia.mh5.ui.Button settingsButton button, which opens the map settings dialog
public nokia.mh5.components.InfoBubble infoBubble control which appears, if the user clicks on one of the POIs or position marker or does a long press on the map. If the info bubble is visible, the property is not null. If it's hidden, it's null. In other words this is the current selection of the user. The default infoBubble shows the content of the "name" property of the clicked poi's.
public Object infoBubbleParams configuration object for the infobubble
public nokia.mh5.ui.Button positionButton button, which the user can use to move the map to their position, if the position is localized, and to start the tracking of the user position. If the user position is localized, the button gets green color, if the position is unknown, it's grey.
public Object schema specific schema of the map. Can be used to get and set the current schema of the map. Possible values are "normal.day", "hybrid.day", "normal.day.transit", "normal.day.traffic"
public Array pois It's experimental property which should make creation of pois easier. If you update this property with an array of poi data the map will call createPoi for every element in the array. You can specify the icon of every poi via "mapIcon" if this icon is specific for map only. If the "mapIcon" property is missing nokia.mh5.utils.place.getCategoryIcon will be used to get the right icon for the poi.
public nokia.mh5.ui.Control mapLogo the nokia logo shown on the map
public Object offset the current map offset, accordingly with the top, left corner of the current page. Can be used to get and set the current map offset.
public Boolean passive setting to disable all the map controls, cartoPois, positioning and events. The component shows a non interactive map.
public Object route object describing the route points.
public Object size the current map canvas size. Can be used to get and set the canvas size.
public Object statics Properties of this object will be attached to constructor function as statics
public Boolean tracking enables and disables tracking mode of the map. The map follows the user position. Set this property only if the position is available.
public Object zoom the current zoom level. A number between 3 and 19. Can be used to get and set the zoom.
public nokia.mh5.ui.Container zoomButtons zoom buttons container containing zoom in and zoom out button. It's displayed on devices which don't support pinching