-
Notifications
You must be signed in to change notification settings - Fork 11
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
Notebook API #38
Notebook API #38
Conversation
131535a
to
ad67581
Compare
The GeoJSON layer works great @brichet ! |
4d3b16a
to
d65fd07
Compare
Strangely, when I run this code I cannot see anything in the notebook, unlike in the separately opened from jupytergis_lab import GISDocument
doc = GISDocument("test.jGIS")
doc |
That's because I didn't install your branch 😄 |
Actually I think you found a bug. It seems the CSS of maplibre is not in the page unless you already opened a |
d65fd07
to
970e771
Compare
I cannot add the GeoJSON layer, is that what you are referring to? |
No, do you have an error? |
No, no error even if the file path is wrong. |
No Python error but lots of errors in the browser console, just after adding the raster layer:
|
6a989ae
to
b602eed
Compare
please update snapshots!!! |
ui-tests/tests/geojson-layers.spec.ts-snapshots/geoJSON-layer-linux.png
Outdated
Show resolved
Hide resolved
bee10ab
to
8c676da
Compare
ccc9077
to
44c2538
Compare
Co-authored-by: David Brochart <david.brochart@gmail.com>
@davidbrochart thanks for the review! |
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.
Thanks @martinRenou, I had some minor changes.
We'll update it in a follow up PR.
|
||
this._initializedPosition = true; | ||
} | ||
} | ||
|
||
private updateOptions(options: IJGISOptions) { |
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.
private updateOptions(options: IJGISOptions) { | |
updateOptions(options: IJGISOptions) { |
This one should probably not be private, since it is supposed to be implemented by plugins.
path: str = None, | ||
data: Dict = None, |
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.
path: str = None, | |
data: Dict = None, | |
path: str | None = None, | |
data: Dict | None = None, |
Also fix #39
Screencast.from.2024-07-11.13-15-38.mp4