Talk and code examples about alternatives to Google Maps.
yarn run georeferencing
to assign coordinates to citymap.jpg image.yarn run reprojecting
to transform the image to Web Mercator projection.yarn run tiling
to create raster tiles based on the georeferenced image.yarn run generate-vector-tiles
to create vector tiles based on the GeoJSON file.- Run
yarn install
andyarn run serve-vector-tiles
to start a local vector tile server. - Have a look at the code examples 1 to 6.
Query used to generate trees-small.json file:
[out:json][timeout:25];
(
node["natural"="tree"](47.9795383955,7.8295813256,48.0119900765,7.8759939415);
);
out body;
>;
out skel qt;
Query used to generate trees-big.json file:
[out:json][timeout:250];
(
node["natural"="tree"](47.52681,7.503992,48.72392,9.246965);
);
out body;
>;
out skel qt;