I'm trying to understand whether the following GeoJSON is invalid, needs to be reconfigured, or if I'm fighting a losing battle. I have a service that returns a FeatureCollection with 3 Features, each with a different geometry type. When I load this into the MapViewer, only the Features matching the first type are displayed. In this case, it's just one Polygon, but if there were other Polygons in the payload, they would show up, but LineStrings and Points would not. Based on another post, I'm thinking this is just how the ArcGIS tools are designed to work, though I'm gonna have a heck of a time convincing my colleagues of this based on one post in a forum. Am I trying to achieve something (putting multiple geometry types in a single GeoJSON payload) that's bound to fail? If so, is there any documentation around this? Any insight would be most appreciated.
Here's an example of what the service returns:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {
"_status": "grey",
"_title": "mid",
"_server_updated_at": "2024-03-14T16:49:08.565Z",
"updated_by_name": "Fred Flintstone",
"a_text_field": "mid",
"marker-color": "#B3B3B3"
},
"geometry": {
"type": "Polygon",
"coordinates": [
[
[ -81.66371706436922, 40.71829817504227 ],
[ -81.06224242161565, 39.31625234224697 ],
[ -80.26034775685123, 40.93560245921894 ],
[ -81.66371706436922, 40.71829817504227 ]
]
]
}
},
{
"type": "Feature",
"properties": {
"_status": "grey",
"_title": "long mid",
"_server_updated_at": "2023-12-06T18:50:26.849Z",
"updated_by_name": "Wilma Flintstone",
"a_text_field": "long mid",
"marker-color": "#B3B3B3"
},
"geometry": {
"type": "Point",
"coordinates": [ -80.25972907881545, 43.42321525687475 ]
}
},
{
"type": "Feature",
"properties": {
"_status": "grey",
"_title": "abc",
"_server_updated_at": "2023-11-15T17:49:59.679Z",
"updated_by_name": "Fred Flintstone",
"a_text_field": "abc",
"marker-color": "#B3B3B3"
},
"geometry": {
"type": "LineString",
"coordinates": [
[ -77.57057954205416, 40.614879553515614 ],
[ -76.89765822721861, 39.74043573381558 ],
[ -77.36075502468489, 39.58287875921611 ]
]
}
}
]
}