Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map.on('click', function(evt) {
- map.forEachLayerAtPixel(evt.pixel, function(layer){
- if(layer===layerName) {
- console.log('layer clicked');
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement