codeforamerica / resident-web-use-research

[work in progress] Digital Front Door survey tool for resident research
8 stars 4 forks source link

Add Background and Label tileLayers #15

Closed milafrerichs closed 8 years ago

milafrerichs commented 9 years ago

I assume you want the Label layer to be on top of the GeoJSON Layer?

This does not work yet. Have to do some more digging with the problems leaflet has with the ordering and z-index handling.

migurski commented 9 years ago

Hm, yeah—the reason to do it would be to get the labels showing. Maybe this is not yet possible in Leaflet?

hamhands commented 9 years ago

If memory serves, it's possible to sandwich data layers between tiles, but popups aren't possible. There might be a way around this by doing vector tiles in mapbox?

milafrerichs commented 9 years ago

ok got it. it is working now: bildschirmfoto 2015-04-25 um 09 58 41 it's a bug in leaflet 0.7 and will be fixed in 1.0 this is a workaround from jfirebaugh http://bl.ocks.org/jfirebaugh/5380413

milafrerichs commented 8 years ago

Here is a "staging" link. Thanks to your jekit: Preview