Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- layer.on({
- mouseover: function (e) {
- L.popup().setLatLng(e.latlng)
- .setContent("Test")
- .openOn(map);
- },
- click: function () {
- alert("Click");
- map.fire("click", e);
- }
- });
- option.pointToLayer = function (feature, latlng) {
- var marker = L.marker(latlng);
- var icon = L.icon({
- iconUrl: 'Image/InvestmentIcons/environmentalflow.png',
- iconSize: [12, 12], // size of the icon
- });
- marker.options.icon = icon;
- return marker;
- }
Add Comment
Please, Sign In to add comment