I would really appreciate help on this.
My html v2 file with some temporary key works fine. I get places from some XML, create different color markers, and add some URLs also from the XML attributes in the Info Window (not too complicated). Now I need to port this to v3. I found some equivalents for functions from v2, but I did not find for GDownloadUrl (for loading XML), as well as GIcon (G_DEFAULT_ICON); Can someone please take a look at both of my codes and tell me how to change so that this works in v3 too. I have changed most of the things, so if someone can see the error, I will be grateful. Thanks in advance.
Version 2:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Google Maps</title> <script src="http://maps.google.com/maps?file=api&v=2&sensor=false&key=AIzaSyA4UDNP6MZ" type="text/javascript"></script> </head> <body onunload="GUenter code herenload()"> <table border=1> <tr> <td> <div id="map" style="width: 1250px; height: 1250px"></div> </td> </tr> </table> <script type="text/javascript"> </script> </body> </html>
Version 3:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>Google Maps</title> <script src="http://maps.google.com/maps?file=api&v=3&sensor=false&key=AIzaSyDsa1LyWOQ" type="text/javascript"></script> </head> <body onunload="initialize()"> <table border=1> <tr> <td> <div id="map" style="width: 1250px; height: 1250px"></div> </td> </tr> </table> <script type="text/javascript"> </script> </body> </html>
Dejan
source share