Guest User

Untitled

a guest
May 24th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. layer.on({
  2. mouseover: function (e) {
  3. L.popup().setLatLng(e.latlng)
  4. .setContent("Test")
  5. .openOn(map);
  6. },
  7. click: function () {
  8. alert("Click");
  9. map.fire("click", e);
  10. }
  11. });
  12.  
  13. option.pointToLayer = function (feature, latlng) {
  14. var marker = L.marker(latlng);
  15. var icon = L.icon({
  16. iconUrl: 'Image/InvestmentIcons/environmentalflow.png',
  17. iconSize: [12, 12], // size of the icon
  18. });
  19.  
  20. marker.options.icon = icon;
  21. return marker;
  22. }
Add Comment
Please, Sign In to add comment