google maps api v3 singleton constructor

02.26.10 | 0 comments
Last Modified: 02.26.10 @ 08:25

I am (was) in the process of creating a web application prototype that utilizes Google Maps and its API. I was in the situation where I had to reference the main map object at multiple times throughout the life of the page. So I looked up javascript singleton constructors and found this dude’s implementation to be good. So I whipped this little snippet and away I went…

Leave a Reply




You can follow the discussion through the Comments Feed. You can also Pingback or Trackback from your own site.