On Tue, Jun 01, 2010 at 02:15:20PM +0200, Sarah Hoffmann wrote:
> Das geht noch einfacher mit den Strategies die OpenLayers mitliefert.
> Etwa so:
> 
> vector = new OpenLayers.Layer.Vector("data", {
>                               strategies: [new 
> OpenLayers.Strategy.BBOX({ratio : 1})],
>                                                                               
> protocol: new OpenLayers.Protocol.HTTP({
>                                                                               
>                   url: "http://www.foo.com/bar";,
>                                                                               
>                                                 format: new 
> OpenLayers.Format.GeoJSON()
>                                                                               
>                                 })
>                                                                               
> });
> 
> Das macht dann das Nachladen automatisch, wenn die Karte bewegt oder
> gezoomt wird.

Wie machst du das dann an die features noch styles zu haengen? So wuerden
ja die "rohen" features in die vector layer genagelt ....

Flo
-- 
Florian Lohoff                                                 [email protected]
"Es ist ein grobes Missverständnis und eine Fehlwahrnehmung, dem Staat
im Internet Zensur- und Überwachungsabsichten zu unterstellen."
- - Bundesminister Dr. Wolfgang Schäuble -- 10. Juli in Berlin 

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Talk-de mailing list
[email protected]
http://lists.openstreetmap.org/listinfo/talk-de

Antwort per Email an