@Test public void testRemoveFeature() { Point p = new Point(new LatLng(40, 50)); Feature feature1 = new Feature(p, null, null); mRenderer.addFeature(feature1); mRenderer.removeFeature(feature1); assertFalse(mRenderer.getFeatures().contains(feature1)); }
protected void removeFeature(Feature feature) { if (mFeatures.containsKey(feature)) { removeFromMap(mFeatures.remove(feature)); } }
Renderer { protected void removeFeature(Feature feature) { if (mFeatures.containsKey(feature)) { removeFromMap(mFeatures.remove(feature)); } } }
Renderer { protected void removeFeature(Feature feature) { if (mFeatures.containsKey(feature)) { removeFromMap(mFeatures.remove(feature)); } } Renderer(GoogleMap map,
                    Context context,
                    MarkerManager markerManager,
                    PolygonManager polygonManager,
                    PolylineManager polylineManager,
                    GroundOverlayManager groundOverlayManager,
                    @Nullable ImagesCache imagesCache);  Renderer(GoogleMap map, HashMap<? extends Feature, Object> features, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager); private  Renderer(GoogleMap map,
                     Set<String> markerIconUrls,
                     GeoJsonPointStyle defaultPointStyle,
                     GeoJsonLineStringStyle defaultLineStringStyle,
                     GeoJsonPolygonStyle defaultPolygonStyle,
                     BiMultiMap<Feature> containerFeatures,
                     MarkerManager markerManager,
                     PolygonManager polygonManager,
                     PolylineManager polylineManager,
                     GroundOverlayManager groundOverlayManager); }
Renderer { protected void removeFeature(Feature feature) { if (mFeatures.containsKey(feature)) { removeFromMap(mFeatures.remove(feature)); } } Renderer(GoogleMap map,
                    Context context,
                    MarkerManager markerManager,
                    PolygonManager polygonManager,
                    PolylineManager polylineManager,
                    GroundOverlayManager groundOverlayManager,
                    @Nullable ImagesCache imagesCache);  Renderer(GoogleMap map, HashMap<? extends Feature, Object> features, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager); private  Renderer(GoogleMap map,
                     Set<String> markerIconUrls,
                     GeoJsonPointStyle defaultPointStyle,
                     GeoJsonLineStringStyle defaultLineStringStyle,
                     GeoJsonPolygonStyle defaultPolygonStyle,
                     BiMultiMap<Feature> containerFeatures,
                     MarkerManager markerManager,
                     PolygonManager polygonManager,
                     PolylineManager polylineManager,
                     GroundOverlayManager groundOverlayManager); boolean isLayerOnMap(); GoogleMap getMap(); void setMap(GoogleMap map); Set<Feature> getFeatures(); Collection<Object> getValues(); HashMap<KmlGroundOverlay, GroundOverlay> getGroundOverlayMap(); void assignStyleMap(HashMap<String, String> styleMap,
                               HashMap<String, KmlStyle> styles); }
Renderer { protected void removeFeature(Feature feature) { if (mFeatures.containsKey(feature)) { removeFromMap(mFeatures.remove(feature)); } } Renderer(GoogleMap map,
                    Context context,
                    MarkerManager markerManager,
                    PolygonManager polygonManager,
                    PolylineManager polylineManager,
                    GroundOverlayManager groundOverlayManager,
                    @Nullable ImagesCache imagesCache);  Renderer(GoogleMap map, HashMap<? extends Feature, Object> features, MarkerManager markerManager, PolygonManager polygonManager, PolylineManager polylineManager, GroundOverlayManager groundOverlayManager); private  Renderer(GoogleMap map,
                     Set<String> markerIconUrls,
                     GeoJsonPointStyle defaultPointStyle,
                     GeoJsonLineStringStyle defaultLineStringStyle,
                     GeoJsonPolygonStyle defaultPolygonStyle,
                     BiMultiMap<Feature> containerFeatures,
                     MarkerManager markerManager,
                     PolygonManager polygonManager,
                     PolylineManager polylineManager,
                     GroundOverlayManager groundOverlayManager); boolean isLayerOnMap(); GoogleMap getMap(); void setMap(GoogleMap map); Set<Feature> getFeatures(); Collection<Object> getValues(); HashMap<KmlGroundOverlay, GroundOverlay> getGroundOverlayMap(); void assignStyleMap(HashMap<String, String> styleMap,
                               HashMap<String, KmlStyle> styles);  }