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. +
+ +