Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Remove esri-leaflet dependency #25

Open
paylakatel opened this issue Jul 31, 2018 · 4 comments
Open

Remove esri-leaflet dependency #25

paylakatel opened this issue Jul 31, 2018 · 4 comments
Assignees

Comments

@paylakatel
Copy link
Contributor

Right now we use esri-leaflet to query our data layers when we need information like counts of points or the last time the data was updated.

We should remove that dependency and just use AJAX for fetch or some other thing like that to query the geojson layer.

@jgravois
Copy link

jgravois commented Apr 12, 2019

👋

@esri/arcgis-rest-feature-service is open source, only ~1kb and wraps fetch with some (helpful) sugar.

https://esri.github.io/arcgis-rest-js/guides/package-overview/
https://esri.github.io/arcgis-rest-js/api/feature-service/queryFeatures/

@paylakatel
Copy link
Contributor Author

This is great - thanks for this! Will take a look at it when working on this issue. Thanks for pointing it out!

@jgravois
Copy link

jgravois commented Apr 16, 2019

my pleasure! if you have any questions whenever you sit down and take a look, don't be shy. its a new library and we're looking for user feedback.

queryFeatures({
  url,
  // where: "1=1", (this is the default)
  // outFields: "*", (this is the default)
  outSR: 4326,
  params: { f: 'geojson' }
})
  .then(feature => {
    // GeoJSON FeatureCollection
  });

@paylakatel
Copy link
Contributor Author

Awesome - will be sure to let you know how it goes. Thanks again!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants