On 09/28/2010 11:49, Mo Abrahams wrote:
Hi,
Hello,
Can somebody give me some assistance creating a map of Antarctica using OpenLayers please?
If your WMS server is well configured, the following should work:
var your_layer= new OpenLayers.Layer.WMS(
"layer_name",
"http://your.wms.server/", {
'layers' : 'layer_name',
'transparent' : true,
'isBaseLayer' : false
});
your_map.addLayer(your_layer);
You should probably use EPSG:3031 as projection
FYI I use something like this on the server side (MapServer):
LAYER
NAME "antarctic"
TYPE RASTER
STATUS ON
DATA antarctica_sthn_ocean.tiff
PROJECTION
"init=epsg:3031"
END
METADATA
"wms_title" "ant"
END
END
Julien
I have this map http://dashavoo.com/map.png that was created with BaseMap in Python (Orthographic projection iirc) which covers the approximate area I want. I have tried modifying other code I found online, but have been unsuccessful so far. Incase it wasn't immediately apparent, I am new to OpenLayers. Mo. -------------------------------------------------------------------------------- Plymouth Marine Laboratory Registered Office: Prospect Place The Hoe Plymouth PL1 3DH Website: www.pml.ac.uk Registered Charity No. 1091222 PML is a company limited by guarantee registered in England& Wales company number 4178503 -------------------------------------------------------------------------------- This e-mail, its content and any file attachments are confidential. If you have received this e-mail in error please do not copy, disclose it to any third party or use the contents or attachments in any way. Please notify the sender by replying to this e-mail or e-mail [email protected] and then delete the email without making any copies or using it in any other way. The content of this message may contain personal views which are not the views of Plymouth Marine Laboratory unless specifically stated. You are reminded that e-mail communications are not secure and may contain viruses. Plymouth Marine Laboratory accepts no liability for any loss or damage which may be caused by viruses. -------------------------------------------------------------------------------- _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
-- No trees were killed in the creation of this message. However, many electrons were terribly inconvenienced.
<<attachment: jcigar.vcf>>
_______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
