Search in sources :

Example 1 with GeoJsonPoint

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;
}
Also used : GeoJsonFeature(com.google.maps.android.geojson.GeoJsonFeature) GeoJsonPoint(com.google.maps.android.geojson.GeoJsonPoint)

Aggregations

GeoJsonFeature (com.google.maps.android.geojson.GeoJsonFeature)1 GeoJsonPoint (com.google.maps.android.geojson.GeoJsonPoint)1