I’ve been looking through my Leaflet mapping code, and realized the system by default lists over 100 layers

I’ve been looking through my Leaflet mapping code, and realized the system by default lists over 100 layers. That’s probably too much and the way the code is written in an incremental piece-by-piece fashion, it’s really hard to maintain. So I am working on converting it over a flat-file CSV spreadsheet, then I can just iterate through that and pull the layers I actually need or think would be useful for a map. Also, I want more flexibility on base layers vs overlays — often there are layers I would like to add in a dual pane mode, but can’t do under the current design of code, such as National Land Cover vs Aerial Photo or NLCD 2001 vs 2016 to better track land use changes.

Leave a Reply

Your email address will not be published. Required fields are marked *