arthur-e/Wicket — pull request #51 by amenadiel (2014-07-28 02:00:07+00:00)
Title: adds the capability to read from google.maps.Data objects (+ jasmine tests)

- This PR adds the capability to **ingest** geometry objects of the [google.maps.Data](https://developers.google.com/maps/documentation/javascript/3.exp/reference#Data) family.

- Data.Point
- Data.MultiPoint
- Data.LineString
- Data.MultiLineString
- Data.LinearRing
- Data.Polygon
- Data.MultiPolygon
- Data.GeometryCollection (* partially)

they can be read with the usual ```wkt.fromObject(object);``` syntax.

- There is also a method to ingest Data.Feature objects which is a proxy to read the feature geometry, so at this point ```wkt.fromObject(feature);``` is just a shortcut for ```wkt.fromObject(feature.getGeometry);```

- Bonus track: I also added the capability to ingest google.maps.LatLngBounds objects, because the map, circles, groundoverlays and other objects have a bounds property, and it's cumbersome to instantiate a temporary rectangle just to get the WKT translation of such bounds.

@TODO list
- Add the capability to ingest google.maps.Data.Feature objects parsing their properties and make their json representation a proper [GeoJSON Feature](http://geojson.org/geojson-spec.html#feature-objects).
- Add the capability to ingest google.maps.Data objects and make their json representation a proper [GeoJSON FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects).
- Add methods to instantiate google.maps.Data objects using .toDataObject() on a wkt object.
- Complete the GeometryCollection functionality. At this point it cannot be exported, since WKT Geometrycollection is not supported.