From 81b9af7c5e7abd22c1f6d747997f16de7894ca39 Mon Sep 17 00:00:00 2001 From: clementgayvallet Date: Wed, 3 Jul 2024 15:38:12 +0200 Subject: [PATCH] feat: add maplibre-gl-directions example --- README.md | 4 +- examples/maplibre-gl-directions.html | 62 ++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 examples/maplibre-gl-directions.html diff --git a/README.md b/README.md index a7a96c9..33aff25 100644 --- a/README.md +++ b/README.md @@ -29,10 +29,12 @@ If you don't have any access token yet, get one on [Jawg Lab](https://jawg.io/la [display-route](./examples/display-route.html): Display a route on your map. +[maplibre-gl-directions](./examples/maplibre-gl-directions.html): Use [maplibre-gl-directions](https://github.com/maplibre/maplibre-gl-directions) with Jawg Routing API. + [draw-radius](./examples/draw-radius.html): Draw a location radius using a polygon. [add-origin-info](./examples/add-origin-info.html): Customize the request origin to add additional information. [map-session](./examples/map-session.html): Use [@jawg/map-session](https://www.npmjs.com/package/@jawg/map-session) library to support the **per-mapload** pricing. -[cluster](./examples/cluster.html): Display points as cluster with user interaction. \ No newline at end of file +[cluster](./examples/cluster.html): Display points as cluster with user interaction. diff --git a/examples/maplibre-gl-directions.html b/examples/maplibre-gl-directions.html new file mode 100644 index 0000000..452b59e --- /dev/null +++ b/examples/maplibre-gl-directions.html @@ -0,0 +1,62 @@ + + + + + + + + + +
+ + +