| Issue 4348: | Ability to refresh the traffic layer | |
| 27 people starred this issue and may be notified of changes. | Back to list |
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
Oct 18, 2012
This would be very helpful.
Mar 20, 2013
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
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
Google is too busy trying to push Google+ down our throats...
Dec 18, 2014
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
(No comment was entered for this change.)
Status:
NeatIdea
Feb 26, 2016
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
Issue 9363 has been merged into this issue. |
|
| ► Sign in to add a comment |
Labels: Internal-6951575