Hello, I'm working with the Blazor Maps, specifically going off of the examples given in
https://ej2.syncfusion.com/blazor/documentation/maps/markers/
I'm curious if there is a way to plot the markers by using a list of points where the Latitude/Longitude are within more complex structures.
For a simple example, given the following definition:
public class GPS
{
public double Latitude;
public double Longitude;
}
public class City2
{
public GPS gpslocation;
public string Name;
};
private List<City2> cities2 = new List<City2> {
new City2 { gpslocation = new GPS { Latitude = 35.145083, Longitude = -117.960260 }, Name= "California"}
};
If I try calling <MapsMarker Visible="true" DataSource="@cities2"> </MapsMarker> , then the marker will not display.
Is there a way to tell the Map where within the structure to find the latitude and longitude, similar to how the XName and YName parameters can be set on the EjsChart?
Thanks,
Sorin
Attachment:
Map_Test_8061afaa.zip