[GeoJSON] GeoJSON in OpenLayers
Tim Schaub
noreply at geocartic.com
Mon Mar 26 12:49:01 PDT 2007
Hey Sean-
Sean Gillies wrote:
> Tim Schaub wrote:
>> Hello-
>>
>> I've put together a GeoJSON reader/writer for OpenLayers. You can
>> digitize some features and see the resulting GeoJSON (my own flavor) in
>> this example:
>> http://dev.openlayers.org/sandbox/tschaub/geojson/examples/geojson.html
>>
>
> Tim,
>
> I prefer "properties" (GML terminology) to "attributes" to avoid
> confusion with Javascript or HTML terms. I also have a preference for an
> explicit "geometry" attribute containing type and data. My $0.02.
>
> I'm looking forward to trying out the new OpenLayers code soon.
>
> Cheers,
> Sean
>
Thanks for the feedback. I've updated the example with your suggestions.
Each feature now looks something like
{
id: string,
geometry: {
type: string,
data: array
},
properties: object
}
Tim
http://dev.openlayers.org/sandbox/tschaub/geojson/examples/geojson.html
More information about the GeoJSON
mailing list