Update icons
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 1.7 KiB |
|
@ -90,8 +90,8 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
||||||
} else {
|
} else {
|
||||||
if (parkingLayer == null) {
|
if (parkingLayer == null) {
|
||||||
registerLayers(activity);
|
registerLayers(activity);
|
||||||
|
mapView.addLayer(parkingLayer, 5);
|
||||||
}
|
}
|
||||||
mapView.addLayer(parkingLayer, 5);
|
|
||||||
}
|
}
|
||||||
if(parkingPlaceControl == null){
|
if(parkingPlaceControl == null){
|
||||||
registerWidget(activity);
|
registerWidget(activity);
|
||||||
|
@ -103,7 +103,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
||||||
if (mapInfoLayer != null) {
|
if (mapInfoLayer != null) {
|
||||||
parkingPlaceControl = createParkingPlaceInfoControl(activity, mapInfoLayer.getPaintText(), mapInfoLayer.getPaintSubText());
|
parkingPlaceControl = createParkingPlaceInfoControl(activity, mapInfoLayer.getPaintText(), mapInfoLayer.getPaintSubText());
|
||||||
mapInfoLayer.getMapInfoControls().registerSideWidget(parkingPlaceControl,
|
mapInfoLayer.getMapInfoControls().registerSideWidget(parkingPlaceControl,
|
||||||
R.drawable.list_activities_parking_position_menu, R.string.map_widget_parking, "parking", false,
|
R.drawable.list_activities_poi_parking, R.string.map_widget_parking, "parking", false,
|
||||||
EnumSet.allOf(ApplicationMode.class), EnumSet.noneOf(ApplicationMode.class), 8);
|
EnumSet.allOf(ApplicationMode.class), EnumSet.noneOf(ApplicationMode.class), 8);
|
||||||
mapInfoLayer.recreateControls();
|
mapInfoLayer.recreateControls();
|
||||||
}
|
}
|
||||||
|
@ -432,7 +432,7 @@ public class ParkingPositionPlugin extends OsmandPlugin {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
parkingPlaceControl.setText(null, null);
|
parkingPlaceControl.setText(null, null);
|
||||||
parkingPlaceControl.setImageDrawable(map.getResources().getDrawable(R.drawable.list_activities_parking_position_menu));
|
parkingPlaceControl.setImageDrawable(map.getResources().getDrawable(R.drawable.list_activities_poi_parking));
|
||||||
return parkingPlaceControl;
|
return parkingPlaceControl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|