Skip to content

Commit

Permalink
Add MultiPolygon support to Query (Esri#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 55ce00e commit 6128d92
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 6128d92

Please sign in to comment.