I am currently testing the openstreetmap integration uing syncfusionLooking at their documentation => https://blazor.syncfusion.com/documentation/maps/providers/openstreetmap
I tryed running this code:
@using Syncfusion.Blazor.Maps<SfMaps><MapsZoomSettings ZoomFactor="4"></MapsZoomSettings><MapsCenterPosition Latitude="29.394708" Longitude="-94.954653"></MapsCenterPosition><MapsLayers><MapsLayer UrlTemplate="https://tile.openstreetmap.org/level/tileX/tileY.png" TValue="string"> @* Add marker *@<MapsMarkerSettings><MapsMarker Visible="true" Height="25" Width="15" DataSource="Cities" TValue="City"></MapsMarker></MapsMarkerSettings> @* Add navigation line *@<MapsNavigationLines><MapsNavigationLine Visible="true" Color="blue" Angle="0.1" Latitude="new double[]{34.060620, 40.724546}" Longitude="new double[]{-118.330491,-73.850344}"></MapsNavigationLine></MapsNavigationLines></MapsLayer></MapsLayers></SfMaps>@code{ public class City { public double Latitude { get; set; } public double Longitude { get; set; } public string Name { get; set; } } private List<City> Cities = new List<City> { new City { Latitude = 34.060620, Longitude = -118.330491, Name="California" }, new City{ Latitude = 40.724546, Longitude = -73.850344, Name="New York"} };}
This is what they have:
this is what I get:
I do not have any crash report, neither in my Visual Studio, neither in the web console.
Also, trying their second exemple (Enable zooming and panning)I am not able to zoom or pan the map
Any idea of what I do wrong? Thx