Using: Mappoint 2006
Project: Embedded MappointCtrl in client-app
Hello hardcore programmers ,
I want to let the user draw a rectangle as a kind of a zone. My app needs to convert the anglepoints of the rectangle into a gps-position. This is easely done by calling the XYtoLocation() method.
But the problem is, if I want to draw a rectangle by hand, than I need drawing toolbar. That is what I want to prevent. There is another way to get this around, but not good enough. I can use the GetSelectedArea() method and convert the retrieved coordinates into Latitude and Longitude. But when I want to draw a recangle using the AddShape() methode, than for a rectangle the Width and the Height (MUST) have to be in km/miles. While I just have it in pixels or latitudes/longitudes, so I need to convert the pixels in km's wich depends on the altitude also.
So my question is, how can I solve this?
Is there an easy way (maybe there is a useful mappoint function), or do I have to find out what kind of messages I need to send to mappoint for simulating a pushed 'draw rectangle'-button?