Talk and code examples about alternatives to Google Maps.
yarn run georeferencingto assign coordinates to citymap.jpg image.yarn run reprojectingto transform the image to Web Mercator projection.yarn run tilingto create raster tiles based on the georeferenced image.yarn run generate-vector-tilesto create vector tiles based on the GeoJSON file.- Run
yarn installandyarn run serve-vector-tilesto 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;