Open meteerogl opened 5 years ago
I am using imageOverlay and some bounds. Actually I have a specific area. I want to draw shapes, line etc. on just this area. After draw line or something I can carry out of the map. I don't want this. How can I do
var map = L.map('leaflet-mp', { editable: true, dragging: false, zoomControl: false, boxZoom: false, doubleClickZoom: false, scrollWheelZoom: false, tab: false, touchZoom: false, minZoom: -1, maxZoom: -1, crs: L.CRS.Simple, }).setView([0, 0], 0); //Add Image var bounds = [[-360, -640], [360, 640]]; L.imageOverlay('SS-0.jpg', bounds).addTo(map); map.fitBounds(bounds);
I am using imageOverlay and some bounds. Actually I have a specific area. I want to draw shapes, line etc. on just this area. After draw line or something I can carry out of the map. I don't want this. How can I do