GeometryCollection as individual features

This commit is contained in:
Tim Schaub
2013-06-28 16:28:14 -06:00
parent 38172c4f20
commit 6580ece2bb
2 changed files with 48 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ TopoJSONTopology.prototype.transform;
/**
* @type {Object.<string, TopoJSONGeometry>}
* @type {Object.<string, (TopoJSONGeometry|TopoJSONGeometryCollection)>}
*/
TopoJSONTopology.prototype.objects;
@@ -76,6 +76,19 @@ TopoJSONGeometry.prototype.id;
/**
* @constructor
*/
var TopoJSONGeometryCollection = function() {};
/**
* @type {Array.<TopoJSONGeometry>}
*/
TopoJSONGeometryCollection.prototype.geometries;
/**
* @constructor
* @extends {TopoJSONGeometry}