dapriett / nativescript-google-maps-sdk

Cross Platform Google Maps SDK for Nativescript
MIT License
244 stars 164 forks source link

Map not zooming or moving to correct spot #304

Open delanick opened 6 years ago

delanick commented 6 years ago

Hi, my marker appears in the correct spot on the map, and all functions work when changing the map - but it doesn't load correctly. It remains zoomed out and centred over the left of Africa. I have pretty-much copied your code exac tly and changed the coordinates to where my office is in South Africa. Do you guys know about this issue and how I can resolve it?

dbilovd commented 5 years ago

@delanick were you been able to find a solution to your issue? I am having a similar problem too.

delanick commented 5 years ago

@dbilovd I had to physically write code to update the map by giving it an id (I think that already existed if I remember correctly) and then update the attributes of the component. It didn't work when trying to bind the item to the view-model and then updating those values. I don't remember if I tested it successfully on both platforms, but as I sit here I remember it working on iOS and only partially (no zoom) on Android.

jerbob92 commented 5 years ago

Could it be related to this issue? https://stackoverflow.com/questions/54218519/wrong-map-center-in-ios-using-nativescript-google-maps-sdk/54445615#54445615