FYI: New Release (2010/01/20)

28 views
Skip to first unread message

Susannah (Google Employee)

unread,
Jan 20, 2010, 1:26:01 AM1/20/10
to Google Maps JavaScript API v3
We have just released a new version of the JS v3 API. If there are no
major issues, we will make a full announcement of this release, with
updated documentation, in 24-48 hours. Please report in the group if
you see any regression issues.

Marijn

unread,
Jan 20, 2010, 5:16:10 AM1/20/10
to Google Maps JavaScript API v3
Although I have not defined what the exact problem is yet, I want to
let you know that we do see a regression since this morning.

The tiles are not loaded, only a grey area is shown. This only happens
for a small sized map, the larger version behaves normal.

Some characteristics of our implementation that could help debug this
problem:
- The Javascript is dynamically loaded using a callback, this seems
to work
- No Javascript errors occur when loading
- When using my mousewheel on the grey area, I get a Javascript error
"Uncaught TypeError: Cannot read property 'x' of undefined".
- Tested in Chrome and Firefox
- The resources tab in Chrome show multiple maps Javascript files
being loaded (all Http 200).
- I don't see any Http calls of tiles being loaded (mt0.google.com?)

This is how the generated html looks like (useful?):
<div id="xxxxxx" style="width: 220px; height: 250px; position:
relative; background-color: rgb(229, 227, 223); overflow-x: hidden;
overflow-y: hidden; z-index: 0;">
<div style="position: absolute; left: 0px; top: 0px; overflow-x:
hidden; overflow-y: hidden; z-index: 0; width: 100%; height: 100%; ">
<div style="position: absolute; left: 0px; top: 0px; z-index: 1; -
webkit-transform: translate(0px, 0px) scale(1); cursor: url(http://
maps.gstatic.com/intl/en_us/mapfiles/openhand_8_8.cur), default; ">
<div style="z-index: 100; position: absolute; left: 0px; top: 0px;
"></div>
<div style="z-index: 101; position: absolute; left: 0px; top: 0px;
"></div>
<div style="z-index: 102; position: absolute; left: 0px; top: 0px;
"></div>
<div style="z-index: 103; position: absolute; left: 0px; top: 0px;
"></div>
<div style="z-index: 104; position: absolute; left: 0px; top: 0px;
"></div>
<div style="z-index: 105; position: absolute; left: 0px; top: 0px;
"></div>
<div style="z-index: 106; position: absolute; left: 0px; top: 0px;
"></div>
<div style="position: absolute; z-index: 0; ">
<div style="overflow-x: hidden; overflow-y: hidden; width: 0px;
height: 0px; ">
<img style="width: 0px; height: 0px; " src="http://
maps.google.com/maps/api/js/StaticMapService.GetMapImage?
map_corner=b&amp;x=2154221&amp;y=1378600&amp;map_corner=e&amp;image_format=1&amp;zoom=14&amp;image_size=b&amp;width=0&amp;height=0&amp;image_size=e&amp;tileset_specification=b&amp;map_type=0&amp;use_public_api_tiles=true&amp;language_code=en-
US&amp;version=ap.116&amp;tileset_specification=e&amp;token=82969"></
div></div><div style="position: absolute; left: 0px; top: 0px; z-
index: 1; ">
</div>
</div>
</div>
</div>
</div>

As I said, the reason why it fails to show any tiles remains unknown
(it might be some very specific case), but I just wanted to give some
input as maybe other people are seeing this problem as well.

I will now start debugging and try to create an isolated example.
If you need more input or specific information, please ask.

Marijn

On Jan 20, 7:26 am, "Susannah (Google Employee)"

Ben Appleton

unread,
Jan 20, 2010, 5:24:23 AM1/20/10
to google-map...@googlegroups.com
Hi Marijn,

Would you be able to provide a link to your site?  That might help debug the issue.

Thanks
Ben

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.




mattia berlusconi

unread,
Jan 20, 2010, 5:51:30 AM1/20/10
to google-map...@googlegroups.com
Since this morning I have a problem. All the map in my website are not loaded. All tiles are grey!.

mattia berlusconi

unread,
Jan 20, 2010, 5:56:31 AM1/20/10
to google-map...@googlegroups.com
This happens also in big sized maps!

mattia berlusconi

