/** * Renders the layer on the given map. The layer on the current map is removed and * added to the given map. * * @param map to render the layer on, if null the layer is cleared from the current map */ public void setMap(GoogleMap map){ mRenderer.setMap(map); }
/** * Changes the map that GeoJsonFeature objects are being drawn onto. Existing objects are * removed from the previous map and drawn onto the new map. * * @param map GoogleMap to place GeoJsonFeature objects on */ public void setMap(GoogleMap map) { super.setMap(map); for (Feature feature : super.getFeatures()) { redrawFeatureToMap((GeoJsonFeature) feature, map); } }
/** * Sets the map that objects are being placed on * * @param map map to place placemark, container, style and ground overlays on */ public void setMap(GoogleMap map) { removeLayerFromMap(); super.setMap(map); addLayerToMap(); }