|
From: Lukas J. <luk...@de...> - 2010-06-23 08:19:29
|
No one experienced or been able to reproduce this issue? I'm grateful for any help I can get.
/Lukas
-----Ursprungligt meddelande-----
Från: Lukas Johansson [mailto:luk...@de...]
Skickat: den 18 juni 2010 10:41
Till: gwt...@li...
Ämne: [Gwt-openlayers-users] Safari and multiple urls for a WMS baselayer
I'm having a issue with Safari (4.0.5 on windows).
When I define a WMSlayer with a single url only it works fine, but when
initiate it with an array of url:s the urls: are combined into a string
where each url is separated with an ',' and this string is then used as
the url to the WMS server.
The constructor I call is:
WMS.java
public WMS(String name, String[] urls, WMSParams params, WMSOptions
layerParams) {
this(WMSImpl.create(name, new JStringArray(urls).getJSObject(),
params.getJSObject(), layerParams.getJSObject()));
}
I've looked into JstringArray() and it simply copies all values from
urls to a JStringArray so no problem there.
In WMSImpl there is a comment about the Object/Array problem and this is
solved by once more copying the values from the new array, seems ok. The
new value is then passed to OpenLayers.Layer.WMS.
So the bottom line is that I have no idea why this works in all mayor
browsers except Safari. When I only use 1 url there is no problem. We
have another OpenLayers (plain OpenLayers, non-GWT) application which
also uses multiple url and that app does not show this symtoms.
Anyone got a clue?
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Gwt-openlayers-users mailing list
Gwt...@li...
https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users
|