Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6793665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:07:39+00:00 2026-05-26T18:07:39+00:00

I have a map that is not displaying. The page loads all the controls

  • 0

I have a map that is not displaying.

The page loads all the controls but the map canvas fails to load. I’m not sure where to look as this map was working fine for years but I have updated the html and it has since stopped working (see attached)

I have tried stripping it down to bare bones to see if I can get it working (i.e. just the map, a point and a marker) but nothing… I am using v2 – GMap2

    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAHXuavtLbrkcGH6cQdo3gBBS4qDQlwPUwKySmZaFjOqYCz5LrLRQqZperPeQ8BVZogxQeWtkVuxYdcQ" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
    //<![CDATA[

    var map = null;

    function mapOnLoad() {
        if (GBrowserIsCompatible()) {

            var mapObj = document.getElementById("map");

            if (mapObj != "undefined" && mapObj != null) {
                map = new GMap2(document.getElementById("map"));
                map.setCenter(new GLatLng(-38.165295, 145.188317), 15, G_NORMAL_MAP);
                map.addControl(new GLargeMapControl3D());
                map.addControl(new GMenuMapTypeControl());
                map.addControl(new GScaleControl());
                var point = new GLatLng(-38.1652950000,145.1883170000);
                map.addOverlay(new GMarker(point));

            } else {
                alert("The map could not be displayed on your browser.");
            }
        }
    }
    //]]>
    </script>

<div id="map" class="map" style=""></div>

Please help!

Map Not Displaying

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T18:07:39+00:00Added an answer on May 26, 2026 at 6:07 pm

    Work for me, try this :

    <html>
    <head>
    <title>Google Maps JavaScript API Example</title>
    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAHXuavtLbrkcGH6cQdo3gBBS4qDQlwPUwKySmZaFjOqYCz5LrLRQqZperPeQ8BVZogxQeWtkVuxYdcQ" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript" charset="utf-8">
        //<![CDATA[
    
        var map = null;
    
        function mapOnLoad() {
            if (GBrowserIsCompatible()) {
    
                var mapObj = document.getElementById("map");
    
                if (mapObj != "undefined" && mapObj != null) {
                    map = new GMap2(document.getElementById("map"));
                    map.setCenter(new GLatLng(-38.165295, 145.188317), 15, G_NORMAL_MAP);
                    map.addControl(new GLargeMapControl3D());
                    map.addControl(new GMenuMapTypeControl());
                    map.addControl(new GScaleControl());
                    var point = new GLatLng(-38.1652950000,145.1883170000);
                    map.addOverlay(new GMarker(point));
    
                } else {
                    alert("The map could not be displayed on your browser.");
                }
            }
        }
        //]]>
    </script>
    </head>
    <body onload="mapOnLoad()" onunload="GUnload()">
        <div id="map" class="map" style="width: 500px; height: 300px"></div>
    </body>
    

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to have a map that has a homogeneous key type but heterogeneous
I have a class that map objects to objects, but unlike dictionary it maps
Is there some implementation of java.util.Map that does not uses HashCode? I have the
Currently I have a page displaying 3 Google Maps that are generated by JavaScript,
I have a map that represents a DB object. I want to get 'well
I have a Map that uses a Set for the key type, like this:
I have a Google Map that suddenly stopped working for no apparent reason (I
I have a std::map that I'm using to store values for x and y
In a controller, I have populated a map that has a string as key
I have a pointer to a map that I am trying to delete (this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.