unread,
Jan 20, 2010, 6:00:52 AM1/20/10
to google-map...@googlegroups.com
And no Javascript errors occur when loading

Marijn

unread,
Jan 20, 2010, 6:26:42 AM1/20/10
to Google Maps JavaScript API v3
I've sent some login information for testing, Ben.

The problem seems to be related to CSS styling. We're showing the map
in a div that is layed over other content. When I remove the class
that causes this effect (so that it's shown inline), the tiles are
loaded correctly. I'll try to figure out what exact property causes
this (likely some positioning or z-index).

So it might be some error on our side, although it must be related to
some change in the new Google Maps version because we did not release
any new code and suddenly it started giving problems in both
live,staging and dev this morning.

Ben Appleton

unread,
Jan 20, 2010, 6:36:29 AM1/20/10
to google-map...@googlegroups.com
On Wed, Jan 20, 2010 at 10:26 PM, Marijn <marijns...@gmail.com> wrote:
I've sent some login information for testing, Ben.

Thanks, that worked for me.  It appears that your map's container has width: 100%, height: 100%.  However when the API loaded and checked the container's size, clientWidth and clientHeight both returned 0.  We're looking into changed in this release that might have caused this.

Meanwhile if you need a quick fix, you could set the size of your map's container to a fixed width and height in pixels.
 

Marijn

unread,
Jan 20, 2010, 7:45:54 AM1/20/10
to Google Maps JavaScript API v3
The container with width:100%, height: 100% is the one inserted by the
Maps API. Our own container has style="width: 220px; height: 250px;"

I believe the problem is this:
The HTML is first inserted into the page using Javascript, then the
map is loaded, and THEN the popup is shown.
When I first insert the HTML, show the popup and finally load the map,
it's shown correctly.

When the element is hidden when the map is inserted into it, the size
is not calculated correctly. I think this used to work? It should be
possible to detect the size of an element while it's hidden.

PoC:
<html>
<head>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?
sensor=false"></script>
<script type="text/javascript">
function initialize() {
var myLatlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById
("map_canvas"), myOptions);
document.getElementById("container").style.display = "block";
}
</script>
</head>
<body style="margin:0px; padding:0px;" onload="initialize()">
<div id="container" style="display: none">
<div id="map_canvas" style="width:230px; height:230px"></div>
</div>
</body>
</html>

On Jan 20, 12:36 pm, Ben Appleton <apple...@google.com> wrote:


