f=geojson not returning geojson for queryFeatures
See original GitHub issueI saw this https://github.com/Esri/arcgis-rest-js/commit/79bc776ca91ddca4685eef2cf4c8d1ed2f4a4117, but i’m not able to return geojson using the example in the docs:
require("isomorphic-fetch");
require("isomorphic-form-data");
const {queryFeatures} = require('@esri/arcgis-rest-feature-layer');
queryFeatures({
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3",
where: "STATE_NAME = 'Alaska'",
f: 'geojson',
}).then(result => {
// result is still in arcgis json
console.log(result);
});
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top Results From Across the Web
GeoJSON attributes are undefined - Esri Community
I have a geojson url that I am able to see features on the map. I can use a definition query towards it,...
Read more >GeoJSONLayer | ArcGIS Maps SDK for JavaScript 4.25
Returns true if the layer is loaded from a non-spatial table in a service. Non-spatial geojson tables do not have geometry object that...
Read more >ArcGIS Server JSON to GeoJSON does not always work
1 Answer 1 · GDAL/OGR cannot process GeoJSON results containing UNICODE characters (\uABCD style) · ArcGIS limits the amount of objects returned per...
Read more >Edit GeoJSON with the ArcGIS API for JavaScript - odoenet
If you didn't know, the GeoJSONLayer takes a URL to a GeoJSON file and loads it in the API. Not only that, but...
Read more >25. GeoMesa GeoJSON — GeoMesa 3.5.0 Manuals
The GeoJSON API does not use GeoTools - all data and operations are pure JSON. ... the keys define the element in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
the fix for this should be as easy as adding
f
toIQueryFeaturesOptions
and the array of whitelisted custom params here.and @COV-GIS is right. PRs are always welcome. 😄
@dkuida those were added in #592 and will be released soon along w/ #589