Releases: radarlabs/radar-sdk-js
Releases · radarlabs/radar-sdk-js
v4.3.0-beta.3
- Fix regression with map style switching
v4.3.0-beta.2
Adds the map option locale
to configure map language. This only works for Radar map styles as it searchs and replaces for the expression ["get", "radar:name_client_language"]
.
v4.2.1
- Fixes callback for
Radar.trackOnce({ fraud: true })
.
v4.3.0-beta.1
- Adds a
RadarMap
optionlanguages
to specify languages. This only works for Radar map styles as it searches and replaces for the expression["get", "radar:name_client_language"]
. - Adds a
RadarMap
optionfallbackLanguage
to specify a fallback language if a browser cannot detect its default language for languages set tolocal
.
v4.2.1-beta.2
- Fixes callback for
Radar.trackOnce({ fraud: true })
.
v4.3.0-beta.0
- Adds custom map styles and marker support.
v4.2.1-beta.1
- Supports custom map styles and markers.
- Refactors
MapUI
using an inheritance pattern to createRadarMap
andRadarMarker
classes.
v4.2.1-beta.0
bump version
v4.2.0
- Returns
{ token, expiresAt, expiresIn, passed }
when callingRadar.trackOnce({ fraud: true })
orRadar.trackVerified()
. - Removes
Radar.trackVerifiedToken()
. SinceRadar.trackVerified()
now returns{ token }
in addition to{ user, events, location }
, callRadar.trackVerified()
instead. - Renames
RadarDesktopAppError
toRadarVerifyAppError
. - Renames
RadarTimeoutError
toRadarNetworkError
for consistency with mobile SDKs. - Renames
RadarLocationPermissionsError
toRadarPermissionsError
for consistency with mobile SDKs. - Updates
RadarPermissionsError
andRadarLocationError
logic. ReturnsRadarPermissionsError
when location permissions aren't granted. ReturnsRadarLocationError
when location permissions are granted but location isn't available or the location request times out.
v4.2.0-beta.5
- Adds the parameter
Radar.ui.marker({ customMarkerId })
to use a custom uploaded marker. - Adds a
RadarMap.getMarkers()
function which returns an array of allRadarMarker
instances to aRadarMap
instance. - Adds support for
.png
custom markers. - Removes previous custom marker handling logic.