Thanks Julien, although if possible I would like to avoid using the server and serve a static image of the area, but with the ability to deal with user interactions (specifically a drawn polygon) with the correct co-ordinates.
Mo. On Tue, 2010-09-28 at 12:23 +0200, Julien Cigar wrote: > 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 -------------------------------------------------------------------------------- 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
