-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CADENZA-37480 Feat: Import geojson layers in create and edit geometry #53
Conversation
src/docs.md
Outdated
}); | ||
``` | ||
|
||
Create a GeoJSON polygon geometry with a workbook map view and some additional layers in the background. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Proposal: Add a sub-heading here (####), so that this shows up in the TOC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I envisioned this as a sub-example of "Create a New Geometry", that's why I suggested ####.
And the heading should be in title case, see https://conf.disy.net/x/rIREH
src/docs.md
Outdated
}); | ||
``` | ||
|
||
Create a GeoJSON polygon geometry with a workbook map view and some additional layers in the background. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I envisioned this as a sub-example of "Create a New Geometry", that's why I suggested ####.
And the heading should be in title case, see https://conf.disy.net/x/rIREH
src/docs.md
Outdated
|
||
```javascript | ||
cadenzaClient.createGeometry('<embeddingTargetId>', 'Polygon', { | ||
additionalLayers: [{"name":"layer_name_1","type":"geojson","content": {replace_with_geojson_FeatureCollection}},{"name":"layer_name_2","type":"geojson","content":{replace_with_geojson_FeatureCollection},{"name":"layer_name_3","type":"geojson","content":{replace_with_geojson_FeatureCollection}}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other placeholders in here use <>. Proposal:
#### Additional Background Layers
Create a GeoJSON polygon geometry with a workbook map view and some additional background layers.
```javascript
cadenzaClient.createGeometry('<embeddingTargetId>', 'Polygon', {
additionalLayers: [
{ type: 'geojson', name: 'Example', content: { <FeatureCollection> } },
...
]
});
(Fixes also the above "issues".)
No description provided.