google-map-static-image-generator is a Ruby wrapper around the Google Maps Static API that generates PNG map images on the fly — no JavaScript required. Features: - Add custom markers at any coordinates - Draw paths with custom weight and colour - Apply map styles (hide labels, change colours, etc.) - Set center + zoom for marker-free maps - Choose map type: roadmap, satellite, terrain, or hybrid - Default 1024x1024 at scale 2 (retina-friendly) - Raises GoogleMapStaticImage::ApiError on non-200 responses (invalid key, quota exceeded, etc.) Useful for generating map thumbnails in emails, PDFs, admin dashboards, and anywhere an interactive JavaScript map is not practical.

Required Ruby Version

>= 2.7

Authors

Abhishek Sharma

Versions

  1. 0.0.4 May 31, 2026 (7 KB)
  2. 0.0.3 May 31, 2026 (6 KB)
  3. 0.0.2 May 31, 2026 (6 KB)
  4. 0.0.1 October 13, 2014 (4.5 KB)

Pushed by

SHA 256 checksum