jeffgorder / geoxml3

Automatically exported from code.google.com/p/geoxml3
0 stars 0 forks source link

Wrong naming conventions in ProjectedOverlay.js #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I followed the steps outlined in the wiki to include geoxml3 
2. The very same page was working a few weeks ago, now it is not working
anymore. 

What is the expected output? What do you see instead?
I should see Google Maps the the content of my kml file overlayd. Instead,
I get a JavaScript error in ProjectedOverlay.js saying that the function
set_map does not exist.

What version of the product are you using? On what operating system?
svn export http://geoxml3.googlecode.com/svn/trunk/ on sunday, dec 20th
2009. Firefox 3.5 on a mac. That gives me revision r3 of ProjectedOverlay.js.

Please provide any additional information below.
The reason why the error comes is that ProjectedOverlay.js is trying to use
functions such as set_map or get_zoom, but the Google API is using
different names such as setMap or getZoom.

I got the whole thing to work again by changing the function names to match
Google's naming convention. You can either manually change the functions or
apply the patch attached to this email to the ProjectedOverlay.js file.

Original issue reported on code.google.com by johanne...@gmail.com on 20 Dec 2009 at 2:23

Attachments:

GoogleCodeExporter commented 9 years ago
updated ProjectedOverlay.js from:
http://www.usnaviguide.com/v3maps/js/ProjectedOverlay.js
(has updated method names)

Original comment by geocodezip on 22 Sep 2010 at 6:54