ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

GoogleMapsMapTypeId.TERRAIN combined with custom styles does not work #221

Closed aceArt-GmbH closed 5 years ago

aceArt-GmbH commented 5 years ago

I'm submitting a ...

cordova information: (run $> cordova plugin list)

cordova-plugin-device 2.0.2 "Device"
cordova-plugin-geolocation 4.0.1 "Geolocation"
cordova-plugin-googlemaps 2.6.2 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 3.1.2 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
"@ionic-native/core": "^5.0.0",
"@ionic-native/google-maps": "^5.0.0-beta.27",

Current behavior: When choosing GoogleMapsMapTypeId.TERRAIN and setting custom styles via the style property of GoogleMapOptions, either styling or terrain type will be removed. I get a styled basic map or a non styled terrain map, but not both.

This is how I try to style a terrain map:

this.map = GoogleMaps.create('map-canvas', {
   mapType: GoogleMapsMapTypeId.TERRAIN,       
   styles: this.mapStyles,
})

The styled terrain map works when trying to achieve the same appearance with the browser.

Expected behavior: A styled terrain map should appear.

wf9a5m75 commented 5 years ago

If it does not work, Google does not support it.

aceArt-GmbH commented 5 years ago

Google does support it. It does not work with ionic-native-google-maps (as I wrote in this issue).

wf9a5m75 commented 5 years ago

Google does support it.

Please provide the evidence, such as example and screen shots, for three platforms, Google Maps SDK for Android/iOS and Google Maps JavaScript v3.