From: Lukas J. <luk...@de...> - 2010-01-18 07:33:29
|
Thank you for your answer. I checked out the working copy and it worked. Från: "Cerávolo, Rafael V.B." [mailto:raf...@gm...] Skickat: den 15 januari 2010 18:26 Till: Lukas Johansson Kopia: gwt...@li... Ämne: Re: [Gwt-openlayers-users] Problem using SelectFeature. Hi Lukas, This issue happens on version 0.4 but was already fixed in the current source code (mercurial repository). You can get the last source code from the mercurial repository: http://gwt-openlayers.hg.sourceforge.net:8000/hgroot/gwt-openlayers/gwt-openlayers. Regards, Cerávolo On 15/01/2010 11:41, Lukas Johansson wrote: Hello, I'm trying to use SelectFeature in gwt-openlayers 0.4: Layer layer = new Vector(); Control cntrl = new SelectFeature(layer); SelectFeatureOptions options = new SelectFeatureOptions(); options.onSelect(new SelectFeatureListener() { public void onFeatureSelected(VectorFeature vectorFeature) { Window.alert("feature selected"); } }); options.onUnSelect(new UnselectFeatureListener() { public void onFeatureUnselected(JSObject vectorFeature) { Window.alert("feature unselected"); } }); map.addControl(cntrl); But when the code is executed I get the following error: 14:52:51.378 [WARN] [Standard] Member 'onFeatureUnselected(Lorg/gwtopenmaps/openlayers/client/feature/VectorFeature;)' in JSNI reference '@org.gwtopenmaps.openlayers.client.control.SelectFeature.UnselectFeatureListener::onFeatureUnselected(Lorg/gwtopenmaps/openlayers/client/feature/VectorFeature;)' could not be found; expect subsequent failures java.lang.NoSuchFieldError: onFeatureUnselected(Lorg/gwtopenmaps/openlayers/client/feature/VectorFeature;) I've noticed that the onFeatureUnselected receives a JSObject while the onFeatureSelected receives a VectorFeature which seams a bit odd. Any help would be appreciated. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev _______________________________________________ Gwt-openlayers-users mailing list Gwt...@li... https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users |