Page 1 of 1

Point Placement on Mapbox map is incorrect

Posted: 2020-02-25T09:52:02-07:00
by mkendall
I am try to get an exact placement on a mapbox map, but it is a little off- has anyone done similar and know what could be the problem?

//calculate position om Map
int pixx = 0;
int pixy = 0;
TileSystem.LatLongToPixelXY(ptLat, ptLng, zoom, out pixx, out pixy);

//Adjustment value center of map
s = cy - (sizey / 2);
w = cx - (sizex / 2);

//Where to place image
int locy = pixy - s;
int locx = pixx - w;

Re: Point Placement on Mapbox map is incorrect

Posted: 2020-02-25T10:34:04-07:00
by fmw42
What does this have to do with ImageMagick? Please put this in context with Imagemagick.

Please also provide your full command line and your version of ImageMagick and platform.