[OpenLayers-Users] Access to KML attributes

cbaldinu cbaldinu at gmail.com
Tue Sep 25 06:15:20 PDT 2012


Ok ok, SOVED.!!!!!!

I have addeda custom id on the kml file, like you told me and after that, i
have modified the code like below:

controls = {
                    drag: new OpenLayers.Control.DragFeature(sundials,
															 {
															 onComplete : function(event){
																
							var coord = this.feature.geometry.transform(
							new OpenLayers.Projection("EPSG:900913"),
							new OpenLayers.Projection("EPSG:4326")
							);

							*alert(this.feature.attributes.id);*
							
																					
																}
															 })
                };




And all i have to say it's that WORKS LIKE A CHARM!!! LOL


Hope this can be useful to someone else!!!!!


Thanks,

Cristian Baldinu





--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Access-to-KML-attributes-tp5004222p5004266.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.


More information about the Users mailing list