> On Wed, Jan 20, 2010 at 10:26 PM, Marijn <marijnspeel...@gmail.com> wrote:
> > I've sent some login information for testing, Ben.
>
> Thanks, that worked for me.  It appears that your map's container has width:
> 100%, height: 100%.  However when the API loaded and checked the container's
> size, clientWidth and clientHeight both returned 0.  We're looking into
> changed in this release that might have caused this.
>
> Meanwhile if you need a quick fix, you could set the size of your map's
> container to a fixed width and height in pixels.
>
>
>
> > The problem seems to be related to CSS styling. We're showing the map
> > in a div that is layed over other content. When I remove the class
> > that causes this effect (so that it's shown inline), the tiles are
> > loaded correctly. I'll try to figure out what exact property causes
> > this (likely some positioning or z-index).
>
> > So it might be some error on our side, although it must be related to
> > some change in the new Google Maps version because we did not release
> > any new code and suddenly it started giving problems in both
> > live,staging and dev this morning.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > google-map...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2B unsub...@googlegroups.com>

Esa

unread,
Jan 20, 2010, 8:38:34 AM1/20/10
to Google Maps JavaScript API v3

On Jan 20, 1:36 pm, Ben Appleton <apple...@google.com> wrote:

> Meanwhile if you need a quick fix, you could set the size of your map's
> container to a fixed width and height in pixels.


It seems that 'size' property of map options is working again with
this version

{size: new google.maps.Size(400,500)}

That is very useful if you are loading Map to a DIV that is in
{display: none} status.

Esa

unread,
Jan 20, 2010, 8:49:53 AM1/20/10
to Google Maps JavaScript API v3

On Jan 20, 2:45 pm, Marijn <marijnspeel...@gmail.com> wrote:

> When the element is hidden when the map is inserted into it, the size
> is not calculated correctly. I think this used to work? It should be
> possible to detect the size of an element while it's hidden.

{display: none} makes the element size zero.

{visibility: hidden} keeps the original size.

Try the 'size' option of Map.

Susannah (Google Employee)

unread,
Jan 20, 2010, 8:56:04 AM1/20/10
to Google Maps JavaScript API v3
Marijn and Mattia,

I believe I have a fix to restore the behavior that existed prior to
the recent release - as long as I've reproduced the same problem and
not some other subtle display/size problem. The fix should be live in
the next few hours.

As Esa mentioned, there is now a 'size' option you can specify in
MapOptions that should fix the problem you're seeing if you don't want
to wait for the fix to go live.

-Susannah

bratliff

unread,
Jan 20, 2010, 9:14:09 AM1/20/10
to Google Maps JavaScript API v3
Terrain map labelling has changed. State names have disappeared.
Useless stuff like "Traverse Gap", "Waupee Flowage", "Kentucky Bend",
"False Detour Channel" still exists.

Some tiles never arrive even waiting five minutes. Examining the DOM,
the tiles contain "transparent.png" place holder images rather than
real tile images. The "onload" event never happens. It requires a
"watchdog" "mine sweeper" on a long fuse. Every zoom change ought to
do an integrity check. Lazy tiles ought to be refetched.

Zoom changes are a bit chaotic with "out of view" images flashing on
the screen.

paul

unread,
Jan 20, 2010, 9:54:07 AM1/20/10
to Google Maps JavaScript API v3
I'm using Google Maps inside an iFrame and the new release has killed
the map in Firefox. Everything is working smoothly in Chrome, Safari,
and IE 6-7-8. Looking at the NET tab in Firebug it appears that all of
the js is loading (util.js, etc.) but none of the map images are
pulled being pulled down. There are no errors being thrown at any
point. Strangely enough everything seems to work outside of an iframe.

iframe: http://02b60c6.netsolhost.com/gmapsbox/
No iframe: http://02b60c6.netsolhost.com/gmaps/storelocator/

Susannah (Google Employee)

unread,
Jan 20, 2010, 10:13:55 AM1/20/10
to Google Maps JavaScript API v3
Hi Bratliff,

Please file an issue in the issue tracker about the tile loading
problems you're seeing. I know you've run into this before and we
haven't had any other reports. I don't believe it's related to this
release, but we can confirm that in the morning.

As for the terrain labeling, we'll report that to the tile team.

Can you provide a link to a page where you see "out of view" images
flashing on the screen? Are these tiles? Markers? OverlayViews?

Thanks,
Susannah

Susannah (Google Employee)

unread,
Jan 20, 2010, 10:15:55 AM1/20/10
to Google Maps JavaScript API v3
Paul,

Your iframe example has a reference to localhost, so I wasn't able to
confirm that the coming fix will solve this issue, but I'm hoping that
what you're seeing will be fixed in the update that should be live any
minute. I'll post again when that's live.

-Susannah

paul

unread,
Jan 20, 2010, 10:20:12 AM1/20/10
to Google Maps JavaScript API v3
Sorry, links fixed in above post :)

paul

unread,
Jan 20, 2010, 10:29:08 AM1/20/10
to Google Maps JavaScript API v3
I'm not sure if the fix is live yet or this worked but I followed
Esa's advice of explicitly stating the size in mapOptions and the map
is now loading. Oddly enough I was defining the dimensions in the CSS
already and the div was not hidden.

Bogdan Stănescu

unread,
Jan 20, 2010, 6:36:40 AM1/20/10
to Google Maps JavaScript API v3
I've spotted the same problem on one of our websites
http://www.explorra.com/attractions/antelope-canyon_9509

(we're releasing the fix described below, so you may not be able to
spot the error in time)

While starting to post this message, one of my colleagues found the
issue:
The div that holds the map was hidden at first, then initialized and
then displayed.
We changed the order to: init, then hide the div and it works.

Hope this helps

Susannah (Google Employee)

unread,
Jan 20, 2010, 2:05:44 PM1/20/10
to Google Maps JavaScript API v3
The fix is now live. If your map was not loading previously, please
let us know if it is fixed now (without the 'size' workaround). If
you are still seeing this error, please post a link to your site.

Sorry for the breakage,
Susannah

