Hi,
We are unable to reproduce the reported
issue with Bing Maps in the Maps component. Please find the sample code in
which we tried to reproduce the reported issue and video of the same below.
Code Snippet:
@using Syncfusion.Blazor.Maps
<SfMaps>
<MapsZoomSettings
Enable="true">
<MapsZoomToolbarSettings>
<MapsZoomToolbarButton
ToolbarItems="@ZoomToolbar"></MapsZoomToolbarButton>
</MapsZoomToolbarSettings>
</MapsZoomSettings>
<MapsLayers>
<MapsLayer UrlTemplate="@UrlTemplate"
TValue="string"></MapsLayer>
</MapsLayers>
</SfMaps>
@code {
public
List<ToolbarItem> ZoomToolbar = new List<ToolbarItem> {
ToolbarItem.Zoom, ToolbarItem.ZoomIn, ToolbarItem.ZoomOut, ToolbarItem.Pan,
ToolbarItem.Reset };
public string
UrlTemplate;
protected override
async Task OnInitializedAsync()
{
UrlTemplate = await SfMaps.GetBingUrlTemplate("https://dev.virtualearth.net/REST/V1/Imagery/Metadata/RoadOnDemand?output=json&uriScheme=https&key=");
}
}
|
IMPORTANT NOTE: In the above sample code,
we have not provided the API key for the Bing Maps. Please provide your key in
the Bing Maps URL to check the sample.
Video:
https://www.syncfusion.com/downloads/support/directtrac/general/ze/Map-497074696.zip
Please provide us the code snippet or
sample application to reproduce the reported issue. It will be helpful for us
to analyze and assist you further.
Regards,
Hemanathan P.