opensearch-project / dashboards-maps

:globe_with_meridians: User interface for the backend geospatial plugin which can be integrated with OpenSearch Dashboards and a home for all other map related features.
https://opensearch.org/docs/latest/dashboards/geojson-regionmaps/#custom-vector-maps-with-geojson
Apache License 2.0
17 stars 46 forks source link

[BUG] - Cannot render geo_shape of type Geometrycollection on opensearch maps #646

Open SohaibKatariwala opened 4 months ago

SohaibKatariwala commented 4 months ago

What is the bug?

I am able to render geo_shape of types point, linestring, polygon, multipoint, multilinestring, and MultiPolygon. But geo_shape of type Geometrycollection or envelope does not show up on maps.

How can one reproduce the bug?

PUT /my-geoindex { "mappings": { "properties": { "locations": { "type": "geo_shape" } } } }

PUT /my-geoindex/_doc/1 { "location": { "geometries": [ { "coordinates": [ 0.407293, 52.745262 ], "type": "Point" }, { "coordinates": [ [ 0.407293, 52.745262 ], [ 20.407762, 52.746998 ] ], "type": "LineString" } ], "type": "GeometryCollection" } }

What is the expected behavior?

I an expecting the geometries in a geometry collection to redender on the map.

What is your host/environment?

AOS v2.13

dblock commented 3 months ago

Catch All Triage - 1, 2, 3

@heemin32 Is there a triage meeting for this repo? Please work with @krisfreedain to set one up.

heemin32 commented 3 months ago

@vamshin?