Skip to content

Instantly share code, notes, and snippets.

@hertsch
Last active August 29, 2015 14:01
Show Gist options
  • Save hertsch/71b944a12e47954d3db9 to your computer and use it in GitHub Desktop.
Save hertsch/71b944a12e47954d3db9 to your computer and use it in GitHub Desktop.
~~ google_map ~~

##~~ google_map ~~

The kitcommand ~~ google_map ~~ return a Google Map for the given location.

Parameters

At least you must specify a street, zip code or city to define a location. You can also define a company name.

city[]

You can define a city for the location:

~~ google_map city[Berlin] ~~

will show a map centered to Berlin.

company[]

You can define a company name for the location, you will need also to add a street, zip and/or city:

~~ google_map company[phpManufaktur] city[Berlin] ~~

is enough information for Google.

height[]

By default the Google Map will be shown with a height of 300px, you can specify another height, using a percentage or pixels:

~~ google_map city[Berlin] height[400px] ~~

will show a map with a height of 400 Pixels.

street[]

You can specify a street for the location:

~~ google city[Berlin] street[Stockholmer Str. 31] ~~

width[]

By default the Google Map will be shown with a width of 100% (full available width), you can specify another width, using percentage or pixels:

~~ google_map city[Berlin] width[300px] ~~

will show a map with a height of 300 Pixels.

zip[]

You can specify a zip code for the location:

~~ google_map city[Berlin] zip[13359] ~~

will center the map to Berlin with the zip area 13359

zoom[]

You can specify the zoom level for the map. Supported are levels between 0 (the whole globe) and 21 (you can see single buildings). By default the zoom level is 14:

~~ google_map city[Berlin] zoom[8] ~~

will show Berlin and the surroundings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment