Page 1 of 1

Quick Question - VirtualEarth Tile Request Syntax

Posted: Tue May 24, 2016 3:06 pm
by Yemble
The VirtualEarth syntax goes something like:

Code: Select all

http://ax.t0.tiles.virtualearth.net/tiles/r{$q}.png?[b]g=3467[/b]&productSet=...
What is the significance of the highlighted number (g=xxxx)?
Can this number be anything, or does it have an effect upon which tiles are downloaded?

Re: Quick Question - VirtualEarth Tile Request Syntax

Posted: Tue May 24, 2016 3:34 pm
by Psyberia-Support
This is just a counter which is increased on a daily basis. It may have something to do with the cache management, called a "salt" (so all requests are different everyday), but it may also be something completely different. Bing doesn't seem to care about this value, you just have to not use a greater value than the current one, but old values work fine. It won't affect the result image anyway.
Instead of a fixed value, you can put "{$param:bing-g}" and AQ will take care of using an updated value:

Code: Select all

...r{$q}.png?g={$param:bing-g}&productSet=...

Re: Quick Question - VirtualEarth Tile Request Syntax

Posted: Tue May 24, 2016 5:39 pm
by Yemble
Super, many thanks for the info :-)