From d7cd3370c86650c577ea42a329924f4c6516a4da Mon Sep 17 00:00:00 2001 From: Kevin Linaker <141227078+klinakerdisy@users.noreply.github.com> Date: Thu, 8 Feb 2024 16:48:50 +0100 Subject: [PATCH] Extend "selectObjects" method with "selectableLayers" parameter ... to allow limiting selection to specific map layers. --- sandbox.html | 8 +++++++- src/cadenza.js | 10 +++++++++- src/docs.md | 14 ++++++++++++++ 3 files changed, 30 insertions(+), 2 deletions(-) diff --git a/sandbox.html b/sandbox.html index 28fdf406..91862a66 100644 --- a/sandbox.html +++ b/sandbox.html @@ -186,6 +186,7 @@ mapExtent, minScale, parts, + layers, simplifiedOperationMode, useMapSrs }) { @@ -205,6 +206,7 @@ minScale: minScale && Number(minScale), parts: parts && parts.split(','), ...(simplifiedOperationMode === 'on' && { operationMode: 'simplified' }), + layers: layers && JSON.parse(layers), useMapSrs: useMapSrs === 'on' }; } @@ -242,7 +244,7 @@ - + @@ -449,6 +451,10 @@ +
+ + +