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, {
@alexmuro
alexmuro / TopoJSON.js
Last active December 17, 2015 11:09
OpenLayers.Format.TopoJSON.js extended from https://gist.github.com/jseppi/4674203 to include LineString type as well as Polygons, still doesn't implement other types
/**
* 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, {