3

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!!!

TomBomb
  • 3,236
  • 5
  • 31
  • 40

2 Answers2

3

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

rischan
  • 187
  • 1
  • 4
-1

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?

Community
  • 1
  • 1
riotopsys
  • 564
  • 4
  • 7
  • 1
    Thanks, thats a good start. I'm really interested in being able to style certain elements of the map, i.e. make the streets blue and the buildings pink (you can do this in api 3!) – TomBomb Nov 09 '11 at 01:21
  • @riotopsys .onDraw seems to be a final method, any further suggestions? – Gunnar Hoffman Apr 05 '12 at 14:25