From: Lukas J. <luk...@de...> - 2010-07-15 12:31:01
|
Hello Edwin I just completed my implementation with clickable wmslayers trough WmsGetFeatureInfo. I found that there exists a way to request the data in a machine friendly way (GML) by setting infoFormat to "application/vnd.ogc.gml". This means that I get VectorFeatures straight from the request and therefore can reuse my exists WFS popuprenderers to render popups. No need for HTML templating :) While working with the implementation I added setDrilldown, setLayers and setUrls to WmsGetFeatureInfoOptions as well as getFeatures in the GetFeatureInfoListener class. These changes allow me to decide exactly what layers to query and they don't have to be served by the same server, which is the case when using using drilldown. I'm quite sure that drilldown and setLayers where added in OL 2.9, but I hope it's ok that I wrapped them as well. I'd like some feedback on the methods handling arrays (setLayers and getFeatures) as this is my first time using wrapped arrays in gwt-ol. Is this the way to do it or are there any better patterns? /Lukas -----Ursprungligt meddelande----- Från: Lukas Johansson [mailto:luk...@de...] Skickat: den 17 juni 2010 10:18 Till: Edwin Commandeur Kopia: gwt...@li... Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS Thanx I've totally missed that. I believed that I could request the data in a machine friendly format (for e.g. json). But it must be possible to create a template which will be easier to parse in my app code. Thank you! -----Ursprungligt meddelande----- Från: Edwin Commandeur [mailto:com...@gm...] Skickat: den 17 juni 2010 09:19 Till: Lukas Johansson Kopia: Couzic Mikael; Philipp Verhoeven; gwt...@li... Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS Hi Lukas, In the code in trunk there is a WMSGetFeatureInfo example, similar to the example you reference. It uses a simple proxy included in the latest GWT-OL from trunk. With WMSGetFeatureInfo you have to be aware that there is no standard for WMSGetFeatureInfo output. In GeoServer you can define templates for this output, see here: http://geoserver.org/display/GEOSDOC/GetFeatureInfo+templates It would be great if you want to contribute enhancements back to GWT-OL. Greetings, Edwin On 17 June 2010 08:55, Lukas Johansson <luk...@de...> wrote: > I will within a two weeks add this functionality to our app, (we're > currently using WFS but need to handle larger amount of data which get > impossible to load with WFS). > > The plan is to use the technique shown in > http://openlayers.org/dev/examples/getfeatureinfo-popup.html to be able to > produce popups for WMS-layers as well. > > I'm not sure if gwt-ol implements all that I need to use, but if not, I will > implement those parts myself and send them back as a patch. > > /Lukas > > Från: Couzic Mikael [mailto:mik...@gm...] > Skickat: den 16 juni 2010 13:21 > Till: Philipp Verhoeven > Kopia: gwt...@li... > Ämne: Re: [Gwt-openlayers-users] Producing clickable layers from WMS > > > > Hi Philipp, > > I needed this kind of functionnality, but I didn't use WMS, just WFS. > The idea is to get your polygons from the WFS protocol, and load them into > your VectorLayer. If your polygons are static, you can even use GML files. > But I'm not sure that's what you're looking for, as this solution implies > the WMS is completely independant from the polygons. > > Ask me if you want more info, I could even provide you with sample code if > you want. > > Cheers, > Mikael > > 2010/6/16 Philipp Verhoeven <ve...@go...> > > Hi, > > I'm looking for a solution to make any wms layer clickable. That means that > there should be areas - which are bounded by a polygon - that show an > information bubble when hovering over. > Does anyone have experience in this field? As far as I know gwt-openlayers > does not support this feature. > > I found a suitable example for openlayers using a WFS: > http://openlayers.org/dev/examples/getfeature-wfs.html > > It is possible to add the needed funcionality and build the .jar by myself, > right?! > > I'm thankful for any idea or comment on this. > > Cheers, > Philipp > > ------------------------------------------------------------------------------ > 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 > > > > ------------------------------------------------------------------------------ > 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 > > ------------------------------------------------------------------------------ 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 |