Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I style a Google Map?

How much control do I have regarding the styling of a google map?

Can I make it more closely resemble a site's colour scheme or are we stuck with pastels?

like image 740
Allain Lalonde Avatar asked Jun 08 '09 19:06

Allain Lalonde


People also ask

Can I customize Google Maps?

Change how a map looks On your computer, sign in to My Maps. Open a map you can edit or create a map. To choose a style, click one of the images.

Can you change the font on Google Maps?

On your Android phone or tablet, open the Settings app . Tap Accessibility. From here, you can: Change font size: To make words larger, tap Font size, and then set your preferred letter size.


2 Answers

Controls

There is a decent description of the process to override the set of builtin Controls. So you have total control over the UI elements overlaying the map.

Map Tiles

I don't agree with the previous answers that you are out of luck if you want to change the images in the map itself.

The range of map types available give you a few options outside the pastel default map:

G_NORMAL_MAP, G_SATELLITE_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP, G_MAPMAKER_NORMAL_MAP,
G_MAPMAKER_HYBRID_MAP, G_SATELLITE_3D_MAP, G_DEFAULT_MAP_TYPES, G_MAPMAKER_MAP_TYPES 

Obviously, this only works if you are willing to create the tiles, but Custom Tilesets are quite well supported by the Google Maps API and there a few good examples out there:

  • World of Warcraft tileset
  • Batmud tileset
  • Tower of the Hand tilset

Update

Google recently announced support for Styled Maps in the Google Maps API. You can extensively customize the color scheme used by Google Maps. So you can customize the look of your mashup, without resorting to custom tilesets.

like image 96
RedBlueThing Avatar answered Sep 20 '22 20:09

RedBlueThing


You can probably change around all the controls, perhaps by making your own or subclassing the google default versions. You won't be able to change the colors on the map itself without generating all new map images, at which point you are probably better off using something other than google. If thats what you want, you should consider OpenStreetMaps.

like image 35
SingleNegationElimination Avatar answered Sep 20 '22 20:09

SingleNegationElimination