|
Queries |
Details |
|
I need the map to center within a 30 mile radius, so when I add in a center position, it doesn't work. |
We are not able to reproduce the reported issue. We are able to set the center position for the map using the Latitude and Longitude property in MapsCenterPosition class in the Maps component. We have created a simple Blazor application to demonstrate the same and we have also recorded a video when we tried to reproduce the reported issue and it can be downloaded from the next query. |
|
I need to be able to click on the marker and the marker click event isn't working for me |
We are not able to reproduce this reported issue. The OnMarkerClick event is triggered in the Maps component. We have created a simple Blazor application with the OnMarkerClick event and an alert box will be shown in the event. Please find the sample application from the below link for your reference.
|
|
when you move the map around, the markers don't stick with the map |
We are not able to reproduce this reported issue. However, we have recorded the screen when we tried to reproduce the reported issue. Please find the video from the below link for your reference. https://www.syncfusion.com/downloads/support/forum/162606/ze/OSMMapVideo-742018395 |
|
I will just wait for what you have on 2/18 and in the meantime back out the upgrade. |
Sorry for the inconvenience caused.
As we mentioned earlier, we will provide the details about the reported issue in the marker template on February 18, 2021. We are working to improvise the Maps component. Please let us know the issues you are facing in our component. We will be happy to provide the solution for the same. |
|
<MapsMarker Height="20" Width="20" Visible="true" DataSource="MarkerDataSource" TValue="MarkerData">
<ChildContent>
<MapsMarkerTooltipSettings Visible="true" ValuePath="name" />
</ChildContent>
<MarkerTemplate>
@{
var data = context as MobileStore;
<div>
<img class="markerTemplate" style="height:20px;width:20px;" src="styles/images/maps/ballon.png" />
</div>
}
</MarkerTemplate>
</MapsMarker> |
I just revisited this issue and decided to go ahead and upgrade to the newest version and see if the map works right now. The map does seem to work ok except for when I perform a call to a REST service. I then get the following error:
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
Unhandled exception rendering component: Value cannot be null. (Parameter 'source')
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.ToList[Object](IEnumerable`1 source)
at Syncfusion.Blazor.Maps.SfMaps.MarkerAnimation()
at Syncfusion.Blazor.Maps.SfMaps.ClientSideFunctions()
at Syncfusion.Blazor.Maps.SfMaps.OnAfterScriptRendered()
at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.Maps.SfMaps.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle, ComponentState owningComponentState)
It is the original error I had referenced before. I don't even have to use the data that was received in the form. It just happens when I first go into it. It will work ok sometimes if I just refresh the page. If I then go away from the page and use the "Back" button to go back to it, the error occurs. I will upload the page I'm executing. The call to the service will not work of course, but you should be able to see what I'm doing.
Thanks,
Millard
|
@if (!double.IsNaN(dblLat) && !double.IsNaN(dblLong) && dblLat != 0 && dblLong != 0)
{
<SfMaps>
//..
//..
</SfMaps>
} |
Indumathi,
Thanks for your reply. I will test the interim fix and wait for the completed fix when the patch is released.
Millard