1.0.0 • Published 1 month ago
mixmap-tile-grid v1.0.0
mixmap-tile-grid
Tile grid outlines for mixmap, useful for debugging tile based in data in mixmap.
No labels atm, just tile outlines.
usage
npm install mixmap-tile-grid
const mixmap = require('@rubenrodriguez/mixmap')
const tileGrid = require('mixmap-tile-grid')
const map = mix.create({
viewbox,
})
tileGrid(map, { zindex: 1 })
tileGrid : (Mixmap, Options : { zindex : number, color : [r, b, g, a] })
.
zindex
will be passed as a uniform to the shader, and as a fraction between the default render range of 0, 1. This aligns with how mixmap-georender
shaders are configured.
color
will be passed as a uniform to the shader as a vec4
expecting values in the range 0, 1 for each color channel.
1.0.0
1 month ago