Name: layermixer
Owner: kartotherian
Description: Vector tile mixing source, allowing layers from multiple vector tile to be merged into one tile
Created: 2015-08-09 22:47:14.0
Updated: 2017-03-25 03:33:10.0
Pushed: 2017-10-02 19:27:00.0
Homepage: null
Size: 21
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Vector tile mixing source, allowing layers from multiple vector tile to be merged into one tile
Scenario: Tiles are stored in a storage (e.g. Cassandra), and the source's SQL was changed for two of layers. The layermixer can be used to merge the existing storage source with the two updated layers to save it back to the store.
e:
i: cassandra://...
te:
i: bridge://
l:
npm: ["osm-bright-source", "data.xml"]
Use kartotherian's ability to generate just the two changed layers
lLayers: [road, road_label]
r:
i: layermixer://
rams:
sources: [{ref: store}, {ref: update}]
# Make sure to remove these layers if 2nd source does not generate them for the given tile
removeInFirst: [road, road_label]
Now run the tilerator to copy the the mixer source into the store, possibly limiting it to only those that exist in store
://localhost:6534/add?generatorId=mixer&storageId=store&zoom=8&parts=10&checkZoom=8
See https://github.com/kartotherian/kartotherian