Select to view content in your preferred language

Unexpected behavior from TiledMapService - not cycling through tile servers as expected

866
0
08-22-2016 05:18 PM
AlexThomas1
Emerging Contributor

map tile service‌

The tileServers specified in the ArcGISTiledMapServiceLayer are not cycled through enough.  This is the function I was debugging while looking at the init.js.

getTileUrl: function(a, b, c) {
var d = this.tileServers
, f = this._getToken()
, r = this._url.query; 
a = (d ? d[b % d.length] ...... }

This is great if your map is really "tall" with lots of rows, but if you have a wide map that stretches across multiple screens, then your potentially long list of available tile servers is sitting there unused.

I have about 9 tileservers available, but they aren't all being used equally.

Can this method be updated to randomize the tileServer selection process better?

Tags (1)
0 Kudos
0 Replies