Maps API for JavaScript Developer's Guide

H.map.layer.IMarkerLayer

Interface Summary

This interface describes a layer which provides marker objects to the renderer.

[ For full details, see the Interface Details ]

Method Summary

Table 1. Methods
Methods

requestMarkers (boundingRect, zoomLevel, cacheOnly, prioCenter) : {(H.map.layer.IMarkerLayer.Response | H.map.layer.IMarkerLayer.TiledResponse)}

This method requests marker objects for provided bounding rectangle.

requestDomMarkers (boundingRect, zoomLevel, cacheOnly, prioCenter) : {(H.map.layer.IMarkerLayer.Response | H.map.layer.IMarkerLayer.TiledResponse)}

This method requests dom marker objects for provided bounding rectangle.

Interface Description

This interface describes a layer which provides marker objects to the renderer.

Adding a layer implementing this interface to the layer collection causes the render engine to render marker objects provided by the requestMarkers function.

Method Details

requestMarkers (boundingRect, zoomLevel, cacheOnly, prioCenter) : {(H.map.layer.IMarkerLayer.Response | H.map.layer.IMarkerLayer.TiledResponse)}

This method requests marker objects for provided bounding rectangle.

The implementation of this method must return all marker objects which are contained within this bounding rectangle.

The response object returned by this method must contain the number of objects which intersect with the bounding rectangle.

This method will be called by the renderer for each rendering cycle. An implementing object must make sure that calling this method does not impede the rendering process.

Parameters:
 
boundingRect:
{H.geo.Rect}
 
the bounding rectangle for which marker are to be returned
zoomLevel:
{number}
 
The zoom level for which the objects are requested
cacheOnly:
{boolean}
 
Indicates whether only cached objects are to be considered
prioCenter:
{H.math.Point}
 
The priority center as an offset in screen pixel relative to the center
Returns:
 
{(H.map.layer.IMarkerLayer.Response | H.map.layer.IMarkerLayer.TiledResponse)}
a response object containing the number of markers and the markers themselves

requestDomMarkers (boundingRect, zoomLevel, cacheOnly, prioCenter) : {(H.map.layer.IMarkerLayer.Response | H.map.layer.IMarkerLayer.TiledResponse)}

This method requests dom marker objects for provided bounding rectangle.

The implementation of this method must return all dom marker objects which are contained within this bounding rectangle.

The response object returned by this method must contain the number of objects which intersect with the bounding rectangle.

This method will be called by the renderer for each rendering cycle. An implementing object must make sure that calling this method does not impede the rendering process.

Parameters:
 
boundingRect:
{H.geo.Rect}
 
the bounding rectangle for which marker are to be returned
zoomLevel:
{number}
 
The zoom level for which the objects are requested
cacheOnly:
{boolean}
 
Indicates whether only cached objects are to be considered
prioCenter:
{H.math.Point}
 
The priority center as an offset in screen pixel relative to the center
Returns:
 
{(H.map.layer.IMarkerLayer.Response | H.map.layer.IMarkerLayer.TiledResponse)}
a response object containing the number of markers and the markers themselves

You cannot use this account to purchase a commercial plan on Developer Portal, as it is already associated to plans with different payment methods.

To purchase a commercial plan on Developer Portal, please register for or sign in with a different HERE Account.

Something took longer than expected.

The project should be available soon under your projects page.

Sorry, our services are not available in this region.

Something seems to have gone wrong. Please try again later.

We've detected that your account is set to Australian Dollars (AUD).
Unfortunately, we do not offer checkouts in AUD anymore.
You can continue using your current plan as normal, but to subscribe to one of our new plans,
please register for a new HERE account or contact us for billing questions on selfservesupport@here.com.