use of io.jawg.osmcontributor.ui.utils.views.map.marker.WayMarkerOptions in project osm-contributor by jawg.
the class MapFragment method updateVectorials.
public void updateVectorials(Set<Way> ways, TreeSet<Double> levels) {
for (Way way : ways) {
mapboxMap.addPolyline(way.getPolylineOptions());
for (PoiNodeRef poiNodeRef : way.getPoiNodeRefs()) {
WayMarkerOptions wayMarkerOptions = new WayMarkerOptions().position(poiNodeRef.getPosition()).poiNodeRef(poiNodeRef).icon(IconFactory.getInstance(getActivity()).fromBitmap(bitmapHandler.getNodeRefBitmap(PoiNodeRef.State.NONE)));
addWayMarker(wayMarkerOptions);
markersNodeRef.put(poiNodeRef.getId(), wayMarkerOptions);
polylinesWays.put(poiNodeRef.getId(), way.getPolylineOptions());
}
}
}
use of io.jawg.osmcontributor.ui.utils.views.map.marker.WayMarkerOptions in project osm-contributor by jawg.
the class MapFragment method clearAllNodeRef.
private void clearAllNodeRef() {
for (WayMarkerOptions locationMarker : markersNodeRef.values()) {
removeWayMarker(locationMarker);
}
for (PolylineOptions polylineOptions : polylinesWays.values()) {
removePolyline(polylineOptions);
}
markersNodeRef.clear();
polylinesWays.clear();
}
Aggregations