Skip to content

method of refreshing 'live' tiles, e.g. traffic layer? #1206

Answered by ibrierley
summitcomputing asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm you could try changing the URL (add some irrelevant bogus arg to the end for example) with overrideTilesWhenUrlChanges: true...

eg urlTemplate: "https://{s}.google.com/vt/lyrs=m,traffic&x={x}&y={y}&z={z}&refresh=${count}";

then increment count whenever you want an update ?

Just thinking out loud, never tried it.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@summitcomputing
Comment options

@summitcomputing
Comment options

Answer selected by summitcomputing
Comment options

You must be logged in to vote
1 reply
@summitcomputing
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants