ZoomTo wrong problem
I have a question:
If the map is the current level 8, I use zoomTo () to the relatively small level, such as 1 or 2, there will be "no reference tile in mergeTiles ()" error, I would like to ask is why?
If the map is the current level 8, I use zoomTo () to the relatively small level, such as 1 or 2, there will be "no reference tile in mergeTiles ()" error, I would like to ask is why?
1
person has this question
I have this question, too!
Tell me when someone answers.
The more people who ask this question, the more it gets noticed.
The more people who ask this question, the more it gets noticed.
Create a customer community for your own organization
Plans starting at $19/month
-
Inappropriate?Hmm... that bug can be tricky to track down (we're rewriting TileGrid in as3 to work a different way because of this).
Are you calling zoomTo in the same function as setCenterZoom or setExtent?
Can you post the smallest possible amount of code that demonstrates the problem? It's really hard to debug things without a working example. -
Inappropriate?Hi,RandomEtc,Thank you for your response.
I paste the code by giving you see next
Code:
<?xml version="1.0" encoding="utf-8"?>
<mx:application height="400" width="550">
<mx:script>
<![CDATA[
private function appInit():void
{
myMap.map.zoomTo(0);
}
]>
</mx:script>
<modest:map width="100%">
</modest:map></mx:application>
I’m kidding
-
Inappropriate?I will simplify the code to:
//code:
var testMap:Map = new Map();
testMap.width = 300;
testMap.setMapProvider(new MicrosoftRoadMapProvider());
testMap.setExtent(new MapExtent(40.764941, 40.693655, -73.938675, -74.039612));
mapCom.addChild(testMap);
testMap.zoomTo(0);
//
//
MapCom is UIComponent.
Loading Profile...



EMPLOYEE