Turn Off Collisions Based on Zoom Level
mapView.on('zoom_changed', () => {
if (mi.getZoom() < mi.getMaxZoom() - 1) {
mi.getMap().setLayoutProperty('MI_POINT_LAYER', 'text-allow-overlap', true);
} else {
mi.getMap().setLayoutProperty('MI_POINT_LAYER', 'text-allow-overlap', false);
}
});Last updated
Was this helpful?