discostu
05-25-2005, 11:12 AM
Hi, I was wondering if there is a way, programmatically, to make the balloon show up when a user puts the mouse over a pushpin. Currently, the user must right click and click "Show Information." Myapp is an MFC app (c++).
Thanks,
Stu
Wilfried
05-25-2005, 02:14 PM
Hi,
Sure is possible. In OnMouseOver you have x.y coordinates, so you can calculate over there the lat,long coordinates. If you hva a list of pushpins you can check if the match within a tolerance a pushpin coordinate. If match then display balloon.
Note that this approach can be time consuming, specially if you have a lots of pushpins.
Note also you have to make a little algoritm with the altitude, because "when" to display balloon of "witch" pushpin is pmortand if they are close together.