Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
801e0bbc74
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ public class DistanceCalculatorPlugin extends OsmandPlugin {
|
|||
@Override
|
||||
public void updateLayers(OsmandMapTileView mapView, MapActivity activity) {
|
||||
if(isActive()) {
|
||||
if(distanceCalculatorLayer == null) {
|
||||
registerLayers(activity);
|
||||
}
|
||||
if(!mapView.isLayerVisible(distanceCalculatorLayer)) {
|
||||
activity.getMapView().addLayer(distanceCalculatorLayer, 4.5f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue