Skip to content
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

Merged
merged 6 commits into from
Oct 18, 2024

Conversation

ivigilm
Copy link
Contributor

@ivigilm ivigilm commented Oct 16, 2024

No description provided.

src/cadenza.js Outdated Show resolved Hide resolved
src/cadenza.js Outdated Show resolved Hide resolved
src/cadenza.js Outdated Show resolved Hide resolved
src/cadenza.js Outdated Show resolved Hide resolved
src/docs.md Outdated
});
```

Create a GeoJSON polygon geometry with a workbook map view and some additional layers in the background.
Copy link
Member

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.

Copy link
Member

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 Show resolved Hide resolved
src/docs.md Outdated Show resolved Hide resolved
src/docs.md Outdated
});
```

Create a GeoJSON polygon geometry with a workbook map view and some additional layers in the background.
Copy link
Member

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 Show resolved Hide resolved
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}}]
Copy link
Member

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".)

@ivigilm ivigilm merged commit 09c4bfd into main Oct 18, 2024
1 check passed
@ivigilm ivigilm deleted the slb/CADENZA-37480_import_layers branch October 18, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants