Open RignonNoel opened 4 years ago
I saw something similar last year and concluded that mapReady was not firing when returning to the map page. I handled this by adding logic to onLoaded.
@dlcole I tried putting something into onMapReady
to see if it was firing the second time i load the page and it seems that this block was working great. But since i have really no more idea at this point i will investigate your onLoaded
to check if i can fix it with it
In my instance, I really only wanted the mapReady
event to fire once, on initial load/ready, and never again... to do this, I removed the event listener via mapView.off('mapReady')
and the end of my mapReady
event handler. Not sure if this info is of any use to you, but it's here nonetheless!
My default page is a big Map created with
nativescript-google-maps-sdk
. When I first open my app I can see theIndoorLevel
andIndoorBuilding
but if I change my page and come back to the default I can't see anymore theIndoorLevel
, however, it's still functional (zoom, translation, click oninfoWindow
, ..).My map is used to visit IndoorLevel, so it's a big problem for me.
Any idea?
Example of code if it can help:
This app is used to show a list of artworks on specific level of building since GoogleMaps only use
latitude
andlongitude
and not theIndoorLevel
map.component.html
map.component.ts