ImageUrlValuePath

hi 

how can i use ImageUrlValuePath from marker?
I want to use image from datasource

i test c#
marker.ImageUrlValuePath = "pict";


my JS
 "name": "TEST",
      "latitude": 51.0102424621582,
      "longitude": 2.3486793041229248,
      "population": 0,
      "Country": "",
      "Continent": "",
      "siteweb": "",
      "info1": "450       ",
      "color": "green",
      "shape": "Pentagon",
      "pict": "~/App_Data/laura.png"


but that doesn't work

any idea?


1 Reply 1 reply marked as answer

SM Sharmi Murugan Syncfusion Team May 7, 2021 05:22 PM UTC

Hi Georges,

Thank you for contacting Syncfusion support.

We can render images as a marker in the Maps component using the "imageUrlValuePath" property. To render the images using this property, set the field name in the data source that contains the path of the image to the "imageUrlValuePath" property. Please find the below sample application to demonstrate the same and it can be downloaded from the below link. 

In the above sample, we have rendered the images using the "imageUrlValuePath" property with the marker data source in the marketSettings property. We need to set the "shape" property as "Image".

Please let us know if you need any further assistance.

Regards,
Sharmi. 


Marked as answer
Loader.
Up arrow icon