2

I have a watershed polygon with sub-watersheds contained within the larger watershed. I would like the sub-watersheds drawn on top.

Can i control the drawing order of features within a geojson object or do i have to add the features separately and then control the layer drawing order?

I'm using leaflet 0.7.2

  • It is better to use layer drawing order. – neogeomat Jun 1 '14 at 6:19
1

Yes, you can use layer.bringToFront() and layer.bringToBack() methods of leaflet. See the docs here.

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.