1.1.0
Features
- #39 - Adding a
GeolocationControl
which allows you to use the current location of the browser on your application. More information on the docs.
Changes
ComponentNotAddedToMapException
Some components need to be added to the map before being able to call their methods. Prior to the 1.1.0
, calling the methods of a component interacting with the atlas library before adding it to the map would raise a NullReferenceException
. The following methods will now raise a ComponentNotAddedToMapException
indicating that the object needs to be added to the map first :
GeolocationControl
:GetLastKnownPositionAsync
,DisposeAsync
,SetOptionsAsync
.OverviewMapControl
:UpdateAsync
,SetOptionsAsync
.DataSource
:AddAsync
,RemoveAsync
,ImportDataFromUrlAsync
,ClearAsync
.HtmlMarker
:TogglePopupAsync
.Popup
:OpenAsync
,CloseAsync
,RemoveAsync
,UpdateAsync
,SetOptionsAsync
.
ValueTask instead of Task
The previously named methods now returns a ValueTask
instead of a Task
.
API deprecation
The UpdateAsync
methods on OverviewMapControl
and Popup
are deprecated and will be removed in a future major version. They will still be supported on the future v1 versions. On both of those classes, you can use SetOptionsAsync
instead.