0
I’m using the component agm-map
and I need to move on to the properties [latitude]
and [longitude]
coordinates. I am receiving these values in string, but need to convert into numeric.
I tried something like:
<agm-map
[mapTypeId]="'hybrid'"
[latitude]="parseFloat(local.localLatitudeB)"
[longitude]="parseFloat(local.localLongitudeB)"
[zoom]="16"
[disableDefaultUI]="false">
...
But I get:
_co.parseFloat is not a Function
This is an example of localLongitudeB
which I receive from my front, but is in string: -47.410351923