Thank you very much Andrew Leach. Now it works fine. :) :) Danesh
On Jan 10, 3:33 pm, Andrew Leach <[email protected]> wrote: > On 10 January 2011 07:41, Danesh <[email protected]> wrote: > > > Hi, > > I also have the same problem. > > No you don't. Your map is showing, but with no markers. > > > I use google map to show distribution map of each butterfly. > >http://slbutterflies.lk/Butterfly.php?cid=9 > > I get an error: address is not defined. Didn't you? (Check the > Javascript console). > > var marker = createMarker(point, name, address, type); > > And that's because you've commented it out here: > //var address = markers[i].getAttribute("address"); > > You've also commented out "type". That means that when you call > createMarker, you don't have variables called "address" or "type". The > function needs them. > > A better solution would be to define them as empty, so add this after > your comments: > var address = ""; // empty string > var type = ""; // empty string -- You received this message because you are subscribed to the Google Groups "Google Maps API V2" 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.
