From 7907a81ae58ceb890aec3d2fd0224ebf9fbfe36c Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 3 Nov 2009 15:26:49 +0000 Subject: [PATCH] Add dynamic text layer example, with BBOX strategy, SelectFeatureControl, and popups. git-svn-id: http://svn.openlayers.org/trunk/openlayers@9778 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/dynamic-text-layer.html | 90 ++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 examples/dynamic-text-layer.html 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. +
+ +