nativescript-google-maps-sdk icon indicating copy to clipboard operation
nativescript-google-maps-sdk copied to clipboard

JS ERROR Error: Now use instance.nativeView instead of instance.ios

Open simkepal opened this issue 5 years ago • 4 comments

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'); }

simkepal avatar May 07 '19 22:05 simkepal

Hi, I am having the same error. Any help is appreciated.

alexisconsuegra avatar May 29 '19 01:05 alexisconsuegra

@simkepal Try adding a height to your XML map component and see if that fixes the error. (ie: height="100%" or height="500")

drangelod avatar Jun 13 '19 07:06 drangelod

@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 😃.

MCorzo avatar Sep 02 '19 16:09 MCorzo

@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!

codealvarez avatar Jun 02 '22 21:06 codealvarez