[ka-Map-users] Kamap layer in Openlayers

Allan Gyldendal Frederiksen agf at syddjurs.dk
Wed Apr 8 02:19:02 EST 2009

I have tried to load a kamap layer in Openlayers.
I have used the Kamap example from Openlayers. The problem is, that the example do not work properly. I have searched Kamaps mailinglists, and altered the code accordingly. But it still do not work.
I have a working Kamap application at http://webkort.syddjurs.dk:8080/kamap/ but using this gives the same result as the local application.
Does anyone have an idea of what I am missing to get it working.
The Openlayers code is:
<html xmlns="http://www.w3.org/1999/xhtml">
    <title>OpenLayers KaMap Example</title>
    <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
    <link rel="stylesheet" href="style.css" type="text/css" />
    <script src="../lib/OpenLayers.js"></script>
    <script type="text/javascript">
        var map;
        function init(){
            map = new OpenLayers.Map ( $('map'), {maxExtent: new OpenLayers.Bounds(545869, 6217995, 639525, 6256572), maxResolution: 'auto', i:'png', projection:"EPSG:25832", 'controls': [], units: "m"  } );
      var options = { scales: [220000, 150000, 100000, 50000, 25000, 10000, 5000, 2500, 1000] };
            var syddjurs_kamap = new OpenLayers.Layer.KaMap( "Oversigtskort",
                    "", {map: "gmap"});
            map.addControl(new OpenLayers.Control.LayerSwitcher());
  <body onload="init()">
    <h1 id="title">KaMap Example</h1>
    <div id="tags"></div>
    <p id="shortdesc">
        Demonstrate a tiled kamap layer as the base map, which can be pre-cached for higher performance.
    <div id="map" class="smallmap"></div>
    <div id="docs"></div>

Venlig hilsen

Allan Gyldendal Frederiksen

Direkte 87535261
Mobil 30924749
agf at syddjurs.dk


Syddjurs Kommune * IT-afdelingen * Hovedgaden 77 * 8410 Rønde * Tlf 87535000 * www.syddjurs.dk <http://www.syddjurs.dk/>  

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.maptools.org/pipermail/ka-map-users/attachments/20090408/36c58c28/attachment.htm 

More information about the ka-Map-users mailing list