PHPackages                             jezzdk/statamic-google-maps - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jezzdk/statamic-google-maps

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jezzdk/statamic-google-maps
===========================

v3.0.1(3mo ago)03.7k↓50%4[2 issues](https://github.com/jezzdk/statamic-google-maps/issues)PHP

Since Jul 28Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/jezzdk/statamic-google-maps)[ Packagist](https://packagist.org/packages/jezzdk/statamic-google-maps)[ RSS](/packages/jezzdk-statamic-google-maps/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (16)Used By (0)

Statamic Google Maps
====================

[](#statamic-google-maps)

[![Statamic 6.0+](https://camo.githubusercontent.com/e2d97a60f0486aada69d7bf68516cff0f0ed6d2ad2f935e8dc54767eefb3295d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)](https://camo.githubusercontent.com/e2d97a60f0486aada69d7bf68516cff0f0ed6d2ad2f935e8dc54767eefb3295d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53746174616d69632d362e302b2d4646323639453f7374796c653d666f722d7468652d6261646765266c696e6b3d68747470733a2f2f73746174616d69632e636f6d)[![Latest Version on Packagist](https://camo.githubusercontent.com/8b2c934afb22cb08f63f30e06ae9fd4375b40878b40ccf3c10180418d65b99b0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a657a7a646b2f73746174616d69632d676f6f676c652d6d6170732e7376673f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/jezzdk/statamic-google-maps)

A Google Map addon for Statamic 6 for creating and displaying Google Maps on your website.

Installation
------------

[](#installation)

Require it using Composer.

```
composer require jezzdk/statamic-google-maps

```

Publish the assets

```
php artisan vendor:publish --provider="Jezzdk\StatamicGoogleMaps\ServiceProvider"

```

Add an environment variable, since this library uses [Google Maps](https://developers.google.com/maps/) under the hood for displaying maps.

```
GOOGLE_MAPS_API_KEY=""

```

Lastly, insert this tag in the header in order to load the Google Map JavaScript on the frontend:

```
{{ map_script }}

```

**\*Disclaimer\*** You will need a billing account on Google if you want to create a Google Maps API key. There are plenty of guides on how to set that up if you ask Google.

Usage
-----

[](#usage)

This addon provides a Google Map fieldtype. You can use that in your blueprints which will enable your users to dynamically insert maps onto your website.

There is also a tag that you can use directly in your Antlers template. I'll explain both use cases below.

### Map Tag

[](#map-tag)

The simplest way to insert a map is by inserting the tag with latitude and longitude:

```
{{ map lat="12.1234" lng="52.1234" }}

```

This will insert a map centered on the given coordinates, with a zoom level of 16 and using the roadmap type. The Map tag supports the following attributes:

AttributeTypeDefaultDescriptionlatfloat*none*The latitude (required)lngfloat*none*The longitude (required)markerboolfalseDisplay a marker in the latitude and longitude from abovemarkerLatfloat*none*The latitude for the marker (the `marker` attribute must be false or omitted)markerLngfloat*none*The longitude for the marker (the `marker` attribute must be false or omitted)zoominteger16The map zoom leveltypestringroadmapValid values are: `roadmap`, `satellite`, `terrain`, `hybrid`iconstring/assets/marker.png(Pro feature) Use a path relative to the public folder. If the file doesn't exist, the default Google Map pin will be used.stylestring*none*(Pro feature) The map styles as a JSON stringshowControlsbooleanfalseShow the default map controls### Google Map Field (Pro feature)

[](#google-map-field-pro-feature)

Simply select the fieldtype when creating a blueprint. When a user pans around the map, changes zoom level or changes the map type, the settings are saved and the output will display the same view as selected in the control panel.

The field has a few settings:

- Initial map type - choose which map type should be selected when the map is loaded initially in the control panel
- Initial zoom level - choose the zoom level when the map is loaded initially in the control panel
- Enable maptype selector - Allow the user to select the map type
- Enable marker creation - The user can create and remove a marker on the map
- Enable Geocoder - This adds a search field above the map, enabling the user to search for an address (The Geocoder API must be enabled in Google Cloud Console for this to work!)

When using markers, the script will look for an icon at `/public/assets/marker.png`. If it exist it will be used, otherwise it will use the default Google Map pin.

Styles (Pro feature)
--------------------

[](#styles-pro-feature)

The map can be styled using a JSON array of styles. You can generate the style JSON for free at  (use the old wizard) or at .

The fieldtype has a button that reveals a textarea where the style JSON can be inserted, and the map tag has a `style` attribute for the same purpose.

###  Health Score

47

—

FairBetter than 94% of packages

Maintenance82

Actively maintained with recent releases

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~118 days

Recently: every ~190 days

Total

15

Last Release

91d ago

Major Versions

v1.2.2 → v2.0.02023-05-23

v2.2.1 → v3.0.02026-02-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d0a6d2e4c81a362cc84db1d7394aa7d32c9094b8876a4bbb8dafc1b71a1a90f?d=identicon)[jezzdk](/maintainers/jezzdk)

---

Top Contributors

[![jezzdk](https://avatars.githubusercontent.com/u/139632?v=4)](https://github.com/jezzdk "jezzdk (22 commits)")[![grandpalacko](https://avatars.githubusercontent.com/u/3207477?v=4)](https://github.com/grandpalacko "grandpalacko (2 commits)")

### Embed Badge

![Health badge](/badges/jezzdk-statamic-google-maps/health.svg)

```
[![Health](https://phpackages.com/badges/jezzdk-statamic-google-maps/health.svg)](https://phpackages.com/packages/jezzdk-statamic-google-maps)
```

###  Alternatives

[statamic/ssg

Generate static sites with Statamic.

254302.4k](/packages/statamic-ssg)[statamic/seo-pro

65440.7k](/packages/statamic-seo-pro)[jacksleight/statamic-bard-texstyle

17172.5k](/packages/jacksleight-statamic-bard-texstyle)[visuellverstehen/statamic-classify

A useful helper to add CSS classes to all HTML tags generated by the bard editor.

20116.8k](/packages/visuellverstehen-statamic-classify)[marcorieser/statamic-livewire

A Laravel Livewire integration for Statamic.

2381.5k10](/packages/marcorieser-statamic-livewire)[withcandour/aardvark-seo

Save time and get your Statamic site to rank better with the SEO addon for Statamic.

13128.3k](/packages/withcandour-aardvark-seo)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
