Using server images in the map control?

I am using Blazor WASM with the latest version of Syncfusion Blazor.

Is it possible to load custom image data into the map control shape data?

For instance, if I have a .png on my server that I want to use in the map control, can I load that into ShapeData on a layer? What if it was SVG data? or JSON data?

Thank you for you assistance.

1 Reply 1 reply marked as answer

SB Swetha Babu Syncfusion Team February 4, 2021 02:17 PM UTC

Hi Ryan,

Thank you for contacting Syncfusion support.

We do not have support to add the images such as SVG or PNG images in the shape data of the layers of the maps. However, we can add the JSON data to render the map using the ShapeData property in the MapsLayer class of the maps. However, we have created a simple Blazor Web Assembly application to demonstrate the same and it can be downloaded from the below link.

https://www.syncfusion.com/downloads/support/forum/162130/ze/Maps-1463836877

In the above sample, we have rendered a world map using the JSON data. Please let us know if the above sample meets your requirement.

Please let us know if you need any further assistance.

Regards,
Swetha Babu

Marked as answer
Loader.
Up arrow icon