Skip to content

Instantly share code, notes, and snippets.

View ajsierra's full-sized avatar

AjSierra ajsierra

View GitHub Profile
@ajsierra
ajsierra / TopoJson.js
Last active November 4, 2016 10:20
OpenLayers.Format.TopoJSON.js extended from https://gist.github.com/alexmuro/5600606 to include Point type as well as Polygons and LineString
/**
* Class: OpenLayers.Format.TopoJSON
* A parser to read/write TopoJSON safely. Create a new instance with the
* <OpenLayers.Format.TopoJSON> constructor.
*
* Inherits from:
* - <OpenLayers.Format.JSON>
*/
OpenLayers.Format.TopoJSON = OpenLayers.Class(OpenLayers.Format.JSON, {