Closed jchri853 closed 5 years ago
I have no idea.
Remove these properties:
'camera': {
'target': {
"lat": 21.382314,
"lng": -157.933097
},
'zoom': 10
}
For stability, this plugin of iOS implementation inserts 1 seconds delay if camera
property is specified.
https://github.com/mapsplugin/cordova-plugin-googlemaps/blob/ad8c27d86f7272c3212dbecf835ec9692d76ae75/src/ios/GoogleMaps/PluginMap.m#L137-L146
Got it, thanks for looking into this.
I'm submitting a ... (check one with "x")
If you choose 'problem or bug report', please select OS: (check one with "x")
cordova information: (run
$> cordova plugin list
)If you use
@ionic-native/google-maps
, please tell the package.json (only@ionic-native/core
and@ionic-native/google-maps
are fine mostly)Current behavior:
Running ionic-googlemaps-quickdemo-v4 app on iOS device (iPhone X): when applying a style default map colors will render then custom styles after a delay. The occurs when changing views on an ionic app.
Expected behavior:
Render custom styles instantly when changing pages with a map in the view. See video.
I don't see this running in browser or on an Android device - perhaps its just how the map gets rendered using GM for IOS? Thank you in advance.
Screen capture or video record:
Related code, data or error log (please format your code or data):
https://github.com/mapsplugin/ionic-googlemaps-quickdemo-v4
Using the ionic-googlemaps-quickdemo-v4 example github project, I added the line of code " styles: LightMaps" under the loadMap function in the marker-cluster-page.ts