Permalink
Browse files

better load server distribution

  • Loading branch information...
1 parent ddc6c5f commit bd8997c0d89639dcbd6ee7a80f806d6c125acad4 @jozefchutka committed Aug 8, 2013
View
@@ -18,6 +18,7 @@
/ApplicationMapMobile/ApplicationMapMobile.apk
/ApplicationRemotair/bin-debug
/ApplicationRemotair/bin-release
+/Playground
/YCanvasLibrary/.FlexUnitSettings/FlexUnitApplicationLastRun.xml
/YCanvasLibrary/bin
/YCanvasMapLibrary/.FlexUnitSettings/FlexUnitApplicationLastRun.xml
@@ -143,7 +143,8 @@ package sk.yoz.ycanvas.map.partitions
private function get url():String
{
var templates:Vector.<String> = config.urlTemplates;
- var url:String = templates[Math.abs(x + y) % templates.length];
+ var id:int = x / 5 + y / 3 + layer.level;
+ var url:String = templates[(id < 0 ? -id : id) % templates.length];
url = url.replace("${x}", x / expectedWidth / layer.level);
url = url.replace("${y}", y / expectedHeight / layer.level);
url = url.replace("${z}", 18 - getLevel(layer.level));

0 comments on commit bd8997c

Please sign in to comment.