summaryrefslogtreecommitdiff
path: root/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
diff options
context:
space:
mode:
authorJesse Bounds <jesse@rebounds.net>2017-02-21 10:30:21 -0800
committerJesse Bounds <jesse@rebounds.net>2017-02-23 15:07:43 -0800
commit7d9018093a61d327fa7ca1312845d2a00d928380 (patch)
tree637838ca9eacda6338c9207c317d0942ed5b2fe4 /platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java
parentd1f444d63ed8048ec9b95e72ba4c72c3394e8379 (diff)
downloadqtlocation-mapboxgl-7d9018093a61d327fa7ca1312845d2a00d928380.tar.gz
[ios, macos] Make source removal consistent with layer removal
This refactors the source removal methods to make them consistent with the way layers are removed. This makes removal of nonexistent sources and removal of sources of a different type but same identifier as a previously added source a no-ops. As with layers, the check at the top of the method to ensure that the raw pointer is the same as the one in mbgl for the same identifier string should make it impossible to attempt to remove a source of a different type than the one in mbgl for the same identifier. However, for consistency with the layer implementation, the reinterpret_cast has been replaced with a dynamic_cast and check for nullptr.
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/maps/MapView.java')
0 files changed, 0 insertions, 0 deletions