[OpenLayers-Users] Adding a GeoJSON Layer

Bjorn Sandvik B.Sandvik at sms.ed.ac.uk
Sun Mar 30 13:11:05 EDT 2008


Hi,

I'm looking at possibilities of using OpenLayers for thematic mapping 
(thematicmapping.org), and I think GeoJSON might be a suitable format 
for choropleth maps.

I'm able to generate GeoJSON on the server using PHP, and my country 
polygons are rendered in OpenLayers when I'm pasting the GeoJSON code 
on: http://www.openlayers.org/dev/examples/vector-formats.html

My question: What is the best way to load and render a GeoJSON layer in 
OpenLayers?

Thanks,
Bjorn

http://blog.thematicmapping.org






More information about the Users mailing list