Skip to content

Commit

Permalink
#525 Make dynamicExtent requery timeEnabled aware. (#526)
Browse files Browse the repository at this point in the history
* #525 Make dynamicExtent requery timeEnabled aware.

* #525 Make dynamicExtent requery controlled aware.
  • Loading branch information
tariqksoliman authored Apr 5, 2024
1 parent eb4787d commit 4075618
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/essence/Basics/Map_/Map_.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 4075618

Please sign in to comment.