From 7fa74f1b0be9fad78a4976458b73c71347f9fa9e Mon Sep 17 00:00:00 2001 From: ahocevar Date: Tue, 17 Mar 2009 12:34:41 +0000 Subject: [PATCH] examples for #1901 git-svn-id: http://svn.openlayers.org/trunk/openlayers@9069 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/late-render.html | 42 ++++++++++++++++++++++ examples/teleportation.html | 70 +++++++++++++++++++++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100644 examples/late-render.html create mode 100644 examples/teleportation.html diff --git a/examples/late-render.html b/examples/late-render.html new file mode 100644 index 0000000000..12e3f83bef --- /dev/null +++ b/examples/late-render.html @@ -0,0 +1,42 @@ + + + OpenLayers Late Rendering Example + + + + + + +

Late Rendering

+ +
+ +

+ Demonstrates how a map can be rendered to an empty container after + construction by calling the render method. +

+
+
+ In cases where you need to create a map first and render it to some + container later, call the map constructor without a "div" argument. + In this case, you can provide the options object as the first argument. + To render your map to some container after construction, call the map's + render method with the container id. +
+ + diff --git a/examples/teleportation.html b/examples/teleportation.html new file mode 100644 index 0000000000..b516fac035 --- /dev/null +++ b/examples/teleportation.html @@ -0,0 +1,70 @@ + + + OpenLayers Teleporter Example + + + + + + + + + +

Map "Teleportation" and Rendering

+ +
+ +

Call the map's render method to change its container.

+ +
+
+
+
+ + + +
+ This example demonstrates how a map can be rendered initially in one + container and then moved to a new container. At any point after map + construction, the map's render method can be called with the id of + an empty container, moving the map to the new container. +
+ +