Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Google Map API Issue

jwellsnhFeb 26 2012 — edited Apr 19 2012
Google Map API experts, I had a page running yesterday on apex.oracle.com that has since stopped working. The application is running Theme 23 with some custom templates. From what I can tell; my Google API Key is valid. Below is the code from the HTML page; can anyone help in debugging the page why the map no longer renders?

HTML Header
<!DOCTYPE html>
<html>
  <head>
    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    <style type="text/css">
      html { height: 100% }
      body { height: 100%; margin: 0; padding: 0 }
      #map_canvas { height: 100% }
    </style>
    <script type="text/javascript"
      src="http://maps.googleapis.com/maps/api/js?key=&API_KEY.&sensor=true">
    </script>
    <script type="text/javascript">

      function initialize() {
        var myOptions = {
          center: new google.maps.LatLng(43.6953512,-71.6306325),
          zoom: 8,
          mapTypeId: google.maps.MapTypeId.HYBRID
        };
        var map = new google.maps.Map(document.getElementById("map_canvas"),
            myOptions);
      }
    </script>

  </head>
</html>
Page HTML Body Attribute
<body onload="initialize()">

<div id="map_canvas" style="width:100%; height:100%"></div>

</body>
Jeff

Edited by: jwellsnh on Feb 26, 2012 9:23 AM
This post has been answered by 197888 on Feb 26 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 17 2012
Added on Feb 26 2012
6 comments
851 views