From 407561893581592a346d84ca771985c612c8ee84 Mon Sep 17 00:00:00 2001 From: Tariq Soliman Date: Thu, 4 Apr 2024 17:32:51 -0700 Subject: [PATCH] #525 Make dynamicExtent requery timeEnabled aware. (#526) * #525 Make dynamicExtent requery timeEnabled aware. * #525 Make dynamicExtent requery controlled aware. --- src/essence/Basics/Map_/Map_.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/essence/Basics/Map_/Map_.js b/src/essence/Basics/Map_/Map_.js index 2997f048..0478d261 100644 --- a/src/essence/Basics/Map_/Map_.js +++ b/src/essence/Basics/Map_/Map_.js @@ -784,10 +784,14 @@ async function makeVectorLayer( add, (f) => { Map_.map.on('moveend', f) - L_.subscribeTimeChange( - `dynamicgeodataset_${layerObj.name}`, - f + if ( + layerObj.time?.enabled === true && + layerObj.controlled !== true ) + L_.subscribeTimeChange( + `dynamicgeodataset_${layerObj.name}`, + f + ) L_.subscribeOnSpecificLayerToggle( `dynamicgeodataset_${layerObj.name}`, layerObj.name,