sztanko / crosslet

Crossfilter + leaflet
Other
164 stars 27 forks source link

Add tile server url option #3

Closed Cyrille37 closed 11 years ago

Cyrille37 commented 11 years ago

Hi, Here is a very simple patch that permits the choice of the tile server. It just add a "url" option to map.leaflet configuration and use it at TileLayer creation.

I think it's nice to offer this option to avoid the need of a cloudmade API key. For exemple, I use the tile server url "http://{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png" and set the attribution to "Map data © OpenStreetMap contributors, ODbL, Imagery © OSM_Fr"

sztanko commented 11 years ago

Looks great, thank you!