Hi,
the least dirty way to do it is to fire a click event on the map:
map.events.triggerEvent("click", {xy: map.getPixelFromLonLat(lon, lat)});
Andreas.
On Tue, Jan 31, 2012 at 2:15 PM, Morper-Busch, Lucia
<[email protected]> wrote:
> Hello,
>
> I want to fire the getfeatureinfo event of the
> OpenLayers.Control.WMSGetFeatureInfo programmatically.
>
> I have x and y of a point (from Google geocoder) and want to display the
> featureinfo at this point without clicking on the map.
>
> Has anyone an idea?
>
> Best regards
>
> Lucia
>
>
>
> Dipl.-Geogr. Lucia Morper-Busch | Researcher
>
> University of Salzburg | Centre for Geoinformatics - Z_GIS
>
> Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg,
> Austria
>
> Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
>
>> Z_GIS…experts for the spatial view
>
>
>
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
>
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users