1

I downloaded the Draw.js and one ccs file to use the Leaflet.Draw plugin, but now I need to customise the toolbar (i.e want only polygon and marker).

2
drawControl = new L.Control.Draw({
    draw : {
        position : 'topleft',
        polyline : false,
        rectangle : false,
        circle : false,
        polygon: {
            // polygon draw options here
        },
        marker: {
            // marker options here
        }
    },
    edit : false
});

map.addControl(drawControl); 

see here for draw options

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.