You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dc-js user group
Anybody know how to change the base tile layer in leaflet.dc.js? The default OSM tilelayer is OK but there are other free tilesets that would work better in my project.
Gordon Woodhull
unread,
Nov 12, 2016, 12:14:15 PM11/12/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dc.js user group
Hi David,
I agree, the default tiles are sort of meh, and I've been wondering how to get better ones.
Looks like you can use the .tiles() method to change the tile constructor. The default uses the tile source URL https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png but you just create a function which specifies another one.
>
> On Nov 11, 2016, at 5:40 PM, David Saeger <saege...@gmail.com> wrote:
>
> Anybody know how to change the base tile layer in leaflet.dc.js? The default OSM tilelayer is OK but there are other free tilesets that would work better in my project.
>