Hi everyone,
does anyone experiences the same behavior?
Platform: Android
Mapbox SDK version: 6.1.2
Mapbox location layer plugin: 0.5.2
When using the new location plugin (https://github.com/mapbox/mapbox-plugins-android/tree/master/plugin-locationlayer) no zoom to the max level (25) is possible anymore. This can be seen in the demo app also: https://github.com/mapbox/mapbox-android-demo/blob/a411fa95cd71c1b90a30895060b319310444aebb/MapboxAndroidDemo/src/main/java/com/mapbox/mapboxandroiddemo/examples/plugins/LocationPluginActivity.java
Max zoom (25) is possible/ensured
Max zoom (25) is not possible/ensured
Hey @mrfaa, since v0.5.0 of the LocationLayerPlugin this is an expected behavior. To overwrite these settings and enable a wider range of zoom levels use max/min zoom options which default to 18 and 2 respectively. Enabling a bigger max zoom value might result in a choppy animation during location tracking.
@LukasPaczos thank you very much! Thats it! Maybe a consolidation/harmonization of the max/min zoom setter methods is an option, otherwise it needs to be done in the MapboxMap and in the LocationLayerOptions objects.
I'm happy it helped! LocationLayerPlugin calls into the same MapboxMap methods that set the max/min zoom on the map object itself, so setting a plugin option should be enough. Let us know if it's still an issue.
Thank you for clarifying this point: it wasn't quite obvious that enabling the Mapbox Android LocationLayerPlugin whould change max zoom value!
Most helpful comment
Thank you for clarifying this point: it wasn't quite obvious that enabling the Mapbox Android LocationLayerPlugin whould change max zoom value!