Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Is there a limit to have many layers you can have in a leaflet map?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

There is no hard limit but performance could be affected by client processor speed, client internet connection speed and the capacity of your server to handle incoming requests. In general I try to keep mine below 10 user-selectable layers. Using well set up base maps instead of lots of overlays should help, also I try to use GeoJSON layers. Performance is great for simple lines or polygons and up to ~ 100 points + labels. Also, when your data changes you don't need to rebuild WMS tiles and it can reduce data transfers.

share|improve this answer
add comment

There is no limit, but from a practical perspective the more layers you have visible, the more the user experience will degrade.

share|improve this answer
1  
Regarding simplified user experience. This series of posts by Brian Timoney are very good reads: mapbrief.com/2013/02/05/why-map-portals-dont-work-part-i –  Paul Mar 27 '13 at 5:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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