[OpenLayers-Users] Getfeatureinfo Higlighting
Andreas Hocevar
ahocevar at opengeo.org
Tue Dec 13 04:47:23 EST 2011
The text/html output of GetFeatureInfo does not give you the geometry
of the clicked feature. You would have to use an infoFormat that does
(e.g. GML), or use WFS GetFeature instead. For the latter, see
http://openlayers.org/dev/examples/getfeature-wfs.html
Andreas.
On Mon, Oct 3, 2011 at 7:05 AM, boho <fnaci4775 at gmail.com> wrote:
> hello...
> i want to try highlighting with openlayers getfeatureinfo control, but i
> don't have any idea to make it...
>
> i have read documentation at openlayers :
> http://trac.osgeo.org/openlayers/wiki/Highlighting
> but still, i don't have any idea to make it works with getfeatureinfo..
>
> this is my getfeatureinfo code :
>
> info = new OpenLayers.Control.WMSGetFeatureInfo({
> url:
> 'http://localhost/cgi-bin/mapserv.exe?map=C:/ms4w/Apache/htdocs/petaPAD/batasKab.map&',layers:
> [layer],
> // infoFormat:'application/vnd.ogc.gml',
> infoFormat:'text/html',
> title: 'Identify features by clicking',
> queryVisible: false,
> eventListeners: {
>
> getfeatureinfo: function(event) {
>
> var myArray = event.text.split("<br>");
> map.addPopup(new OpenLayers.Popup.FramedCloud(
> "chicken",
> map.getLonLatFromPixel(event.xy),
> null,
> event.text,
> null,
> true
> ));
> }
> }
> });
>
> please someone help me with this..
>
> Boho.
>
> --
> View this message in context: http://osgeo-org.1803224.n2.nabble.com/Getfeatureinfo-Higlighting-tp6853896p6853896.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
--
Andreas Hocevar
OpenGeo - http://opengeo.org/
Expert service straight from the developers.
More information about the Users
mailing list