Closed jameslaneconkling closed 9 years ago
@jameslaneconkling the dropdown is created, but I don't know what layers to try and pull with (or test with)
Once #40 is fixed, all tilelayers should populate the Maps Dropdown.
Testing shouldn't be an issue. Just make dummy data for your local database.
Label should of course be the link test. Best practice is to pass the map-id as an html data attribute. E.g.
<a href="#" data-id="{mapid}">{label}</a>
So we're just populating the dropdown from the table, and not talking about actually rendering anything, right?
Yeah. I'll get the layers to render w/ leaflet
On Wed, Jun 3, 2015 at 3:08 PM Charles Huang notifications@github.com wrote:
So we're just populating the dropdown from the table, and not talking about actually rendering anything, right?
— Reply to this email directly or view it on GitHub https://github.com/crowdcover/congo-mines-app/issues/51#issuecomment-108628991 .
done
on dropdown click, add a new tilelayer to the map and remove all existing tilelayers (see dropdowns on template site map page, though if necessary, recreate the dropdown as you see fit.
tilelayers should be defined in maplayer table (see #40).
I can write the actual leaflet functions to add/remove each tilelayer, once the dropdown is created, w/ event handlers, etc.