<EjsMaps>
<MapsZoomSettings Enable="true"></MapsZoomSettings>
<MapsLayers>
<MapsLayer ShapeData="@shapeMap">
<MapsMarkerSettings>
<MapsMarker Visible="true" DataSource="MarkerDataSource1" AnimationDuration="0" Height="60" Width="60" Fill="red" Shape="MarkerType.Circle">
<MapsMarkerTooltipSettings Visible="true" ValuePath="name"></MapsMarkerTooltipSettings>
</MapsMarker>
<MapsMarker Visible="true" DataSource="MarkerDataSource2" AnimationDuration="0" Height="50" Width="30" Fill="blue" Shape="MarkerType.Circle">
<MapsMarkerTooltipSettings Visible="true" ValuePath="name"></MapsMarkerTooltipSettings>
</MapsMarker>
<MapsMarker Visible="true" DataSource="MarkerDataSource3" AnimationDuration="0" Height="30" Width="20" Fill="yellow" Shape="MarkerType.Circle">
<MapsMarkerTooltipSettings Visible="true" ValuePath="name"></MapsMarkerTooltipSettings>
</MapsMarker>
<MapsMarker Visible="true" DataSource="MarkerDataSource4" AnimationDuration="0" Height="40" Width="40" Fill="green" Shape="MarkerType.Circle">
<MapsMarkerTooltipSettings Visible="true" ValuePath="name"></MapsMarkerTooltipSettings>
</MapsMarker>
<MapsMarker Visible="true" DataSource="MarkerDataSource5" AnimationDuration="0" Height="35" Width="55" Fill="orange" Shape="MarkerType.Circle">
<MapsMarkerTooltipSettings Visible="true" ValuePath="name"></MapsMarkerTooltipSettings>
</MapsMarker>
<MapsMarker Visible="true" DataSource="MarkerDataSource6" AnimationDuration="0" Height="45" Width="55" Fill="violet" Shape="MarkerType.Circle">
<MapsMarkerTooltipSettings Visible="true" ValuePath="name"></MapsMarkerTooltipSettings>
</MapsMarker>
<MapsMarker Visible="true" DataSource="MarkerDataSource7" AnimationDuration="0" Height="75" Width="65" Fill="pink" Shape="MarkerType.Circle">
<MapsMarkerTooltipSettings Visible="true" ValuePath="name"></MapsMarkerTooltipSettings>
</MapsMarker>
</MapsMarkerSettings>
</MapsLayer>
</MapsLayers>
</EjsMaps>
@code {
public MapDataSettings shapeMap = new MapDataSettings
{
async = true,
dataOptions = "scripts/MapsData/WorldMap.json",
type = "GET"
};
public class MapDataSettings
{
public Boolean async { get; set; }
public String dataOptions { get; set; }
public String type { get; set; }
};
public class MarkerData
{
public double latitude;
public double longitude;
public string name;
};
public List<MarkerData> MarkerDataSource1 = new List<MarkerData> {
new MarkerData { latitude= 37.6276571, longitude= -122.4276688, name= "San Bruno" }
};
public List<MarkerData> MarkerDataSource2 = new List<MarkerData> {
new MarkerData { latitude= 35.6628744, longitude= 139.7345469, name= "Minato" }
};
public List<MarkerData> MarkerDataSource3 = new List<MarkerData> {
new MarkerData { latitude= 51.5326602, longitude= -0.1262422, name= "London" }
};
public List<MarkerData> MarkerDataSource4 = new List<MarkerData> {
new MarkerData { latitude= 19.1555762, longitude= 72.8849595, name= "Mumbai" }
};
public List<MarkerData> MarkerDataSource5 = new List<MarkerData> {
new MarkerData { latitude= 52.4643089, longitude= 13.4107368, name= "Berlin" }
};
public List<MarkerData> MarkerDataSource6 = new List<MarkerData> {
new MarkerData { latitude= -23.5268201, longitude= -46.6489927, name= "Bom Retiro" }
};
public List<MarkerData> MarkerDataSource7 = new List<MarkerData> {
new MarkerData { latitude= 63.802066, longitude= 99.448470, name= "Russia" }
};
} |