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
-
0.0.4
-
source
- 0.0.4 source May 31, 2026 (7 KB)
-
-
0.0.3
-
source
- 0.0.3 source May 31, 2026 (6 KB)
-
-
0.0.2
-
source
- 0.0.2 source May 31, 2026 (6 KB)
-
-
0.0.1
-
source
- 0.0.1 source October 13, 2014 (4.5 KB)
-