datamade / million-dollar-blocks

:moneybag: An interactive visualization of incarceration spending in Chicago
https://chicagosmilliondollarblocks.com
MIT License
43 stars 5 forks source link

Upgrade leaflet to 1.0 in order to take advantage of map panes and have labels display on top of tile layers #23

Open easherma opened 8 years ago

easherma commented 8 years ago

Leaflet 1.0 introduces custom map panes. You can use this to essentially load a tile layer with no labels, load the labels separately, and draw the labels on top of the basemap and polygons. This is a much sharper look and avoids obscures the labels on the map

There is a tutorial on the leaflet site that shows how to do this. It's fairly straightforward: http://leafletjs.com/examples/map-panes/

fgregg commented 8 years ago

How would this improve the site?

On Fri, Oct 14, 2016 at 3:04 PM Eric Sherman notifications@github.com wrote:

Leaflet 1.0 introduces custom map panes. You can use this to essentially load a tile layer with no labels, load the labels separately, and draw the labels on top of the basemap and polygons. This is a much sharper look and avoids obscures the labels on the map

There is a tutorial on the leaflet site that shows how to do this. It's fairly straightforward: http://leafletjs.com/examples/map-panes/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/datamade/million-dollar-blocks/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/AAgxbd4v8WwKqRz-5yQ1V-gi-QvBSq4jks5qz-BEgaJpZM4KXZAp .

easherma commented 8 years ago

It would make labels of places possible to read instead of being obscured by the data.

On Friday, October 14, 2016, Forest Gregg notifications@github.com wrote:

How would this improve the site?

On Fri, Oct 14, 2016 at 3:04 PM Eric Sherman <notifications@github.com javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Leaflet 1.0 introduces custom map panes. You can use this to essentially load a tile layer with no labels, load the labels separately, and draw the labels on top of the basemap and polygons. This is a much sharper look and avoids obscures the labels on the map

There is a tutorial on the leaflet site that shows how to do this. It's fairly straightforward: http://leafletjs.com/examples/map-panes/

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/datamade/million-dollar-blocks/issues/23, or mute the thread https://github.com/notifications/unsubscribe- auth/AAgxbd4v8WwKqRz-5yQ1V-gi-QvBSq4jks5qz-BEgaJpZM4KXZAp .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/datamade/million-dollar-blocks/issues/23#issuecomment-253915882, or mute the thread https://github.com/notifications/unsubscribe-auth/AKDTT6HVTQP3MEgzlM539QV_KgwztpbUks5qz-segaJpZM4KXZAp .

Eric Sherman 224-402-0004