Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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

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
Regarding simplified user experience. This series of posts by Brian Timoney are very good reads: – Paul Mar 27 '13 at 5:16

Your Answer


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.