[mapserver-users] Connecting to remote MapServer WMS/WMF layers using PHP/OpenLayers
Thomas Gratier
osgeo.mailinglist at gmail.com
Sat Jan 22 16:14:38 PST 2011
Hello,
Look with firebug the tiles url when hovering. There have wrong url
Not sure it will solve everything but
server = "http://" + location.host + "/";
must be something like
server = "http://www.catastroloscabos.gob.mx/"
and because of this change all case like
mlayer = new OpenLayers.Layer.MapServer("Manzanas",
server + "www.catastroloscabos.gob.mx/cgi-bin/mapserv.fcgi?", {
map: '/home/juribe/webcatastro/catastro.map',
layers: 'm',
map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false});
map.addLayer(mlayer);
will look
mlayer = new OpenLayers.Layer.MapServer("Manzanas",
server + "cgi-bin/mapserv.fcgi", {
map: '/home/juribe/webcatastro/catastro.map',
layers: 'm',
map_imagetype: 'png'}, {singleTile: true, isBaseLayer: false});
map.addLayer(mlayer);
If you have others issues, the best is to post now to the users-openlayers
list
http://lists.osgeo.org/mailman/listinfo/openlayers-users because your
questions for the moment seems to be more related to client side and not to
mapserver.
Regards
ThomasG
GIS specialist
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110123/d05b62e0/attachment.htm>
More information about the MapServer-users
mailing list