Markers: Difference between revisions
From Dragon Eye Atlas
No edit summary |
No edit summary |
||
Line 37: | Line 37: | ||
var popup = new mapboxgl.Popup({ offset: [0, -15] }) | var popup = new mapboxgl.Popup({ offset: [0, -15] }) | ||
.setLngLat(feature.geometry.coordinates) | .setLngLat(feature.geometry.coordinates) | ||
.setHTML('<h4>'+feature.properties.type+'</h4>< | .setHTML('<h4>'+feature.properties.type+'</h4><div><a href="https://notveryprofessional.com/dragoneye/atlas/'+feature.properties.name+'">'+feature.properties.name+'</a></div>') | ||
.addTo(map); | .addTo(map); | ||
}); | }); |
Revision as of 02:27, 6 October 2019
Enable Clickable Markers
Parameters
- layer - which layer to activate markers for. That layer must have "name" and "type" properties