humanitiesplusdesign / palladio

An application that brings humanities research methods to data visualization.
BSD 3-Clause "New" or "Revised" License
172 stars 32 forks source link

Allow Mapbox Vector map layers #115

Open cncoleman opened 8 years ago

cncoleman commented 8 years ago

example:

mapbox://styles/cncoleman/cii6k6oy900aa91m159wgj5x3 mapbox://styles/cncoleman/cii6kqixl00au99lw232qp99l

esjewett commented 8 years ago

Hadn't seen the new Mapbox GL JS client library. The problem with this library is that it doesn't seem to support rendering circles of differing radii for different points on the map. Curved lines are also a bit of an issue, though straight lines are pretty simple, I think.

It looks like switching back to pure Leaflet.js might be the way to go. We don't use many (if any) Mapbox-specific features. Leaflet has a plugin to render Mapbox vector tile-sets on canvas. http://openlayers.org might be another option that would support vector tiles with raster drawing, but I'd prefer to stick with Leaflet as I know it at this point.