Google Maps Firefox Zoom Level Issue

293 views
Skip to first unread message

WayneG

unread,
Feb 15, 2011, 8:55:27 AM2/15/11
to google-map...@googlegroups.com
I have a recurring problem with FF that doesn’t seem to have a solution. I have an embedded Map frame in my web page and when the map returns the zoom level is not set correctly, so I get the “world” view of the map. I have tried turning off all of the add-ons in the browser, but no luck. Also, I notice that this usually happens when I first start the browser; if I reload the frame or refresh the page, the map returns from Google with the correct zoom level. Has anyone seen this problem before? Is so, did you find a solution?

Rossko

unread,
Feb 15, 2011, 9:20:52 AM2/15/11
to Google Maps JavaScript API v3
If no-one has seen this before, start here, "READ THIS FIRST"
http://groups.google.com/group/google-maps-js-api-v3/t/2b3f101fd509919e

WayneG

unread,
Feb 15, 2011, 10:52:17 AM2/15/11
to google-map...@googlegroups.com

Rossko

unread,
Feb 15, 2011, 2:45:28 PM2/15/11
to Google Maps JavaScript API v3
> This link will display the page:
>  http://www.sciencedirect.com/science?_ob=ArticleURL&_udi=B6V7D-508FF0...

But how do we get to see the map with the problem?

Chris Broadfoot

unread,
Feb 15, 2011, 3:56:26 PM2/15/11
to google-map...@googlegroups.com, Rossko
On Wed, Feb 16, 2011 at 6:45 AM, Rossko <ros...@culzean.clara.co.uk> wrote:
But how do we get to see the map with the problem?

The map is on that linked page. It's in an iframe, though. Here's a better link:

I can't reproduce it (though I saw it occur *once*), but this is likely the flaky code:

    google.maps.event.addListenerOnce(
        ctaLayerx, 'defaultviewport_changed',
        function() {
            google.maps.event.addListenerOnce(
                mapx, 'bounds_changed', 
                function() {
                	var ID = formatElementID(MAP_CANVAS_ID);
                	$(ID).css("visibility","visible");
            });
    });

Chris

Esa

unread,
Feb 15, 2011, 5:26:08 PM2/15/11
to Google Maps JavaScript API v3

Esa

unread,
Feb 15, 2011, 5:59:50 PM2/15/11
to Google Maps JavaScript API v3
You are loading both v2 and v3 API scripts. Your syntax is v3.

I didn't see any errors thrown but that v2 javascript may cause some
unpredictable symptoms. It generates stuff in google.maps namespace as
v3 does.
Reply all
Reply to author
Forward
0 new messages