[OpenLayers-Users] please help to understand loading of
existing geojson layers
Jerome Freyre
jerome.freyre at hispeed.ch
Mon Apr 27 02:33:13 EDT 2009
Hi,
They use a file called world_borders.js
This file contains a geoJSON with the world borders but also information
about statistics.
1. When the main file is loaded, they create a new map with options
2. They add a google layer to the map.
3. They create a new style and context
4. They create a vector layer with the precedent style and a geoJSON parser.
5. They add the geojson to the parser and the parse is passed to the layer.
6. Finally, they add a control used for the select_feature event.
The style and the context are used to define the color of the country
Hope this will be useful,
Jérome
Timmie wrote:
>
> Hello,
>
> I found a exciting map here:
> Open Source Activity Map -
> http://www.redhat.com/about/where-is-open-source/activity/
>
> Can you help me to understand how they load the statistical data?
> It is done within the world_borders layer by GeoJSON fromat.
>
> But where and how to they get the file?
>
> Thanks in advance,
> Timmie
>
--
View this message in context: http://n2.nabble.com/please-help-to-understand-loading-of-existing-geojson-layers-tp2692284p2722030.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
More information about the Users
mailing list