use of com.google.maps.android.geojson.GeoJsonPoint in project iosched by google.
the class MapFragment method highlightRoom.
private boolean highlightRoom(String roomId) {
if (roomId == null) {
return false;
}
// Hide the active marker.
deselectActiveMarker();
GeoJsonFeature highlightedFeature = mMarkers.get(roomId);
if (highlightedFeature == null) {
// Room not found. Deselect active marker and hide the info details anyway.
mCallbacks.onInfoHide();
return false;
}
selectMarker(highlightedFeature);
GeoJsonPoint room = (GeoJsonPoint) highlightedFeature.getGeometry();
centerMap(room.getCoordinates());
return true;
}
Aggregations