nativescript-google-maps-sdk
nativescript-google-maps-sdk copied to clipboard
JS ERROR Error: Now use instance.nativeView instead of instance.ios
Hello,
Can someone help with this error?
JS ERROR Error: Now use instance.nativeView instead of instance.ios
version is 2.7.0.
HTML:
<StackLayout class="station-map"> <MapView #mapView [latitude]="latitude" [longitude]="longitude" (mapReady)="onMapReady($event)"></MapView> </StackLayout>
CODE:
onMapReady(event) { console.log('Map Ready'); }
Hi, I am having the same error. Any help is appreciated.
@simkepal Try adding a height to your XML map component and see if that fixes the error. (ie: height="100%" or height="500")
@simkepal Try adding a height to your XML map component and see if that fixes the error. (ie: height="100%" or height="500")
Thanks man, you saved my live 😃.
@simkepal Try adding a height to your XML map component and see if that fixes the error. (ie: height="100%" or height="500")
You're absolutely right! Thank you!