[OpenLayers-Users] using openlayers on a working ka-map

R. Ortner reinhard.ortner at edu.fh-kaernten.ac.at
Wed Oct 10 03:58:20 EDT 2007


Hi,

I have a runnig ka-map (data from a postgis server) and now I would like to
show the data over OpenLayers by using the ka-map files but I need some help
because i do not really know how.

can anyone plz. advice me how i do that, how the index.html looks like, ...

I tried this for the index.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <style type="text/css">
        #map {
            width: 1024px;
            height: 700px;
            border: 1px solid black;
        }
    </style>
    <script src="http://172.21.18.45/openlayers/lib/OpenLayers.js"></script>
    <script type="text/javascript">
        var map;
        function init(){
		    var options = { scales: [600000, 250000, 12500, 75000, 30000, 10000]
};
            map = new OpenLayers.Map('map',{'projection':'EPSG:31258',
'units':'m',
                     'maxExtent': new OpenLayers.Bounds(390730, 119473,
594760, 238680),
                     'maxResolution': "600000" });
            var jpl_wms = new OpenLayers.Layer.KaMap( "Gemeinde",
                    "http://172.21.18.45/ka-map/tile.php", {g: "Gemeinde",
map: "geoland_test"});

            map.addLayers([jpl_wms]);
            map.zoomToMaxExtent();
        }
    </script>
  </head>
  <body onload="init()">
    <h1>Orthophotos</h1>
    <div id="map"></div>
  </body>
</html>

but i get no data displayed :-(
-- 
View this message in context: http://www.nabble.com/using-openlayers-on-a-working-ka-map-tf4599200.html#a13131216
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list