|
Query |
Details |
|
If I enclose them in <MapsLayer ShapeData='new { dataOptions = "WorldMap.json" }> then as the code decreases the number of elements in my list the pies correctly decrease in number, but if i increase it, they all disappear. |
At present, we do not support rendering the declarative approach in rendering the complex property in the maps component. We need to add the accumulation chart individually to the marker template. If you are facing further issues, when rendering the accumulation chart individually, please provide us your code snippet or the application to reproduce the reported issue. |
|
If I enclose them in <MapsLayer LayerType="ShapeLayerType.OSM" UrlTemplate="http://mt1.google.com/vt/lyrs=m@129&hl=en&x=tileX&y=tileY&z=level"> then they disappear and reappear as expected as the code adds and remove items from the list, HOWEVER all the coordinates are offset (ie they draw in the wrong place). |
We can add the accumulation chart in the OSM maps using the “MarkerTemplate” in “MapsMarker” property. We are unable to reproduce the reported issue when the accumulation chart is rendered individually in the marker template.
|
|
whichever i use, all my pie charts disappear on panning the map and only reappear when zooming out and in. |
When the panning is performed in the maps, the maps will re-render with the current panned location. At this instance, we need to re-render the maps to render the accumulation chart. So, we need to call Refresh() method to resolve the reported issue.
|
|
Queries |
Details |
|
if you try out your project you'll see you can now only pan one pixel at a time (!). Is there an event that fires once panning has finished rather than started? |
The provided sample is a proof of concept with respect to the requirement which is achievable.
When panning the map, the component gets refreshed and pie chart gets removed. We are working to resolve this issue with priority and will include the fix for this in our upcoming weekly NuGet. Please find the feedback link for the bug report for your reference.
|
|
can you expand on the lack of support for adding markers in a loop? Maybe my understanding of Blazor is lacking, but surely looking the HTML is no different from just having multiple blocks? It does work in terms of it does create multiple charts, though it seems to be producing refresh problems. |
At present, we do not have support for adding the marker in the declarative approach of the Blazor application. We need to provide some internal support to update the markers in the Maps component. We have considered this as a feature and please find the feedback link for further follow-up.
This feature will be available in any of our upcoming releases. |
|
Can I use the .AddMarker method in code to add the charts to the map instead? If not I'm not sure I see what .AddMarker does. It seems very limiting if the number of charts on a map needs to be hard-coded into the app. |
When we check the AddMarker method for adding a marker, we are unable to add a marker. However, we are checking on this issue. We will check this and update you with further details on 2nd July, 2020.
Even if we fix this issue, we cannot add a pie chart from the code behind dynamically. We can initiate a component only using the razor tag helpers in the Blazor application. |