diff --git a/examples/dynamic-text-layer.html b/examples/dynamic-text-layer.html new file mode 100644 index 0000000000..9a0c964541 --- /dev/null +++ b/examples/dynamic-text-layer.html @@ -0,0 +1,90 @@ + + + OpenLayers Vector Behavior Example + + + + + + +

Dynamic POIs via a Text Layer

+

+ Loading dynamic data from a text file. +

+
+
+ The vector layer shown uses the BBOX strategy, the HTTP protocol, + and the Text format. + This setup appends "?bbox=west,south,east,north" to every + request. This allows you to configure the location as something + like 'textfile.php', and take the '?bbox=' parameter to select + data from a database or the like. +

+ There is nothing about this example that limits it to text files; + you can do the same thing with KML, GeoJSON, etc. +

+ This is an alternative to something like the OpenStreetMap "Dynamic POI" example. The Layer is a standard vector layer, and interaction can be + configured via the SelectFeature control, as you can see in the + latter half of the code, which allows you to open a popup when + a feature is selected. +
+ +