Quantcast
Viewing all articles
Browse latest Browse all 2341

Commented Unassigned: DrawPoint not working [25996]

Hello,

I'm just doing some testing for an application, I'm using the AxMap.DrawPoint method but when I go through the process, no point is being drawn on the map:

private void button1_Click(object sender, EventArgs e)
{
axMap1.Projection = tkMapProjection.PROJECTION_GOOGLE_MERCATOR;
axMap1.TileProvider = tkTileProvider.OpenStreetMap;

int draw = axMap1.NewDrawing(MapWinGIS.tkDrawReferenceList.dlScreenReferencedList);

double x = -167180.44;
double y = 6888731.71;
int pixel = 10;
uint color = 255;

axMap1.DrawPointEx(draw, x, y, pixel, color);

//axMap1.Redraw();
}

If I use the Lat, Long values, it draws a point but it's well of where it should be.

Any help will be greatly appreciated.

Thanks

Brendan
Comments: Hello, Thanks for your reply! I'd already worked it out, just didn't notice the dlSpatiallyReferencedList! Ok, thanks I'll bear that in mind. Brendan

Viewing all articles
Browse latest Browse all 2341

Trending Articles