Esempio n. 1
0
  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);
  }
Esempio n. 2
0
 public void addPoi(SimpleFeature simpleFeature) {
   MarkerItem markerItem = simpleFeature.getMarker();
   poiMarkersLayer.addItem(markerItem);
 }