HSLayers.MapViewer ================== `HSLayers.MapViewer `_ is comprehensive shortcut for `MapPanel, InfoPanel`, `OpenLayers.Map` and other objects and controls, among others it is the `HSLayers.Control.LayerSwitcher `_. .. literalinclude:: ../../../../branches/hslayers-3.0/examples/MapViewer.html :language: html :linenos: :lines: 10-23 You see, that number of JavaScripts got a bit longer. Don't worry, we will make it shorter in next step. Anyway, this is much better for debugging. Consider using:: This is in one compressed file everything you need for the MapViewer. But to debug this is a hell, so as compromise, you can use:: Which is the same, but in uncompressed form and so it is easier to debug in case error comes out (which surely will). Creating a map with LayerSwitcher and InfoPanel, Printing, OWS clients is simple: .. literalinclude:: ../../../../branches/hslayers-3.0/examples/MapViewer.html :language: javascript :linenos: :lines: 32-46 The example is taken from http://dev.bnhelp.cz/wwwlibs/hslayers/branches/editace/examples/MapViewer.html