[OpenLayers-Users] Canot Load WMS layer
Phil Scadden
p.scadden at gns.cri.nz
Tue Sep 13 17:55:51 EDT 2011
The URLs required in the definition of the layers is just the URL to the
server. openlayers creates the
rest depending on extent, tilesize, etc.etc
So, it should read.
> var wmsurl="http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms
> <http://sdmdataaccess.nrcs.usda.gov/Spatial/SDM.wms?REQUEST=GetMap&SERVICE=WMS&VERSION=1.1.1&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&WIDTH=800&HEIGHT=600&FORMAT=image/gif&LAYERS=MapunitPoly&BBOX=-84.513702,37.993728,-84.449329,38.044441>
but need to define map extent etc.
I strongly recommend you look at the openlayers examples and follow one
the wms/wfs examples there.
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110914/5dce35c1/attachment-0001.html
More information about the Users
mailing list