On 1/4/2012 4:22 AM, Juan Jesús Cremades Monserrat wrote:
I've created an application where there is the next code: Now, I want when some user click's in one of this poins, he can read a message with the name of the city.
I would use the Control.WMSGetFeatureInfo, rather than your own custom click handler. It should do exactly what you want, and save you a fair amount of typing.
http://openlayers.org/dev/examples/getfeatureinfo-control.html http://openlayers.org/dev/examples/getfeatureinfo-popup.html -- Greg Allensworth, Web GIS Developer BS A+ Network+ Security+ Linux+ Server+ GreenInfo Network - Information and Mapping in the Public Interest 564 Market Street, Suite 510 San Francisco CA 94104 PH: 415-979-0343 x302 FX: 415-979-0371 email: [email protected] Web: www.GreenInfo.org www.MapsPortal.org Subscribe to MapLines, our e-newsletter, at www.GreenInfo.org _______________________________________________ Users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/openlayers-users
