Hello Everyone,<br><br>I'm having some trouble passing an array of properties to points created with the yahoo geocoder control: <a href="http://trac.openlayers.org/attachment/ticket/1784/yahoogeocoder.html">http://trac.openlayers.org/attachment/ticket/1784/yahoogeocoder.html</a><br>
<br>I've got a series of address stored in a MySQL database, each of which also have a 'NAME' property associated with an ambulance company. I'm using a php script to create a javascript variable which extracts all of these values from the database. A simple looping function then runs each of them through the yahoo geocoder<br>
<br>The resulting points are geocoded in the correct location, but attributing these geocoded points with their respective 'NAME' values is turning out to be an issue. Each geocoded point is being attributed with the 'NAME' value for the last row in the array. I 'believe' that the issue is related to scoping. I 'know' that the issue is related to my knowledge of javascript, and any help would be greatly appreciated.<br>
<br>I've got a live example running at: <a href="http://www.mkgeomatics.com/apps/air_ambulance/aab_embed_test.php">http://www.mkgeomatics.com/apps/air_ambulance/aab_embed_test.php</a><br>Clicking on the ambulance markers will yield the result which I have described above.<br>
<br>The geocoding function for the ambulance companies begins at line 333, geocodeGroundAmbulance().<br>The callback function begins at line 358, callbackGroundAmbulance().<br>Finally, the ID function begins at line 298, IdGroundAmbulance(feat).<br>
<br>Thanks in advance for any tips or suggestions.<br><br>-- <br>m a t t h e w k e n n y<br><a href="http://www.mkgeomatics.com">http://www.mkgeomatics.com</a><br>