uunmask2000 / jmaps

Automatically exported from code.google.com/p/jmaps
MIT License
0 stars 0 forks source link

GBrowserIsCompatible is not defined #12

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
i am using the latest version as of today and i keep getting this error on FF

ERROR: 

GBrowserIsCompatible is not defined

--------
here is my HTML

----------
 <script type="text/javascript">

        $(document).ready(function() {

            $('#map').jmap('init', { 'mapType': 'hybrid', 'mapCenter':
[37.4419, -122.1419] });

        });

    </script>

    <div id='map'>
    </div>

Original issue reported on code.google.com by buaziz on 11 Dec 2008 at 11:09

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
+1

Original comment by william.meleyal on 11 Dec 2008 at 6:25

GoogleCodeExporter commented 8 years ago
I have the same problem

Original comment by jhw...@gmail.com on 18 Dec 2008 at 9:26

GoogleCodeExporter commented 8 years ago
Me 2

Original comment by bcaste...@gmail.com on 19 Dec 2008 at 12:53

GoogleCodeExporter commented 8 years ago
SOLVED :

add ref to google map with your Own API Key
<script src="http://maps.google.com/maps?file=api&v=2&key=ENTER_API_KEY_HERE"
        type="text/javascript"></script>

Original comment by buaziz on 28 Dec 2008 at 10:52

GoogleCodeExporter commented 8 years ago
gooooooooood buaziz 3Q

Original comment by hjy19881...@hotmail.com on 14 Dec 2009 at 2:16

GoogleCodeExporter commented 8 years ago
another cause of this problem is due to the use of ajax.  I had a page where the
script was being loaded both on page load and every ajax refresh and it caused 
this
"GBrowserIsCompatible is not defined" error.

The solution in this case is to load the script on page load only and not for 
each
ajax call.

Original comment by jlip...@viewtech.com.au on 6 Feb 2010 at 8:55

GoogleCodeExporter commented 8 years ago
I'm using my own API key (from localhost) and I'm loading the script on page 
load
only. My code was running smoothly until today! What's going on???

Original comment by raihan.i...@gmail.com on 26 Feb 2010 at 11:37

GoogleCodeExporter commented 8 years ago
localhost doesn't need an api key ;)

Original comment by sap.w...@gmail.com on 7 May 2010 at 7:16

GoogleCodeExporter commented 8 years ago
It happend in my site too
who can help me !!

Original comment by guobo.xi...@shoesrun.com on 7 Dec 2011 at 7:56

GoogleCodeExporter commented 8 years ago
I have the same problem, i'm using chrome and when i load my page, it appears a 
message that says:"The page require a different key Google Api create the new 
key from http://...." i recreate key that is always the same and then i write 
it in code but nothing happens..

Original comment by roberto8...@gmail.com on 7 Dec 2011 at 11:14

GoogleCodeExporter commented 8 years ago
I have the same problem in my code I m using firefox v9.0.1 Here is my code:
function initialize() {
      if (GBrowserIsCompatible()) {
        var map = new GMap2(document.getElementById("map_canvas"));
        map.setCenter(new GLatLng(37.4419, -122.1419), 13);

        // Add 10 markers to the map at random locations
        var bounds = map.getBounds();
        var southWest = bounds.getSouthWest();
        var northEast = bounds.getNorthEast();
        var lngSpan = northEast.lng() - southWest.lng();
        var latSpan = northEast.lat() - southWest.lat();
        for (var i = 0; i < 10; i++) {
          var point = new GLatLng(southWest.lat() + latSpan * Math.random(),
                                  southWest.lng() + lngSpan * Math.random());
          map.addOverlay(new GMarker(point));
        }
      }
    }

Original comment by chaitany...@collabor.com on 9 Feb 2012 at 9:07

GoogleCodeExporter commented 8 years ago
I'm having this problem while converting my site to SSL. Do I need to 
re-register the API key for that https address? Also port 443 right now is only 
open to the LAN until I finish could this be effecting the API verification as 
well?

Original comment by schwalen...@gmail.com on 24 Dec 2013 at 2:33