public void centerOn(SimpleFeature simpleFeature, double zoom) { MarkerItem focused = poiMarkersLayer.getFocus(); if (focused != null) { focused.setMarker(null); } focused = poiMarkersLayer.getByUid(simpleFeature); if (focused != null) { focused.setMarker(highlightMarker); poiMarkersLayer.setFocus(focused); } GeoPoint geoPoint = simpleFeature.getGeoPoint(); getMap().animator().animateTo(DURATION, geoPoint, zoom, false); }
public void addPoi(SimpleFeature simpleFeature) { MarkerItem markerItem = simpleFeature.getMarker(); poiMarkersLayer.addItem(markerItem); }