Thank you for your prompt action Ben.
Unfortunately I am not able to find the latest sample project from ThinkGeo / Public / Mobile Maps · GitLab. Does the branch exist for public?
In addition to this, how do ThinkGeo support on different projection.
I was told to switch my map tile server from EPSG3857 to EPSG7899
Pervious it is straight forward to use EPSG3857 with World_Imagery (MapServer), but it seems there are some settings need to change
The new map tile configuration (private repo)
What I have done are
- Setup the Custom WebRasterXyzTileAsyncLayer with the ProjectionString and TileMatrixSet (MyMapLayer.cs)
- Set the CustomZoomLevelSet in the overlay
The problem I ran into are
- The GetImageUriAsyncCore method does not returning the correct X and Y value (start with 0). I have to go through a custom method to calculate. However, it seems the value does not correct on larger zoom level. (At least it looks like that, but it could be caused by the lat lon projection?)
For example, the red dot is located in wrong location, it suppose to be location of National Gallery of Victoria - Google Maps
I hope the attached project could help but the map server is private so probably the tile will not load from your side.
MauiApp1.zip (550.9 KB)
On the other hand, my web app is using below settings in Leaflet. Not sure if this is helpful for you.
EMAP_COORDINATE_REFERENCE_SYSTEM = new L.Proj.CRS(
'EPSG:7899',
`+proj=lcc +lat_1=-36 +lat_2=-38 +lat_0=-37 +lon_0=145 +x_0=2500000
+y_0=2500000 + ellps=GRS80 + towgs84=0, 0, 0, 0, 0, 0, 0 + units=m + no_defs `,
{
origin: [-38675897, 62145254],
resolutions: [
2116.670900008467, 1058.3354500042335, 529.1677250021168, 264.5838625010584, 132.2919312505292, 66.1459656252646, 46.30217593768521,
26.458386250105836, 13.229193125052918, 6.614596562526459, 2.6458386250105836, 1.3229193125052918, 0.6614596562526459
]
}
);