Dynamically populated google maps sidebar?

The reason your links are not working is that you are defining your my_click and makeSidebar functions inside of your mapInit function and so they are not available outside of the scope of mapInit Simply move them outside of mapInit and everything should just work As for the load event ... what you are looking for is the addDomListener method of google.maps. Event Simply use google.maps.event. AddDomListener(window, 'load', name_of_your_inital_function); // e.G.Google.maps.event.

AddDomListener(window, 'load', mapInit) Finally; notta bene ... don't do this: var image = ; image'attraction' = 'data'; image'food' = 'more data Arrays are not meant to be used as hashes in Javascript. Use objects for dictionaries / hashes instead -- it's what you are actually doing (Array "subclasses" Object) and it will make it easier for others to use your code (and save you from headaches down the line) var image = {}; image'attraction' = 'data'; image'food' = 'more data.

The reason your links are not working is that you are defining your my_click and makeSidebar functions inside of your mapInit function and so they are not available outside of the scope of mapInit. Simply move them outside of mapInit and everything should just work. As for the load event ... what you are looking for is the addDomListener method of google.maps.event.

Simply use google.maps.event. AddDomListener(window, 'load', name_of_your_inital_function); // e. G.Google.maps.event.

AddDomListener(window, 'load', mapInit); Finally; notta bene ... don't do this: var image = ; image'attraction' = 'data'; image'food' = 'more data'; Arrays are not meant to be used as hashes in Javascript. Use objects for dictionaries / hashes instead -- it's what you are actually doing (Array "subclasses" Object) and it will make it easier for others to use your code (and save you from headaches down the line). Var image = {}; image'attraction' = 'data'; image'food' = 'more data.

Let me know if I can do anything else to help. – Sean Vieira Sep 13 '10 at 21:50 1 Cheers, that's getting closer to the behaviour I want! BTW: thanks for the heads up about the array :) – Sonia Sep 13 '10 at 22:38.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions