mapbox / mapbox-maps-android

Interactive, thoroughly customizable maps in native Android powered by vector tiles and OpenGL.
https://www.mapbox.com/mobile-maps-sdk
Other
478 stars 134 forks source link

collision behavior #2439

Closed huozhezhazha closed 3 months ago

huozhezhazha commented 4 months ago

Does mapbox support collision behavior, such as Google Maps' collision behavior=OPTIONAL-AND.HIDES-LOWER-PRIORITY, https://developers.google.cn/maps/documentation/javascript/advanced-markers/collision-behavior

pengdev commented 3 months ago

@huozhezhazha Mapbox Maps SDK do provide several configurations to customise the collision behaviour, you may find the following documentation helpful: https://docs.mapbox.com/android/maps/api/11.5.1/mapbox-maps-android/com.mapbox.maps.extension.style.layers.generated/-symbol-layer/icon-allow-overlap.html https://docs.mapbox.com/android/maps/api/11.5.1/mapbox-maps-android/com.mapbox.maps.extension.style.layers.generated/-symbol-layer/text-allow-overlap.html https://docs.mapbox.com/android/maps/api/11.5.1/mapbox-maps-android/com.mapbox.maps.extension.style.layers.generated/-symbol-layer/symbol-z-order.html