我正在使用可编辑传单。我正在使用imageOverlay和一些界限。其实我有特定区域。我只想在此区域上绘制形状,线条等。画完线或其他东西后,我可以离开地图。我不要这个。
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);
.... //Some edit controllers (L.EditControl)