arnaudleclerc / AzureMapsControl.Components

Razor Components for azure-maps-control
MIT License
34 stars 12 forks source link

Feature deserialization on drawing events #66

Closed miguelhasse closed 2 years ago

miguelhasse commented 2 years ago

Feature deserialization throws an exception for all drawing events apart from 'DrawingModeChanged' and 'DrawingStarted'. Also, actual Geometry data will never get deserialized in current implementation.

Error: System.NotSupportedException: Deserialization of types without a parameterless constructor, a singular parameterized constructor, or a parameterized constructor annotated with 'JsonConstructorAttribute' is not supported. Type 'AzureMapsControl.Components.Atlas.Feature'.

arnaudleclerc commented 2 years ago

Sorry for the delay. This is probably the same issue as in #68 . A new 1.12.0-alpha0011 version has been generated with a fix, could you please give it a try ?

miguelhasse commented 2 years ago

@arnaudleclerc it certainly seems to be the same as #68. I'll give it a try, and post results here.

arnaudleclerc commented 2 years ago

I published a v1.12.0 a couple of days ago where this issue should be fixed. I will close this issue, but feel free to reopen it if the problem persists.