Use static GeoJSON instead of Overpass query for faster loading

This commit is contained in:
Andreas Hocevar
2017-08-15 11:50:37 -04:00
parent 1249b46e5d
commit 0f29ea4f0e
3 changed files with 11 additions and 21 deletions
+3 -3
View File
@@ -3,10 +3,10 @@ layout: example.html
title: Street Labels
shortdesc: Render street names with a custom render.
docs: >
Example showing the use of a custom renderer to render text along a path. [Labelgun](https://github.com/Geovation/labelgun) is used to avoid label collisions. [label-segment](https://github.com/ahocevar/label-segment) makes sure that labels are placed on suitable street segments. [textpath](https://github.com/ahocevar/textpath) arranges the letters of a label along the geometry. The data is fetched from OSM using the [Overpass API](https://overpass-api.de).
tags: "vector, label, collision detection, labelgun, linelabel, overpass"
Example showing the use of a custom renderer to render text along a path. [Labelgun](https://github.com/Geovation/labelgun) is used to avoid label collisions. [label-segment](https://github.com/ahocevar/label-segment) makes sure that labels are placed on suitable street segments. [textpath](https://github.com/ahocevar/textpath) arranges the letters of a label along the geometry.
tags: "vector, label, collision detection, labelgun, linelabel"
resources:
- https://cdn.polyfill.io/v2/polyfill.min.js?features=Set"
- https://cdn.polyfill.io/v2/polyfill.min.js?features=Set
- https://unpkg.com/rbush@2.0.1/rbush.min.js
- https://unpkg.com/labelgun@0.1.1/lib/labelgun.min.js
- https://unpkg.com/textpath@1.0.1/dist/textpath.js