[OpenLayers-Users] JQuery Mobile - Use WMSGetFeatureInfo in place of built in features

Eric Lemoine eric.lemoine at camptocamp.com
Wed Dec 28 14:46:55 EST 2011


On Wednesday, December 28, 2011, Mark Volz <volzmark at yahoo.com> wrote:
> Hello,
> I am trying to configure the JQuery Mobile application so that instead of
a click identifying the built in sprinters layer, it will identify using
WMSGetFeatureInfo instead.  How do I assign the click event to
WMSGetFeatureInfo?

WMSGetFeatureInfo works on touchstart/touchend on touch devices. So you
shouldn't need anything specific to make the WMSGetFeatureInfo control work.

> Is it in controls or somewhere else?
>        controls: [
>             new OpenLayers.Control.Attribution(),
>             new OpenLayers.Control.TouchNavigation({
>                 dragPanOptions: {
>                     enableKinetic: true
>                 }
>             }),
>             click: new

Remove "click:". The "controls" property references an array of controls.

Openlayers.Control.WMSGetFeatureInfo({
>                 url: 'http://demo.opengeo.org/geoserver/wms',
>                 title: 'Identify features by clicking',
>                 layers: [water],
>                 queryVisible: true
>             }),
>             geolocate
>             //infoControls
>             //selectControl
>         ],


-- 
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111228/8a59f01a/attachment.html


More information about the Users mailing list