Re: [Google Maps API v3] Why can't I use an object literal do define a marker's position?

2011-09-29 Thread Barry Hunter
Well you can var marker = new google.maps.Marker({ position: new google.maps.LatLng(123, 123), if you really want. But it wont really save any memory (well it might a tiny bit*). The LatLng object still exists, and remains attached to the marker. When you decare it as variable - you retain

[Google Maps API v3] Why can't I use an object literal do define a marker's position?

2011-09-29 Thread Chris Wesley
Hi folks, I hope someone can help. I've looked around here and can't find the answer already. Apologies if I've missed it. I'm not new to programming, but I am new to OOP and Google Maps API. I want to make a map with many markers on it, marking the locations of relevnt events. I know that I ad