Changing the Geo Map Tiles

By default, d3plus uses the light_all style provided by CARTO for it’s map tiles. The tileUrl method changes the base URL used for fetching the tiles, as long as the string passed contains {x}, {y}, and {z} variables enclosed in curly brackets for the zoom logic to load the correct tiles.

This examples changes the tileUrl to the dark_all theme provided by CARTO:

new d3plus.Geomap()
  .fitFilter(function(d) {
    return ["02", "15", "43", "60", "66", "69", "72", "78"].indexOf( < 0;