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

Cacheable feature grid #1189

Merged
merged 6 commits into from
Apr 21, 2020
Merged

Cacheable feature grid #1189

merged 6 commits into from
Apr 21, 2020

Conversation

patrickarlt
Copy link
Contributor

@gavinr @jwasilgeo this PR removes the dependency on leaflet-virtual-grid and replaces it with a new FeatureGrid that makes a repeatable grid so we can have queries be cached similar to the JS API despite maps having different origins. The code is based on a simplified version of Leaflets GridLayer.

You can test this by:

  1. Start the dev server an open the debug app
  2. Open Dev Tools > Network and make sure caching is ENABLED
  3. Refresh the page until you see the query calls until you see 304 responses this means the browser has cached the queries
  4. Change the initial lat/lng of the map view and refresh the page. You should still see queries with 304 responses.

@gavinr @jwasilgeo can you validate that this works and that all samples still work. Ideally this should go out without any breaking changes.

@patrickarlt patrickarlt requested review from gavinr and jwasilgeo March 26, 2020 18:33
Copy link
Contributor

@gavinr gavinr left a comment

Choose a reason for hiding this comment

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

Tested with the samples on the docs pages - looks good to me.

@gavinr
Copy link
Contributor

gavinr commented Mar 30, 2020

I am just now noticing the unit tests are failing though

@gavinr
Copy link
Contributor

gavinr commented Apr 22, 2020

This was released in v2.4.0: https://github.com/Esri/esri-leaflet/releases/tag/v2.4.0

@gavinr gavinr deleted the cacheable-feature-grid branch September 24, 2021 13:08
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
jgravois pushed a commit to jgravois/esri-leaflet that referenced this pull request Apr 23, 2022
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.

2 participants