|
From: Lukas J. <luk...@de...> - 2010-09-23 13:57:08
|
Basicly like this, (copy pasted from our working code, but you get the idea).
WMSGetFeatureInfoOptions options = new WMSGetFeatureInfoOptions();
options.setLayers(arrayOfLayersToQuery));
options.setDrillDown(true);
options.setQueryVisible(true);
options.setInfoFormat("application/vnd.ogc.gml"); //return result as gml
public void onGetFeatureInfo(GetFeatureInfoEvent eventObject) {
VectorFeature[] features = eventObject.getFeatures();
String html = "foo";
FrameCloud popup = new FramedCloud("MapFeaturePopup", features[0].getCenterLonLat(), new Size(300, 400), html);
}
/Lukas
-----Ursprungligt meddelande-----
Från: David R Robison [mailto:drr...@op...]
Skickat: den 23 september 2010 15:41
Till: gwt...@li...
Ämne: [Gwt-openlayers-users] WMSGetFeatureInfo and AnchoredBubble
I am using the latest gwt-openlayers source. I an usingthe
WMSGetFeatureInfo control. In the onGetFeatureInfo event listener I am
trying to create and AnchoredBubble to display the results of the
WMSGetFeatureInfo. How do I get the LonLat from the GetFeatureInfoEvent
to pass to the AnchoredBubble constructor? Also it would be nice to be
able to set the layers to query in the WMSGetFeatureInfoOptions. David
--
David R Robison
Open Roads Consulting, Inc.
103 Watson Road, Chesapeake, VA 23320
phone: (757) 546-3401
e-mail: drr...@op...
web: http://openroadsconsulting.com
blog: http://therobe.blogspot.com
book:
http://www.xulonpress.com/bookstore/bookdetail.php?PB_ISBN=9781597816526
This e-mail communication (including any attachments) may contain
confidential and/or privileged material intended solely for the
individual or entity to which it is addressed. If you are not the
intended recipient, you should immediately stop reading this message and
delete it from all computers that it resides on. Any unauthorized
reading, distribution, copying or other use of this communication (or
its attachments) is strictly prohibited. If you have received this
communication in error, please notify us immediately.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Gwt-openlayers-users mailing list
Gwt...@li...
https://lists.sourceforge.net/lists/listinfo/gwt-openlayers-users
|