Skip to content

Commit

Permalink
fix: account for missing objectIdField service json prop
Browse files Browse the repository at this point in the history
The services on mapserv don't seem to return this property.
  • Loading branch information
stdavis committed Sep 27, 2023
1 parent cc4c63f commit c5f4878
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export default function MapComponent() {
query.where = featureLayer.definitionExpression;
query.outFields = [
...layer[fieldNames.queryLayers.resultGridFields],
featureServiceJson.objectIdField,
featureServiceJson.objectIdField || 'OBJECTID',
];
query.returnGeometry = false;
const features = await queryFeatures(featureLayer, query);
Expand Down

0 comments on commit c5f4878

Please sign in to comment.