shouldn,t my screen Pixel poition(x,y) change after i pan the map?
shouldn,t my screen Pixel poition(x,y) change after i pan the map. i pan my map when the screen position of the map exceeds some range. but even after panning the map move revealing the new location but still the screen (x,y) position upon racing remains unchanged.
please help soon
please help soon
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?Do you mean the screen position of your Map sprite? The values of map.x and map.y should definitely not change when you pan the map.
To get a pannable map you should simply initialize the map with the third argument (draggable) set to true:
var map:Map = new Map(640, 480, true, new BlueMarbleMapProvider());
addChild(map);
Does that help? Otherwise we will probably need to take a look at your code to help more. -
Inappropriate?map = new Map(stage.stageWidth - 2 * PADDING, stage.stageHeight - 2 * PADDING,true,new GoogleRoadMapProvider());
this is what i m using.
the code where i think has problem is the function redrawPolygon which i have posted in the discussion "problem with locationPoint()" please help me out.
all i want to do is once the location moves out of the screen, i want to bring it back to the center of the screen and stop panning.
I’m frustrated
1 person says
this answers the question
Loading Profile...



EMPLOYEE