Skip to content

Commit

Permalink
let maprenderer know if contextual to update tracking (#2459)
Browse files Browse the repository at this point in the history
  • Loading branch information
zozer committed Apr 14, 2023
1 parent 1f3fe06 commit ce1aa23
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -156,7 +156,8 @@ public static DenizenMapRenderer getDenizenRenderer(MapView map) {
int mapId = map.getId();
DenizenMapRenderer dmr;
if (!mapRenderers.containsKey(mapId)) {
dmr = new DenizenMapRenderer(map.getRenderers(), false, false);
boolean contextual = map.isTrackingPosition() || map.isUnlimitedTracking();
dmr = new DenizenMapRenderer(map.getRenderers(), false, contextual);
setMap(map, dmr);
}
else {
Expand Down

0 comments on commit ce1aa23

Please sign in to comment.