Could you provide guidance on how to connect the WinUI RadMap control with offline map data? Any specific instructions or examples would be greatly appreciated.
Thank you.
1 Answer, 1 is accepted
0
Accepted
Martin Ivanov
Telerik team
answered on 14 Jun 2024, 03:42 PM
Hello Ibra,
If by "map data" you mean a set of map tile images, then you can create a custom map provider. In the GetTile() method override of the custom map source you can return a Uri that points to the corresponding tile image. To access the images via Uri, you may need to create an offline service that hosts the images. For example, the final Uri can look something like this: "https://localhost:4000/myapp/images/<zoomlevel>/<tileX>/<tileY>.png"
Thank you for your response. I have implemented the custom map provider and my TileServer GL logs correct requests and responses. However, RadMap does not display the tiles. The URLs are correctly formatted as "http://localhost:8080/data/mymap/<zoomlevel>/<tileX>/<tileY>.jpg".
I've attached my implementation in a .rar file. Could you please help identify the issue and confirm if RadMap supports rendering JPEG tiles?
Thank you for your assistance.
Best regards, Ibra
Martin Ivanov
Telerik team
commented on 18 Jun 2024, 01:47 PM
Can you re-attach your .rar file since I cannot see it in the previous reply?