From 2992d4db9be2f02b94c5a3ef6211c8b25978fac7 Mon Sep 17 00:00:00 2001 From: Harel M Date: Wed, 22 Nov 2023 22:51:21 +0200 Subject: [PATCH] Improve the guides serction (#3400) * Add more guides, simplify main readme, fix incorrect links. * Fix search issue that presents long text, fix missing image --- README.md | 36 -------------- docs/assets/examples/cooperative-gestures.png | Bin 0 -> 94636 bytes docs/assets/extra.css | 7 +++ docs/guides/index.md | 8 ++++ docs/guides/mapbox-migration-guide.md | 44 ++++++++++++++++++ docs/index.md | 16 +++---- mkdocs.yml | 2 + ...estures.html => cooperative-gestures.html} | 5 +- 8 files changed, 71 insertions(+), 47 deletions(-) create mode 100644 docs/assets/examples/cooperative-gestures.png create mode 100644 docs/assets/extra.css create mode 100644 docs/guides/index.md create mode 100644 docs/guides/mapbox-migration-guide.md rename test/examples/{cooperated-gestures.html => cooperative-gestures.html} (89%) diff --git a/README.md b/README.md index a7f8e6e29f..7022fd5353 100644 --- a/README.md +++ b/README.md @@ -49,42 +49,6 @@ Check out the features through [examples](https://maplibre.org/maplibre-gl-js/do
-## Migrating from mapbox-gl to maplibre -The libraries are very similar but diverge with newer features happening from v2 in both libraries where Mapbox turned proprietary. - -The overall migration happens by uninstalling `mapbox-gl` and installing `maplibre-gl` in your node packages (or see below for CDN links), and replacing `mapboxgl` with `maplibregl` throughout your TypeScript, JavaScript and HTML/CSS. - -```diff -- var map = new mapboxgl.Map({ -+ var map = new maplibregl.Map({ - --