Google Maps API: “a has no properties”
This error is largely undocumented and gave me a few good hours of headache trying to debug. I’ve used the Google Maps API plenty in previous projects, but in my latest project, I rewrote all of the basic map loading script and arrived at the page spewing “a has no properties” with every map interaction.
The fix is to call map.setCenter(GLatLng(#,#)) directly after instantiating the GMap2 object. For whatever reason, this fixes all ills, and relieves my headache.
Comment on this