I’m trying to create tiles for small areas (1000x1000 meters or so) to display on mobile platforms built in map controls (UWP, iOS and Android using Xamarin Forms). I was following the example of the Tile Generator to draw the layer to a canvas and then break up the bitmap into the 256x256 tiles. But something doesn’t seem right, I think it’s maybe projection or something. I’ve tried the WebMercator, Bing and Google proj4, the scale is just a little off when I actually load it on the platform’s map control (using UWP for testing).
I’m mainly wondering if I’m doing the drawing correctly. I’ll post the code next.