[MapQuery] GeoJSON and MapQuery
Mitja Kleider
mitja at kleider.name
Fri Aug 12 14:24:33 EDT 2011
Steven,
On Tue, 2011-08-09 at 11:16 +0200, Steven M. Ottens wrote:
> So I have a JS-object with valid GeoJSON however MapQuery and maybe also
> OpenLayers expect an url pointing to the GeoJSON. Is there a way to load
> the JS-object directly or do I need to provide the GeoJSON via an url?
You could use OpenLayers.Format.GeoJSON.read
http://dev.openlayers.org/releases/OpenLayers-2.10/doc/apidocs/files/OpenLayers/Format/GeoJSON-js.html#OpenLayers.Format.GeoJSON.read
Cheers,
Mitja
More information about the MapQuery
mailing list