Skip to content

Commit

Permalink
add documentation for 'change:extent' event
Browse files Browse the repository at this point in the history
  • Loading branch information
palys committed Jan 29, 2024
1 parent 162c6e5 commit b216326
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,19 +205,6 @@ const unsubscribe = cadenzaClient.on('editGeometry:ok', (event) => ...);
unsubscribe();
```
### Subscribe to map extent change
Subscribe to `extent:change` event to be notified about map extent changes. The event details contain the new map extent (transformed to EPSG:4326):
```typescript
cadenzaClient.on(
'change:extent',
(event: CadenzaEvent<{ extent: Extent }>) => {
console.log('Map extent has been changed to:', event.detail.extent);
},
);
```
### Create a New Geometry
<small>API: [CadenzaClient#createGeometry](./classes/CadenzaClient.html#createGeometry)</small>
Expand Down

0 comments on commit b216326

Please sign in to comment.