...you ARE right, I'm not passing that variable..... The problem is that, for that variable, the syntax is: function newMarker(location, html, iconcolor, iconnum, iconsize) so I will never be able to pass it......
On 2 Set, 11:38, Rossko <[email protected]> wrote: > > Referring to Google Maps API Tutorial by Mike Williams > > in Associative arrays and Custom Icons, I think the structure of code > > is: > > new GMarker(point, gicons[icontype]); > > Referring to the actual > documentation,http://code.google.com/apis/maps/documentation/reference.html#GMarker > yes, that's one way, although it is now the 'old' way. > To use options you could do > var temp_marker = new GMarker(location, {icon:customIcons[tipo], > zIndexProcess:markerOrder}); > look carefully to see how that differs from what you had before. > > > but still not working....(this time the page loads > > correctly)http://pinzerik.altervista.org/map_KO.php > > I get a straightforward javascript error > "tipo is not defined" > you should find out how to look at your javascript errors in whatever > browser you are using. > > From your XML parsing code - > var tipo = marks[i].getAttribute("tipo"); > var mark = newMarker(point, null, null, null, null); > you extract a variable called 'tipo' from your XML but never pass it > your newMarker() function. > > cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
