Quantcast
Viewing all articles
Browse latest Browse all 2341

New Post: Adding a simple dot or line on the map (using mapwingis)

It seems that you are not reprojecting coordinates. Your map project is spherical Mercator (in meters) while you are passing coordinates as degrees.

You should use AxMap.DegreesToProjection method (see Adding markers to the map here).

For vector layers (KML) automatic reprojection can be set up, see "Improved API for projection mismatch testing" here.

It's also possible to do reprojection of any data manually via GeoProjection class (StartTransform, Transform, StopTransform).

However the easiest option for you is to set WGS84 equirectangular projection (AxMap.Projection = tkMapProjection.PROJECTION_WGS84). Background tiles will be somewhat scaled then, but your data won't need transformation.

Regards,
Sergei

Viewing all articles
Browse latest Browse all 2341

Trending Articles