diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2016-11-10 13:18:51 +0100 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2016-11-11 13:46:10 +0100 |
commit | 185983f2f7be3d1624e057c04ef5310e84b6d27a (patch) | |
tree | c7c74bfd16e13802643ceff8d97172f009daa796 /platform | |
parent | 822b83ae4e0308f6f84c1955afbd27f753cfba12 (diff) | |
download | qtlocation-mapboxgl-185983f2f7be3d1624e057c04ef5310e84b6d27a.tar.gz |
[android] source/layer java doc
Diffstat (limited to 'platform')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java index 65b67c9ff1..14eacb9a71 100644 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java +++ b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapboxMap.java @@ -123,16 +123,33 @@ public class MapboxMap { } } + /** + * Adds the layer to the map. The layer must be newly created and not added to the map before + * + * @param layer the layer to add + */ @UiThread public void addLayer(@NonNull Layer layer) { addLayer(layer, null); } + /** + * Adds the layer to the map. The layer must be newly created and not added to the map before + * + * @param layer the layer to add + * @param before the layer id to add this layer before + */ @UiThread public void addLayer(@NonNull Layer layer, String before) { getMapView().getNativeMapView().addLayer(layer, before); } + /** + * Removes the layer. Any references to the layer become invalid and should not be used anymore + * + * @param layerId the layer to remove + * @throws NoSuchLayerException + */ @UiThread public void removeLayer(@NonNull String layerId) throws NoSuchLayerException { getMapView().getNativeMapView().removeLayer(layerId); @@ -163,11 +180,22 @@ public class MapboxMap { } } + /** + * Adds the source to the map. The source must be newly created and not added to the map before + * + * @param source the source to add + */ @UiThread public void addSource(@NonNull Source source) { getMapView().getNativeMapView().addSource(source); } + /** + * Removes the source. Any references to the source become invalid and should not be used anymore + * + * @param sourceId the source to remove + * @throws NoSuchSourceException + */ @UiThread public void removeSource(@NonNull String sourceId) throws NoSuchSourceException { getMapView().getNativeMapView().removeSource(sourceId); |