From 355b663e7e6b00f771162dbf85fb1390599c48c6 Mon Sep 17 00:00:00 2001 From: Harel M Date: Thu, 14 Mar 2024 21:02:49 +0200 Subject: [PATCH] Another attempt to fix the inspect issues (#889) Fixes #871 - #871 In case of same sources, calling the render method when the map style changes, but not right away to let the map load the sources should fix the issue. --- src/components/MapMaplibreGl.tsx | 37 +++++++++++++------------------- 1 file changed, 15 insertions(+), 22 deletions(-) diff --git a/src/components/MapMaplibreGl.tsx b/src/components/MapMaplibreGl.tsx index 2b4d6085..86084800 100644 --- a/src/components/MapMaplibreGl.tsx +++ b/src/components/MapMaplibreGl.tsx @@ -90,21 +90,6 @@ export default class MapMaplibreGl extends React.Component { + this.state.inspect!.render(); + }, 500); } }