query-remote-tiles
v0.2.2
Published
Find nearest features to a point in a remotely hosted vector tile source.
Downloads
5
Maintainers
Readme
Query-Remote-Tiles
Performs a point-in-polygon lookup inside a hosted vector tile source. This can be used in Node or in the browser.
Usage
queryMbtiles.queryLngLat(tilesUrl, [lng, lat], zoom, layer, { options });
const queryRemoteTiles = require('query-mbtiles');
result = await queryRemoteTiles.queryLngLat('http://example.com/tiles/{z}/{x}/{y}.pbf', [145.13, -37.97], 14, 'mylayer');
console.log(result.features[0].properties);