On Apr 30, 4:23 pm, "[email protected]" <[email protected]> wrote: > On Apr 30, 3:32 pm, Walter <[email protected]> wrote: > > > Larry, do you mean that this: > > > icon.image = "http://labs.google.com/ridefinder/images/ > > mm_20_green.png"; > > > ...should read like this?: > > No, I mean: > + Your icon variable is local to your load function. It needs to be > + global to use it inside the GDownloadUrl callback funciton. > > Move the definition of "var icon" to the global scope, outside any > function definition (it is currently defined inside the load() > function.) > For more details, see Mike Williams' discussion in his tutorial: > Part 1 Scopehttp://econym.org.uk/gmap/scope.htm > > -- Larry > > > > > > > icon.image = "ridefinder/images/mm_20_green.png"; > > > (I feel so close to breaking out the champagne.)
And before you break out the champagne... - Your map variable has the same problem. - You have some missing coordinates: <marker Company="Cater To Me" Address="" MapLat="" MapLong="" Category="Caterer" /> your code will not handle this case, you either need to look for invalid coordinates and not display them, make sure that your server doesn't output entries that don't have both a latitude and a longitude or make sure all the entries in your database have coordinates in them. - Your latitude and longitude values are reversed in your "xml" feed: <marker Company="Angelo's Pizzeria" Address="1206 N. 6th St." MapLat="-89.62363" MapLong="44.96676" Category="Pizza" /> A latitude of -89.6 is really close to the south pole... -- Larry > > > On Apr 30, 10:10 am, "[email protected]" <[email protected]> > > wrote: > > > > On Apr 30, 8:00 am, Walter <[email protected]> wrote: > > > > > Thanks Larry. > > > > > Okay. Deleted line 28 (leftovers from another script). > > > > > Corrected case sensitive entries (to match XML[database rows])...but > > > > still...no marker population. > > > > Map should be covered in small secondary markers. > > > > > Source > > > > File:http://www.knifeforkspoon.com/wi_54403/profiles/show_details.cfm?id=2 > > > > IE complains: > > > Line: 67 > > > Char: 7 > > > Error: 'icon' is undefined. > > > > Your icon variable is local to your load function. It needs to be > > > global to use it inside the GDownloadUrl callback funciton. You > > > should look at the javascript errors in whatever browser you are > > > using... > > > > > Bear with me. I am new to Map API. > > > > We all were at one point in the not too distant past. Welcome... > > > > -- Larry > > > > > Know enough to be dangerous, but > > > > not enough to quit my day job. > > > > > Walter > > > > > On Apr 30, 12:08 am, "[email protected]" <[email protected]> > > > > wrote: > > > > > > On Apr 29, 10:07 pm, "[email protected]" <[email protected]> > > > > > wrote: > > > > > > > On Apr 29, 9:30 pm, Walter <[email protected]> wrote:> Okay, > > > > > > PHP/XML are working. > > > > > > > >http://www.knifeforkspoon.com/wi_54403/profiles/data_markertest.php > > > > > > > > But, the secondary overlaying markers are not populating the map > > > > > > > (The > > > > > > > primary marker is appearing as designed). What must I do to the > > > > > > > code > > > > > > > to finalize this function? > > > > > > > >http://www.knifeforkspoon.com/wi_54403/profiles/show_details.cfm?id=2 > > > > > > > Check your javascript errors: > > > > > > > Error: Company is not defined > > > > > > Source > > > > > > File:http://www.knifeforkspoon.com/wi_54403/profiles/show_details.cfm?id=2 > > > > > > Line: 60 > > > > > > > Error: showMarkers is not defined > > > > > > Source > > > > > > File:http://www.knifeforkspoon.com/wi_54403/profiles/show_details.cfm?id=2 > > > > > > Line: 28 > > > > > > Hint: javascript is case sensitive. Address is not the same as > > > > > address... > > > > > > -- Larry- Hide quoted text - > > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
