Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. 'icon-color': ["case",["boolean", ["feature-state", "clicked"], false],
  2. "inactive",
  3. "active"
  4. ],
  5.  
  6. map.updateImage(`point1`, map.loadImage('/img/pin_active.png'))
  7. map.updateImage(`point1`, 'active')) //with the image being loaded beforehand as 'active'
  8. map.updateImage(`point1`, map.loadImage('/img/pin_active.png', function(error, image) {
  9. if (error) throw error;
  10. map.addImage(point1, image);
  11. }))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement