[OpenLayers-Users] WMS Layer Request Problems
Bradley McLain
bradley_mclain at debortoliwines.com
Mon Dec 17 01:00:37 EST 2007
I have read the page and done some testing. I used just a single Google
layer and the WMS definition from the OL examples to do some testing.
Observations:
Attempting to load Google as base, WMS as overlay:
- I do not get pink tiles, instead the Google layer seems to partially
load but does not show up correctly
- The layer switcher which I have defined at the end of my JS does not
show up
- I cannot seem to get an image URL the option is not given? It will
only let me save/view my html document
Commenting out map.addLayer(layer):
- Correct me if i'm wrong but providing a layer is defined correctly,
this should not affect the loading of the page, in fact it should fix the
page if that layer is having problems
- Result is the same as the above condition
Commenting out WMS layer definition:
- If I comment out this the page is fixed and the Google layer loads
correctly
- This leads me to believe that it is a javascript error? but I used
both my original definition, (which worked correctly before under Fedora 7)
and the OpenLayers examples to test with and both are giving the same error.
- Other possible issues is that I primarily used OL 2.4 before but I
swear that it worked under 2.5 but I may be wrong.
Adding in Mapserver layer:
- Calling a Mapserver layer works quite fine (which is what I'm using
as my WMS)
Cheers
Brad
On 14/12/2007, Christopher Schmidt <crschmidt at metacarta.com> wrote:
>
> On Fri, Dec 14, 2007 at 04:23:35PM +1100, Bradley McLain wrote:
> > A styles parameter is not optional according to the WMS 1.1 spec, nor is
> > it optional in MapServer 5.0. (This is probably the single most
> > "controversial" change in 5.0, and I believe it's going away in 5.0.1.)
> >
> > So these parameters have always been required? it was just the case that
> I
> > was running an older version of mapserver that did not enforce them?
>
> Yes.
>
> > With "work at all" I was referring to simply trying to add in the
> additional
> > parameter in the OpenLayers WMS Layer definition. Since then I have got
> a
> > Mapserver Layer working, so I guess this narrows the problem down to a
> WMS
> > issue. Currently my WMS definitions in OL are as follows:
> >
> > var grap = new OpenLayers.Layer.WMS( "Griffith Aerial
> Photo",
> > "
> http://192.168.1.130/cgi-bin/mapserv?map=/var/www/mapfiles/wms.map",
> > {layers: 'grap', format:"image/png"},
> > {isBaseLayer: false}
> > );
>
> And what doesn't work about this? Do images load at all? Do you get pink
> tiles? Did you read the page I linked, about problems with images being
> incorrect?
>
> Regards,
> --
> Christopher Schmidt
> MetaCarta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20071217/92431be0/attachment.html
More information about the Users
mailing list