Connecting WinUI RadMap with Offline Map

1 Answer 64 Views
Map
ibra
Top achievements
Rank 1
ibra asked on 13 Jun 2024, 02:51 PM

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

Sort by
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"

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

ibra
Top achievements
Rank 1
commented on 14 Jun 2024, 06:25 PM | edited

Dear Martin,

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?
Tags
Map
Asked by
ibra
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or