Google Static Map

Steve Ruiz

Google Static Map

Generate a static map from Google’s Static Maps API. Learn more.

Prop Type Notes
apiKey string Get yours at Google.
zoom number
mapType string roadmap or terrain or satellite or hybrid
centerType string latLng or address or markers
address number Used only if centerType is address
longitude number Used only if centerType is latLng
latitude number Used only if centerType is latLng
markerSize string
markerColor string
markers string[] Each can be either an address or lng/lat pair, ie "40,-73”
focusedColor string
focused string[] Each can be either an address or lng/lat pair, ie "40,-73”
onClick function
onMouseEnter function
onMouseLeave function

Changelog:

  • 1.3.0 - Adds focused markers
  • 1.2.0 - Updates scale to 2
  • 1.1.0 - Safety first (or second, in this case)
  • 1.0.0 - Hello world!