[OpenLayers-Users] Unsubscribe from list
Xavier Rayo
ivaxoyar at hotmail.com
Wed Sep 9 06:30:06 EDT 2009
Hi all,
I would like to unsubscribe from the list but I don't really know what do I have to do.
Can someone please tell me how can i do that?
thanks,
xavi
Date: Wed, 9 Sep 2009 11:21:16 +0100
From: paulcurran9 at googlemail.com
To: arnd.wippermann at web.de
CC: users at openlayers.org
Subject: Re: [OpenLayers-Users] Display specific layer from mapfile
Thanks for the response, you are right both my layers are set as STATUS DEFAULT. However when I set one layer status to ON and the other OFF and view via mapserver (cgi-bin/mapserv.exe?) I can only see a blank white screen and via open layers I get the error message 'WMS server error.WMSLoadGetMapParams()'.
The same happens if both my layers are set to ON, I seem to only be able to view them when status set to DEFAULT.
Thanks for any help in advance
Paul
2009/9/8 Arnd Wippermann <arnd.wippermann at web.de>
Hi,
from your code both layers should be baselayers. That means only one layer would displayed. That seems, that in your mapfile both layers have status default.
Arnd
Von: users-bounces at openlayers.org [mailto:users-bounces at openlayers.org] Im Auftrag von Paul Curran
Gesendet: Dienstag, 8. September 2009 23:10
An: users at openlayers.org
Betreff: [OpenLayers-Users] Display specific layer from mapfile
Hi,
I am having trouble displaying a specific layer from my mapfile. I have two layers called '250' and 'uk'. I wish to display my '250' layer origninally, then zoom closer to display my 'uk' layer. however both my layers are currenlty displayed at all times.
Am i going about this the correct way by having two variables 'layer1 and 'layer2' for layers from the same mapfile?
Currently my code is as follows
var bounds = new OpenLayers.Bounds(0, 0, 660046, 1229782);
var map, layer1, layer2;
var options = { maxExtent: bounds, maxResolution: 600, numZoomLevels: 10};
layer1 = new OpenLayers.Layer.WMS("OpenLayers WMS",
"http://127.0.0.1/cgi-bin/mapserv.exe?", { layers: "250", map: '/ms4w/apps/openlayers-2.8/data/uk2.map', minZoomLevel: 1, maxZoomLevel: 4 },
{ gutter: 15 });
layer2 = new OpenLayers.Layer.WMS("OpenLayers WMS",
"http://127.0.0.1/cgi-bin/mapserv.exe?", { layers: "uk", map: '/ms4w/apps/openlayers-2.8/data/uk2.map', minZoomLevel: 5, maxZoomLevel: 10 },
{ gutter: 15 });
map.addLayer(layer1, layer2);
Thanks for any help in advance
Paul
_________________________________________________________________
Prueba algunos de los nuevos servicios en línea que te ofrece Windows Live Ideas: tan nuevos que ni siquiera se han publicado oficialmente todavía.
http://ideas.live.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20090909/3762c584/attachment.html
More information about the Users
mailing list