ciao,
vorrei che quando schiaccio il pulsante la mia mappa si centrasse sulle coordinate del sensore di posizione. la mappa ha le coordinate della ia città. che locchi devo usare perchè quelli che ho pensato non funzionano!
grazie
ciao,
vorrei che quando schiaccio il pulsante la mia mappa si centrasse sulle coordinate del sensore di posizione. la mappa ha le coordinate della ia città. che locchi devo usare perchè quelli che ho pensato non funzionano!
grazie
You can use either the PanTo or CenterFromString methods to center your map on specific coordinates. Do not use both.
If you use the CenterFromString Block, a comma ( , ) must separate the latitude and longitude (latitude,longitude) coordinates.
Does this help?
Hello,
the function PanTo is very powerful and works great.
I've associated it to a button, the only issue is that I need to press the button two times to complete the centering to current position.
It seems that the panning stops when the zoom is completed and not when the position is reached.
did anyone faced the issue?
Yes this is a bug.
PanTo has timing issues sometimes. Avoid the problem by replacing the PanTo Block in your code with the Map1.CenterFromString and ZoomLevel Blocks as shown in post #2.
Does replacing PanTo avoid needing to press the button two times to complete the centering to current position? It works wonders in my apps.
Thanks Steve, "Map1.CenterFromString" + "ZoomLevel" extend the time (or move the map quicker). That's bring me much closer to the target but still not centered .
The only way is to reduce the zoom delta between position before and after pan&zoom .
... now I need to work on real time tracking ... but this is another topic