SyncFusion 18.4.30 Update - map not rendering data since release

Hello,

I am using the map component and SyncFusion 18.3.0.53 which is working. I am trying to update to the latest version 18.4.41 and having problems with the map continuing to work.

I have read the release notes of 18.4.30 where I see that maps have had a few changes. I made the changes that I thought were required but I am receiving some logs that explain:


'The requested operation requires an element of type 'Object', but the target element has type 'Array'

This is caused by the 'ShapeData' parameter, which is expecting 'Object'. This is pointing to a property of type 'Object' already, which is JSON map data that has been deserialized into an 'Object'. 

If the component cannot accept data that has been deserialized into an 'Object' then how are we meant to populate the map with data? I could not see any mention of the ShapeData changing how it works with data in the release notes.

Thanks,

Lee

6 Replies 1 reply marked as answer

SB Swetha Babu Syncfusion Team February 4, 2021 02:16 PM UTC

  
Hi Lee,

Thank you for contacting Syncfusion support.

We have reproduced the reported issue with a JSON data available with us and we are already working on this issue and fixed the same. The fix for this issue will be available in our upcoming weekly NuGet release. However, can you please share us your JSON file in which you are facing the reported issue? It will be helpful for us to analyze further and resolve the reported issue in all the cases. 
  
We have made changes in the Maps component in the architectural level from 2020 Volume 4 release to improve the performance. We have published the breaking changes in our documentation. Please find the documentation link below. 
  
  
Please let us know if you need any further assistance. 

Regards,
Swetha Babu 



LE Lee February 4, 2021 03:55 PM UTC

Hi Swetha,

Thanks for the update, I'll keep an eye out for any releases.

I have attached a zip file of the JSON map data that I was using.

Lee

Attachment: regions_c98ae267.zip


SB Swetha Babu Syncfusion Team February 5, 2021 02:32 PM UTC

Hi Lee,

Thank you for your update. 
  
When we checked the provided JSON file with our fix in the Maps component, the reported exception is not reproduced. So we have resolved this issue. But the provided map shapes are not rendering properly in the component. However, we will include the fix for the reported issue in our weekly NuGet release which is expected to be available by the mid of February 2021.

Regards,
Swetha Babu 



SB Swetha Babu Syncfusion Team February 9, 2021 01:36 PM UTC

Hi Lee,

Thank you for your patience.

We have included the fix for the reported issue of "Map not rendering the GeoJSON file" in our weekly NuGet release(18.4.0.42). Please upgrade the package to the latest version to resolve the reported issue. We have created a simple Blazor application using your provided JSON file to demonstrate the fix and it can be downloaded from the below link.

https://www.syncfusion.com/downloads/support/forum/162149/ze/Maps-1903020364

Please let us know if you need any further assistance.

Regards,
Swetha Babu

Marked as answer

LE Lee February 16, 2021 09:15 AM UTC

Sorry, I forgot to give an update from my side. This solved my problem, thanks very much for your help and update.


SB Swetha Babu Syncfusion Team February 17, 2021 01:59 PM UTC

Hi Lee,

Thank you for your update.

Most Welcome! Please get back to us if you need any further assistance.

Regards,
Swetha Babu

Loader.
Up arrow icon