Android Question Google maps silver style (theme)

MoraviaVenus

Member
Licensed User
Longtime User
Dear all,

I am developing new app, where I am using the library GoogleMaps (2.00). In my app, I would like to have the google map in silver style (silver theme), see attached picture. Apart of it, it would be great, if I can remove some of labels and minor roads.

screenshot_GM.png


I found nice webpage, where you can set up many properties of google map and export it as a JSON file or as URL: https://mapstyle.withgoogle.com/. But, I don't know, how to integrate the JSON or URL then to my B4A app...?

Your help is highly appreciated.

Thank you.
 

MoraviaVenus

Member
Licensed User
Longtime User
Guys, thank you for help.

I checked DonManfred's library (GoogleMapStyler), which solves my problem how to paint the map silver ("grayscale").

I would like to make even the points on the map either colored (let's say red) or invisible (see attached picture with red&yellow arrows).

Screenshot_20170819_210035_arrows.jpg


I tried to use following commands (based on the documentation of DonManfred's library - GoogleMapStyler and according to Style reference):

B4X:
mapStyler.setCustomFeatureColor("poi.attraction", "labels.icon", Colors.Red)
mapStyler.setCustomFeatureColor("poi.government", "labels.icon", Colors.Red)
mapStyler.setCustomFeatureColor("poi", "labels.icon", Colors.Red)
mapStyler.setCustomFeatureColor("poi.attraction", "labels.text", Colors.Red)
mapStyler.setCustomFeatureColor("poi.government", "labels.text", Colors.Red)
mapStyler.setCustomFeatureColor("poi", "labels.text", Colors.Red)
mapStyler.setCustomFeatureColor("poi", "labels", Colors.Red)

...but, it has no effect - the points of interest weren't red. Maybe I am using wrongly the parameters "featureType" or "elementType" of function setCustomFeatureColor...?

Please, advice, what am I doing wrong.

Thank you.
 
Upvote 0
Top