Reputation: 3296
This one is pretty out there, but I can't find any posts addressing it anywhere. For Google Maps API v3, you can add custom styling to the map elements:
var pinkParksStyles = [
{
featureType: "all",
stylers: [
{ saturation: -80 }
]
},
{
featureType: "poi.park",
stylers: [
{ hue: "#ff0023" },
{ saturation: 40 }
]
}
];
map.setOptions({styles: pinkParksStyles});
Does anyone know of any way to apply custom styling to an Android MapView?? Thanks!!!
Upvotes: 3
Views: 2990
Reputation: 187
Sorry if I answer old post but maybe it will help someone in future. As far as I know The Google Maps Android API does not support custom styles. You can check it out there https://developers.google.com/maps/documentation/android-api/lite. cmiiw
Upvotes: 3
Reputation: 564
My initial thoughts would be to subclass MapView and override the on draw event. Have the onDraw event replace the colors in the canvas using a combination of ColorMatrixColorFilter and AvoidXfermode. Thees should help as well:
avoidxfermode to replace a color on canvas
How to change colors of a Drawable in Android?
Upvotes: -1