From a15e55cc44325d52a4b4754ce5ad0fa0c63534e1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 13 Jan 2025 14:36:38 +0100 Subject: [PATCH] Remove info about animating projection change --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8fe5602..df37acd 100644 --- a/README.md +++ b/README.md @@ -329,21 +329,17 @@ This will overwrite the `projection` property from the style (if any) and will p - Use the built-in methods: ```ts -const animate = false; -map.enableGlobeProjection(animate); +map.enableGlobeProjection(); // or -map.enableMercatorProjection(animate); +map.enableMercatorProjection(); ``` -The animated transition is enabled by default, but can be disabled by passing `false`, as in the example above. Similarly to the `projection` option in the constructor, this will overwrite the projection settings from style (if any) and persist it when the style is updated. - The projection setter built in Maplibre GL JS is also usable: ```ts map.setProjection({type: "mercator"}); // or map.setProjection({type: "globe"}); ``` -but this will not automatically animate the transition and may cause rendering glitches. - Using the `MaptilerProjectionControl`. Not mounted by default, it can easily be added with a single option in the `Map` constructor: ```ts