Skip to content

edpop/tilelive-merge

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tilelive-merge

A tilelive source that merges sources.

Overzooming (using part of a lower-zoom tile), masking (falling back to lower-zoom tiles when they're intentionally missing, as in the middle of the ocean), and image layers are all supported and the most conservative upstream values for Last-Modified and Cache-Control are used.

Usage

merge:?source=mapbox:///mapbox.mapbox-streets-v5&source=tilejson%2Bhttp%3A%2F%2Ftile.stamen.com%2Ftoner-labels%2Findex.json

The full-on explicit way (avoids having to encode URIs with encodeURIComponent in some circumstances--this is the same as url.parse(uri, true)):

{
  protocol: "merge:",
  query: {
    sources: [
      "mapbox:///mapbox.mapbox-streets-v5",
      "tilejson+http://tile.stamen.com/toner-labels/index.json"
    ]
  }
}

(Yes, both source and sources work.)

About

A tilelive source that merges sources

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%