Top |
Post New Question |
Read All |
MP2K Asks Microsoft
671
ketan parekh
-
May 14, 2002
Hi EB
Can i use the Map point control features in my project. for e.g if you run
the Mappoint.exe, goto Tools. There are list of features which i want to
encorporate in my project. for e.g Location Sensor, Measure Distance etc.
does Mappoint has a method or property by which i can call these inbuilt
functions or do i have to write VB code for giving these features in my
project.
I am inserting the Map point control(OCX) on my form and now on click of the
buttons, i want those features which are already provided by Mappoint
control. so if i press "Measure Distance" button, it should give me the
distance between the 2 places in miles on my Map Control. This is my exact
requirement.
Please Help as it is on high priority for me.
Answer:
Some of those functions are not immediately available, but could easily be built. For example the Location Sensor could be created by using the
MouseMove event to get the x,y coordinates of the mouse, use the XYToLocation method to create a Location object and use Gilles Kohl's code here to get the lat/lon.
- Walt Cygan
Post New Answer / Follow-up