Skip to content

Conversation

gjmooney
Copy link
Collaborator

@gjmooney gjmooney commented Aug 9, 2024

Adds filtering to Vector Tile and GeoJSON layers.

filters_both

Copy link
Contributor

github-actions bot commented Aug 9, 2024

Binder 👈 Launch a Binder on branch gjmooney/jupytergis/filters

@gjmooney gjmooney added the enhancement New feature or request label Aug 20, 2024
@gjmooney gjmooney marked this pull request as ready for review August 20, 2024 07:57
Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Really neat! Thanks

}

const json = await response.json();
tileUrl = json.tiles[0];
Copy link
Member

Choose a reason for hiding this comment

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

Let's keep that for later us and open an issue for this, but there may be cases when there are multiple tiles urls, and we'll probably need to handle that case here.

@martinRenou
Copy link
Member

Another thing for a subsequent PR, we should expose filters to the Python API as well

@martinRenou
Copy link
Member

When testing a bit more this branch, it seems the buildings.jGIS file does not show up properly anymore:

Before:
Screenshot from 2024-08-20 11-54-39

After:
Screenshot from 2024-08-20 11-55-40

@gjmooney
Copy link
Collaborator Author

When testing a bit more this branch, it seems the buildings.jGIS file does not show up properly anymore:

That's probably because https://github.com/QuantStack/jupytergis/blob/83544ca3254f43eec777c9f3d9863b465a8a66cd/packages/base/src/mainview/mainview.tsx#L193 is using the url param and not tiles. The changes in #91 should resolve that.

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

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

Thanks! 🚀

@martinRenou martinRenou merged commit a384117 into geojupyter:main Aug 20, 2024
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