Viewer without navigation elements
![]()
Further notes
A map viewer can be embedded into any kind of website by integrating a tag with the Viewer ID used in the configuration as shown below:
<div id="map" style="width: 400px; height: 400px";></div>
It is mandatory to specify the size of the map viewer (here: 400 Pixel x 400 Pixel).
In the following simple example, only one control element was added which allows the user to move the map section and to zoom in and out:
<controls> <olc:Navigation /> </controls>
Make sure that, in each configuration file, the namespaces have been allocated (e.g. ol="http://www.openlayers.org";).
![]()
powered by disy Informationssysteme GmbH
