Francesc Cañas <kikocanas@...> writes: > Hi, I've added the METADATA > It seems that Template is used to format the map for it's visualitzation in web. But what I want is open this map with openlayers in an existing web... If I use an empty template with the magic line: > > > <!-- MapServer Template --> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > "http://www.w3.org/TR/html4/transitional.dtd"> > <html> > <head> > <title>MapServer Template Sample</title> > </head> > <body> MapServer Template Sample<br> > </body> > </html> > > > The only thing displayed at screen is "MapServer Template Sample" > > And if I use the web where I want to display the map, all other layers > WMS are displayed but the one that i maked appears like a broken image > repeated for all the map.
Please do not start testing with OpenLayers and templates. Begin with a normal WMS and use either some well behaving GIS client (QGis, OpenJUMP, Kosmo) or even better, a browser with hand written basic calls. They are not extraordinary hard to write and by writing the requests yourself you are the one controlling the situation and not your application. Basic GetMap is as follows http://server.com/cgi-bin/mapserv?map=d:/mymap.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&Layers=my_layer&BBOX=w,x,y,z&FORMAT=image/png&WIDTH=500&HEIGHT=500&SRS=EPSG:4326&STYLES= and here is a live example http://188.64.1.61/cgi-bin/ms_ows?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&WIDTH=563&HEIGHT=437&LAYERS=osm_pisteet&FORMAT=image/png&BBOX=-369151.98300283286,6597900.0,1511076.628895184,8057331.444759207&SRS=EPSG:3067&STYLES= Make your service work with the basic setting and only after you have seen it works continue to more challenging use. -Jukka Rahkonen- _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-user