My favorites | Sign in
Project Home Issues
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 4348: Ability to refresh the traffic layer
27 people starred this issue and may be notified of changes. Back to list
Status:  NeatIdea
Owner:  [email protected]


Sign in to add a comment
 
Reported by [email protected], Aug 10, 2012
Hi,

Please can the API be extended to allow the traffic layer to be refreshed without reloading the entire map.

I attempted to implement this by dropping the traffic layer and requesting a new one however I found that does not reliably refresh the traffic layer display, even when a few seconds of delay are introduced between dropping the existing layer and requesting a new one. Visually the old layer can be seen to clear, however when a new one is drawn it frequently displays the old layer data rather than newly updated visuals.

It would be fantastic if some form of trafficLayer.refresh() method existed. In addition the ability to get some form of timestamp that relates to when those traffic conditions were observed would also round out the functionality (see Issue 4336: https://code.google.com/p/gmaps-api-issues/issues/detail?id=4336&thanks=4336&ts=1344338234)

Cheers,
Mark

Aug 10, 2012
Project Member #1 [email protected]
(No comment was entered for this change.)
Status: Acknowledged
Labels: Internal-6951575
Oct 18, 2012
#2 [email protected]
This would be very helpful.
Mar 20, 2013
#3 [email protected]
the problem is that mobile browsers cache more aggressively than desktops.

so when you setMap(null) and back again it causes those tiles to be redrawn, but the mobile device just gets the tiles from cache.

a refresh() function that just appends a timestamp to the tile urls would work.
Apr 14, 2014
#4 [email protected]
This would be a great enhancment. Even if it still issued a map reload for the api key, it would make programming and using the map make more sense.
May 25, 2014
#5 [email protected]
Google is too busy trying to push Google+ down our throats...
Dec 18, 2014
#6 [email protected]
Hi,

I have the same problem.
Trafficlayer is always the same after refreshing it.
Someone found a solution ?

Thanks for your help
Mar 31, 2015
Project Member #7 [email protected]
(No comment was entered for this change.)
Status: NeatIdea
Feb 26, 2016
#8 [email protected]
hi,

I am able to get updated traffic tiles by appending dummy timestamp parameter into "src" of all img elements. This "src" is something like this "https://maps.googleapis.com/maps/vt?pb.......&ts=31233132"

My question is how google api sends updated tile though I sent same request with just adding extra dummy parameter. Any help would be appriciated.

Thanks in advance,
Sachin
Mar 14, 2016
Project Member #9 [email protected]
 Issue 9363  has been merged into this issue.
Sign in to add a comment

Powered by Google Project Hosting