I want to check if the marker is in the current view bounds using Here Map and javascript.
I'm looking for something equivalent to map.getBounds().contains(marker.getPosition())
but in
Here Maps API
I want to check if the marker is in the current view bounds using Here Map and javascript.
I'm looking for something equivalent to map.getBounds().contains(marker.getPosition())
but in
Here Maps API
Here maps uses boundingBox Objects to check if elements(or events) are within the box.
What you can do, is give get the boundingBox of the map(at the current zoom level), and then check the 4 corners of the map, again marker position as shown here.
For a more in-depth explanation of boundingBox, look here.