Skip to content

Commit

Permalink
Add MultiPolygon support to Query (#866)
Browse files Browse the repository at this point in the history
* Fix lint error w/ paren
  • Loading branch information
Yves Richard authored and jgravois committed Oct 18, 2016
1 parent 65b5c8a commit 91cc90b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tasks/Query.js
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export var Query = Task.extend({
}

// confirm that our GeoJSON is a point, line or polygon
if (geometry.type === 'Point' || geometry.type === 'LineString' || geometry.type === 'Polygon') {
if (geometry.type === 'Point' || geometry.type === 'LineString' || geometry.type === 'Polygon' || geometry.type === 'MultiPolygon') {
this.params.geometry = Util.geojsonToArcGIS(geometry);
this.params.geometryType = Util.geojsonTypeToArcGIS(geometry.type);
return;
Expand Down

0 comments on commit 91cc90b

Please sign in to comment.