Pan Zheng Xiang Jedi

unread,
Jan 20, 2010, 3:31:42 PM1/20/10
to google-map...@googlegroups.com, Pan Zheng Xiang Jedi
Hii google maps angels,
 
my map size went "out of size", may i enquire if its due to the new release?
pls advise what should i do?
 
thanks

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.






--
sincerely,
zheng xiang

Susannah (Google Employee)

unread,
Jan 20, 2010, 3:56:04 PM1/20/10
to Google Maps JavaScript API v3
Please provide a link to your site. Are you seeing any errors?

On Jan 21, 7:31 am, Pan Zheng Xiang Jedi <jedi...@gmail.com> wrote:
> Hii google maps angels,
>
> my map size went "out of size", may i enquire if its due to the new release?
> pls advise what should i do?
>
> thanks
>
> On Thu, Jan 21, 2010 at 3:05 AM, Susannah (Google Employee) <
>
>
>
> susann...@google.com> wrote:
> > The fix is now live.  If your map was not loading previously, please
> > let us know if it is fixed now (without the 'size' workaround).  If
> > you are still seeing this error, please post a link to your site.
>
> > Sorry for the breakage,
> > Susannah
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Maps JavaScript API v3" group.
> > To post to this group, send email to
> > google-map...@googlegroups.com.
> > To unsubscribe from this group, send email to

> > google-maps-js-a...@googlegroups.com<google-maps-js-api-v3%2Bunsu...@googlegroups.com>

Pan Zheng Xiang Jedi

unread,
Jan 20, 2010, 3:58:14 PM1/20/10
to google-map...@googlegroups.com
http://tanglincairnhill.shioking.info/
i'm not seeing any errors, functionality wise is working,  except that the map went out of size?
please advise

sincerely with gratitude


To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.






--
sincerely,
zheng xiang

Susannah (Google Employee)

unread,
Jan 20, 2010, 4:17:41 PM1/20/10
to Google Maps JavaScript API v3
Hi Pan,

We are looking at this. For the time being, if you give the map a
fixed width (instead of 100% or blank), it should render correctly
again. Sorry for the inconvenience.

-Susannah

Barbara Davenport

unread,
Jan 20, 2010, 4:29:46 PM1/20/10
to google-map...@googlegroups.com
SUZANNE, IF THE MAP OUTLINE IS THERE, SHOULDN'T THE MAP BE THERE.  ON MY HOME PAGE CLOSE TO THE BOTTOM MIDDLE IS THE RECTANGLE WHERE THE MAP GOES?       THOROUGHBREDHORSE1441.COM
C John Davenport

Barbara Davenport

unread,
Jan 20, 2010, 6:06:16 PM1/20/10
to google-map...@googlegroups.com
susanne, i got the wrong message, it was to someone else.  my map doesn't show up.  The rectangle does, but no map.  It keeps disappearing.  john davenport    thoroughbredhorse1441.com  C John Davenport

--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.

Gary Little

unread,
Jan 20, 2010, 6:09:18 PM1/20/10
to Google Maps JavaScript API v3
Something subtle has changed which breaks my map. I wait for an idle
event after a map pan -- I then load some data and add new markers to
the map. What happens now is that the new markers do not appear
immediately. It's only when the map is panned a second time that the
markers appear. Very odd.

Go to my real estate map at imap.garylittle.ca and try it out. When
you pan the map, any new properties within the red box on the map are
not shown. Then start to pan the map again and you'll notice that the
markers for these properties suddenly appear.

Gary

On Jan 20, 1:29 pm, Barbara Davenport <cdavenport2...@hughes.net>
wrote:


> SUZANNE, IF THE MAP OUTLINE IS THERE, SHOULDN'T THE MAP BE THERE.  ON MY HOME PAGE CLOSE TO THE BOTTOM MIDDLE IS THE RECTANGLE WHERE THE MAP GOES?       THOROUGHBREDHORSE1441.COM
> C John Davenport
>

> On Jan 20, 2010,Susannah (Google Employee)<susa...@google.com> wrote:
>
> Hi Pan,
> We are looking at this. For the time being, if you give the map a
> fixed width (instead of 100% or blank), it should render correctly
> again. Sorry for the inconvenience.
> -Susannah

> --
> You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.

