Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'icon-color': ["case",["boolean", ["feature-state", "clicked"], false],
- "inactive",
- "active"
- ],
- map.updateImage(`point1`, map.loadImage('/img/pin_active.png'))
- map.updateImage(`point1`, 'active')) //with the image being loaded beforehand as 'active'
- map.updateImage(`point1`, map.loadImage('/img/pin_active.png', function(error, image) {
- if (error) throw error;
- map.addImage(point1, image);
- }))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement