diff --git a/packages/geospatial/src/components/MapDraw.js b/packages/geospatial/src/components/MapDraw.js index 9cdaadcc..7cde8cce 100644 --- a/packages/geospatial/src/components/MapDraw.js +++ b/packages/geospatial/src/components/MapDraw.js @@ -109,7 +109,7 @@ const DEFAULT_ZOOM_DELAY = 1000; const GeometryTypes = { geometryCollection: 'GeometryCollection', point: 'Point', - polygon: 'Polygon' + polygon: ['Polygon', 'MultiPolygon'] }; /** @@ -138,7 +138,7 @@ const MapDraw = (props: Props) => { const { geometry: { type } } = detail; return (props.geocoding === 'point' && type === GeometryTypes.point) - || (props.geocoding === 'polygon' && type === GeometryTypes.polygon); + || (props.geocoding === 'polygon' && GeometryTypes.polygon.includes(type)); }, [props.geocoding]); /**