Skip to content

Conversation

kaushiksrini
Copy link

@kaushiksrini kaushiksrini commented May 29, 2025

Description

Note: Still a work in progress. I am not able to get the geojson to render in the viewer - any ideas on what I am missing?

Checklist

  • PR has a descriptive title and content.
  • PR description contains references to any issues the PR resolves, e.g. Resolves #XXX.
  • PR has one of the labels: documentation, bug, enhancement, feature, maintenance
  • Checks are passing.
    Failing lint checks can be resolved with:
    • pre-commit run --all-files
    • jlpm run lint

📚 Documentation preview: https://jupytergis--725.org.readthedocs.build/en/725/
💡 JupyterLite preview: https://jupytergis--725.org.readthedocs.build/en/725/lite

@kaushiksrini kaushiksrini marked this pull request as draft May 29, 2025 13:43
Copy link
Contributor

Binder 👈 Launch a Binder on branch kaushiksrini/jupytergis/add-geojson-plugin

@arjxn-py arjxn-py added the enhancement New feature or request label May 29, 2025
Copy link
Contributor

Integration tests report: appsharing.space

Copy link
Member

@arjxn-py arjxn-py left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for starting this @kaushiksrini, great progress already.

I have given a preliminary review to give you some context of what you might be missing. I hope it helps, don't hesitate to follow up with questions in cas you would have.

@@ -0,0 +1,89 @@
import {
Copy link
Member

@arjxn-py arjxn-py May 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looks like you followed how we initialize model for stl/step files on JupyterCAD, but in the case of JupyterGIS, the model properties are fairly different, most importantly layers & sources instead of objects, for context https://github.com/geojupyter/jupytergis/blob/main/packages/schema/src/doc.ts

return this._objectChanged;
}

get objects(): Array<any> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be get layers() and it should respect vectorlayer schema - https://github.com/geojupyter/jupytergis/blob/main/packages/schema/src/schema/project/layers/vectorlayer.json

Similarly there should be getters for sources & layerTree too and the sources getter shall respect https://github.com/geojupyter/jupytergis/blob/main/packages/schema/src/schema/geojsonsource.json - note that you can either give it the parameter path or directly write the content of geojson in data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants