Difference between revisions of "Markers"
From Dragon Eye Atlas
(Created page with "<noinclude> == Enable Clickable Markers == === Parameters === * layer - which layer to activate markers for * title - which data field to use for pop-up title * description -...") |
|||
Line 13: | Line 13: | ||
map.on("load", function() { | map.on("load", function() { | ||
map.on('click', function(e) { | map.on('click', function(e) { | ||
map.setLayoutProperty('{{{layer}}}', 'visibility', 'visible'); | |||
var features = map.queryRenderedFeatures(e.point, { | var features = map.queryRenderedFeatures(e.point, { | ||
layers: ['{{{layer}}}'] | layers: ['{{{layer}}}'] |
Revision as of 17:29, 5 October 2019
Enable Clickable Markers
Parameters
- layer - which layer to activate markers for
- title - which data field to use for pop-up title
- description - which data field to use for pop-up text