kartotherian/layermixer

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Build Status

@kartotherian/layermixer

Vector tile mixing source, allowing layers from multiple vector tile to be merged into one tile

Usage examples

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


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.