Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vann committed Oct 13, 2010
1 parent e6d288b commit bf6ea9d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions README.markdown
Expand Up @@ -229,19 +229,21 @@ You can apply various themes to your maps, here's the list of available themes:

You can add your own themes as well, if you haven't already, [do some reading at the google maps api v3 site](http://code.google.com/apis/maps/documentation/javascript/maptypes.html#StyledMaps) about styled maps. Then simply pass in the following hash:

// the attributes themeName and set are both REQUIRED
nameOftheme = {
themeName = nameOftheme,
set = [{stylesOptions}]
}

// the attributes themeName and set are both REQUIRED
nameOftheme = {
themeName = nameOftheme,
set = [{stylesOptions}]
}

// then apply it the create_map method as so:
var map_opts = {
zoom: 14,
center: set_latlng(coordinates.USA.MN),
theme: nameOftheme
};
map = create_map("map",map_opts);
// then apply it the create_map method as so:
var map_opts = {
zoom: 14,
center: set_latlng(coordinates.USA.MN),
theme: nameOftheme
};
map = create_map("map",map_opts);


Most themes are based on this article: [http://www.41latitude.com/post/1268734799/google-styled-maps](http://www.41latitude.com/post/1268734799/google-styled-maps)

Expand Down

0 comments on commit bf6ea9d

Please sign in to comment.