Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drawing shapes on specific area #187

Open
meteerogl opened this issue Apr 2, 2019 · 0 comments
Open

drawing shapes on specific area #187

meteerogl opened this issue Apr 2, 2019 · 0 comments

Comments

@meteerogl
Copy link

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);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant