コード例 #1
0
ファイル: MapFragment.java プロジェクト: hrabbey/open
  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);
  }
コード例 #2
0
ファイル: MapFragment.java プロジェクト: hrabbey/open
 public void addPoi(SimpleFeature simpleFeature) {
   MarkerItem markerItem = simpleFeature.getMarker();
   poiMarkersLayer.addItem(markerItem);
 }