diff --git a/CHANGELOG.md b/CHANGELOG.md index cf8c5ff2..411ea3e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## Unreleased +### Added +- `CadenzaClient#fetchObjectInfo` ## 2.8.1 - 2024-06-11 ### Added diff --git a/sandbox.html b/sandbox.html index 55d2a279..49f64f9e 100644 --- a/sandbox.html +++ b/sandbox.html @@ -158,9 +158,9 @@ }, setFilter: data => cadenzaClient.setFilter(parseFilterVariables(data.filter)), setLayerVisibility: data => cadenzaClient.setLayerVisibility(JSON.parse(data.layer), data.visibility === 'on'), - setSelection: data => cadenzaClient.setSelection(JSON.parse(data.layer), JSON.parse(data.values)), - addSelection: data => cadenzaClient.addSelection(JSON.parse(data.layer), JSON.parse(data.values)), - removeSelection: data => cadenzaClient.removeSelection(JSON.parse(data.layer), JSON.parse(data.values)), + setSelection: data => cadenzaClient.setSelection(JSON.parse(data.layer), JSON.parse(data.objectIds)), + addSelection: data => cadenzaClient.addSelection(JSON.parse(data.layer), JSON.parse(data.objectIds)), + removeSelection: data => cadenzaClient.removeSelection(JSON.parse(data.layer), JSON.parse(data.objectIds)), createGeometry: data => cadenzaClient.createGeometry(data.embeddingTargetId, data.geometryType, getOptions(data)), editGeometry: ({ geometry, ...data }) => cadenzaClient.editGeometry(data.embeddingTargetId, JSON.parse(geometry), getOptions(data)), selectObjects: data => cadenzaClient.selectObjects(data.embeddingTargetId, getOptions(data)), @@ -168,6 +168,11 @@ console.log('Inspect the fetchData() request in the devtools.'); cadenzaClient.fetchData(data.embeddingTargetId, data.dataType, getOptions(data)); }, + fetchObjectInfo: data => { + console.log('Inspect the fetchObjectInfo() request in the devtools.'); + cadenzaClient.fetchObjectInfo(data.embeddingTargetId, JSON.parse(data.layer), JSON.parse(data.objectIds), getOptions(data)) + .then(oi => console.log(oi)); + }, downloadData: data => cadenzaClient.downloadData(data.embeddingTargetId, data.dataType, getOptions(data)) }; @@ -212,7 +217,8 @@ parts, layers, simplifiedOperationMode, - useMapSrs + useMapSrs, + fullGeometries }) { return { disabledUiFeatures: disabledUiFeatures && disabledUiFeatures.split(','), @@ -231,7 +237,8 @@ parts: parts && parts.split(','), ...(simplifiedOperationMode === 'on' && { operationMode: 'simplified' }), layers: layers ? JSON.parse(layers) : undefined, - useMapSrs: useMapSrs === 'on' + useMapSrs: useMapSrs === 'on', + fullGeometries: fullGeometries === 'on' }; } @@ -280,6 +287,7 @@ + @@ -513,9 +521,9 @@ - - - + + + - + +