> To post to this group, send email togoogle-ma...@googlegroups.com.
> To unsubscribe from this group, send email togoogle-maps-js-...@googlegroups.com.

Gary Little

unread,
Jan 20, 2010, 8:05:47 PM1/20/10
to Google Maps JavaScript API v3
Did someone push some new code? My map now works again as expected and
I didn't change a thing!

Gary

On Jan 20, 3:09 pm, Gary Little <g...@luxcentral.com> wrote:
> Something subtle has changed which breaks my map. I wait for an idle
> event after a map pan -- I then load some data and add new markers to
> the map. What happens now is that the new markers do not appear
> immediately. It's only when the map is panned a second time that the
> markers appear. Very odd.
>
> Go to my real estate map at imap.garylittle.ca and try it out. When
> you pan the map, any new properties within the red box on the map are
> not shown. Then start to pan the map again and you'll notice that the
> markers for these properties suddenly appear.
>
> Gary
>
> On Jan 20, 1:29 pm, Barbara Davenport <cdavenport2...@hughes.net>
> wrote:
>
>
>
> > SUZANNE, IF THE MAP OUTLINE IS THERE, SHOULDN'T THE MAP BE THERE.  ON MY HOME PAGE CLOSE TO THE BOTTOM MIDDLE IS THE RECTANGLE WHERE THE MAP GOES?       THOROUGHBREDHORSE1441.COM
> > C John Davenport
>

Esa

unread,
Jan 20, 2010, 8:19:39 PM1/20/10
to Google Maps JavaScript API v3

On Jan 21, 3:05 am, Gary Little <g...@luxcentral.com> wrote:
> Did someone push some new code? My map now works again as expected and
> I didn't change a thing!

It seems that the version change was drawn back.

Susannah (Google Employee)

unread,
Jan 20, 2010, 8:48:22 PM1/20/10
to Google Maps JavaScript API v3
Yes, we've rolled back the latest release. Stay tuned for a re-
release.

If you had any problems with your map showing up in the last 12 hours
or so, please include a link so that I can ensure it won't break
again. In fact, you should be including a link any time you report a
problem (see the posting guidelines). It's hard for us to help you
otherwise.

Thanks,
Susannah

Gary Little

unread,
Jan 20, 2010, 9:37:14 PM1/20/10
to Google Maps JavaScript API v3
Susannah,

Add http://imap.garylittle.ca/ to your watch list -- markers were not
showing up at crazy times after the map was panned.

Gary

On Jan 20, 5:48 pm, "Susannah (Google Employee)"

Marijn

unread,
Jan 21, 2010, 2:59:57 AM1/21/10
to Google Maps JavaScript API v3
I can confirm that the fix you deployed indeed fixed our problem
(hidden element -> no tiles).

Thanks for the help and quick debugging! :)

Marijn

On Jan 20, 8:05 pm, "Susannah (Google Employee)"

Chad Killingsworth

unread,
Jan 22, 2010, 6:08:16 PM1/22/10
to Google Maps JavaScript API v3
In the Android 2.0 emmulator, ImageMapTypes are not displaying. I'm
not getting any errors either.

They display fine in the iPhone as well as in every desktop browser
I've tried.

http://search.missouristate.edu/map/mobile/examples/tileoverlay.htm

Chad Killingsworth

On Jan 20, 3:17 pm, "Susannah (Google Employee)"

bratliff

unread,
Jan 29, 2010, 12:40:10 PM1/29/10
to Google Maps JavaScript API v3
On Jan 20, 3:13 pm, "Susannah (Google Employee)"
<susann...@google.com> wrote:

> As for the terrain labeling, we'll report that to the tile team.

Hi Susannah,

The state names have been reinstated but the other garbage like

bratliff

unread,
Jan 29, 2010, 12:40:19 PM1/29/10
to Google Maps JavaScript API v3
On Jan 20, 3:13 pm, "Susannah (Google Employee)"
<susann...@google.com> wrote:

> Can you provide a link to a page where you see "out of view" images
> flashing on the screen? Are these tiles? Markers? OverlayViews?

I am seeing random tiles flash on the screen. Try:

http://www.polyarc.us/polycluster

Click "Experimental". Some of the other demos do it also.

Reply all
Reply to author
Forward
0 new messages