here-api

Min and max zoom in here api


Is there any way to actually set a min and max zoom on the map that would be run before the different event types.

Right now I have tried to add a listener on mapviewchange, mapviewchangeend, mapviewchangestart that manually set's the zoom, but it's a really hacky solution that makes the screen "jump".

I've looked through the documentation, but can't really find anything. Anyone knows?


Solution

  • Sorry, we do not have a set of APIs to actively clip the min and max zoom.

    However, on Android you can intercept the rendering thread and properly cap the zoom level without the jumping effect.

    Please see MapRenderListener The method onPredraw() will callback just before the map is rendered. Here, you can get and set the zoom level and limit the zoom level as needed.