|
From: Lukas J. <luk...@de...> - 2011-06-07 12:51:20
|
That's because that specific code did not make it into the 0.5build. I don't know how far away the next release is but one way of getting a working gwt-ol is to download and build your own version.
/Lukas
-----Ursprungligt meddelande-----
Från: Federica De Martin [mailto:fde...@tp...]
Skickat: den 7 juni 2011 08:54
Till: Lukas Johansson; gwt...@li...
Ämne: Re: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working
Thank you Lukas for the answer. I tried to add the line of code you suggest
me but the method is not included in my gwt-openlayers version, is it
possible?
I include the gwt-openlayers with maven:
<dependency>
<groupId>org.gwtopenmaps.openlayers</groupId>
<artifactId>gwt-openlayers-client</artifactId>
<version>0.5</version>
</dependency>
Is there another version I should have to include, or something else I have
to add?
Thank you again,
Federica
----- Original Message -----
From: "Lukas Johansson" <luk...@de...>
To: "Federica De Martin" <fde...@tp...>;
<gwt...@li...>
Sent: Monday, June 06, 2011 10:32 PM
Subject: [SPAM] SV: [Gwt-openlayers-users] WMSGetFeatureInfo not working
You should set the layer(s) that you want to query with:
options.setLayers() //layer or array of layers
/Lukas
-----Ursprungligt meddelande-----
Från: Federica De Martin [mailto:fde...@tp...]
Skickat: den 6 juni 2011 12:33
Till: gwt...@li...
Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo not working
Hi everybody.
I'm trying to implement the WMSGetFeatureInfo listner in my gwt-openlayers
map but I cannot make it work. I recive no result in the alert window; Now
I'm using che sample geoserver layer (Tasmania boundary and waters) but I
keep on getting no results. My application runs at localhost:8080 on jboss
and geoserver is running with Jetty at localhost:9090. This is my code:
<code>
String wmsurl=http://localhost:9090/geoserver/wms;
WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions();
options.setInfoFormat("text/html");
options.setURL(wmsurl);
options.setTitle("Query visible layers");
options.setQueryVisible(true);
WMSGetFeatureInfo info = new WMSGetFeatureInfo(options);
info.addGetFeatureListener(new GetFeatureInfoListener(){
public void onGetFeatureInfo(GetFeatureInfoEvent eo) {
Window.alert(eo.getType() + " - " + eo.getText());
}
});
map.addControl(info);
info.activate();
</code>
Do you have any idea on how to make it work. I think I'm missing something
but I really cannot understand what, please help me.
Thank you, Federica.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today.
http://p.sf.net/sfu/quest-dev2dev2
_______________________________________________
Gwt-openlayers-users mailing list
Gwt...@li...
https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users
|