[OpenLayers-Users] Getfeatureinfo Higlighting

boho fnaci4775 at gmail.com
Mon Oct 3 01:05:09 EDT 2011


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.


More information about the Users mailing list