[mapserver-users] RE:
Özgür Arslan
ozgurarslan81 at hotmail.com
Mon Apr 9 19:52:09 PDT 2012
Dear Venkat,
You were right your last suggestion worked very well. Thank you so much I really appreciate it. Have a nice day.
Ozz
Date: Mon, 9 Apr 2012 11:49:10 +0530
Subject: Re:
From: venkat.shesu at gmail.com
To: ozgurarslan81 at hotmail.com
Dear Ozz,
Me too developing same sort of application, by using OpenLayers creating several layers from single mapfile. which looks something like this:
::::::::::::::::::::
mainURL = "/cgi-bin/mapserv54?map=ODIS_MAPFILE";
map = new OpenLayers.Map({
div: "map",
maxExtent: new OpenLayers.Bounds(20,-70,120,30),
restrictedExtent: new OpenLayers.Bounds(20,-70,120,30)
});
ocean = new OpenLayers.Layer.WMS("Indian Ocean",
mainURL,
{'layers': 'ocean', transparent: true, format: 'image/gif'},
{isBaseLayer: true}
);
moored = new OpenLayers.Layer.WMS("Moored Buoys",
mainURL,
{'layers': 'moored', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
drifting = new OpenLayers.Layer.WMS("Drifting Buoys",
mainURL,
{'layers': 'drifting', transparent: true, format: 'image/gif'},
{isBaseLayer: false}
);
map.addLayers([ocean, moored, drifting]);
::::::::::::::::::::::::::::::::::::::::::
And its work properly with my existing setup, you may customized these lines of code for whatever 3 layers you have mentioned in your previous mail.
with best regards
Venkat.
On Mon, Apr 9, 2012 at 10:14 AM, Özgür Arslan <ozgurarslan81 at hotmail.com> wrote:
Dear Venkat
Thank you for your suggestion I really appreciate it but it didn't work. Do you have another idea to share with me please?
Thanks again
Ozz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20120410/4ae7cf7f/attachment.htm>
More information about the MapServer-users
mailing list