pan maps automatically ?
hi,
i m new to modest map. i had a problem panning the map. i want to pan my map if the given location is not seen on the stage but i just dont have any idea where to start from. its just like some one moving on the map and if he moves out of the map extent, the map should automatically pan and show his positions. please keep in mind the panning should be done only when the location is out of vision so that it is shown on the stage. please suggest me some codes as soon as possible. i am using modest map for flash AS3 version.
thanks in advance...
i m new to modest map. i had a problem panning the map. i want to pan my map if the given location is not seen on the stage but i just dont have any idea where to start from. its just like some one moving on the map and if he moves out of the map extent, the map should automatically pan and show his positions. please keep in mind the panning should be done only when the location is out of vision so that it is shown on the stage. please suggest me some codes as soon as possible. i am using modest map for flash AS3 version.
thanks in advance...
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?The function panTo on Map takes a Location and will animate to that point on the map. Optionally, panTo takes a Location and a Boolean 'true' so that it will always animate, otherwise it only animates if the location is on the screen already.
The function source is here:
http://modestmaps.mapstraction.com/tr...
You can see that it uses the Map's panBy method to trigger the animation. You can also call panBy yourself if you need more control, and you can change the panFrames property of Map to pan in more or fewer frames.
If you don't want to animate, you can call the Map's setCenter, setCenterZoom or setExtent functions to set a new location for the map.
I hope this also answers your "getting_fried_up_in_the_pan" question – please be patient and don't post the same question twice, we try to answer as quickly as we can.
The company says
this answers the question
-
Inappropriate?thanks for the help and sorry for the repeated questions. you really make me feel cosy with MM thanks again
I’m happy
Loading Profile...



EMPLOYEE