PHPackages                             anvildevxyz/craft-cartograph - 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. anvildevxyz/craft-cartograph

ActiveCraft-plugin[Utility &amp; Helpers](/categories/utility)

anvildevxyz/craft-cartograph
============================

Craft CMS map field foundation using OpenFreeMap vector tiles and MapLibre GL JS.

1.0.0(2mo ago)00proprietaryPHPPHP ^8.2CI passing

Since May 12Pushed 3w agoCompare

[ Source](https://github.com/anvildevxyz/craft-cartograph)[ Packagist](https://packagist.org/packages/anvildevxyz/craft-cartograph)[ Docs](https://github.com/anvildevxyz/craft-cartograph)[ RSS](/packages/anvildevxyz-craft-cartograph/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Cartograph
==========

[](#cartograph)

Map fields for **Craft 5** using **[OpenFreeMap](https://openfreemap.org/)**-compatible styles and **[MapLibre GL JS](https://maplibre.org/maplibre-gl-js/docs/)**. No API keys.

Requirements
------------

[](#requirements)

Craft **5.x**, PHP **8.2+**, **MySQL ≥ 8.0.17** / MariaDB (same check) or **PostgreSQL ≥ 13** (proximity needs JSON support in `elements_sites.content`).

Install
-------

[](#install)

```
composer require anvildevxyz/craft-cartograph
./craft plugin/install cartograph
```

For a **path / Git** package, add a Composer `repositories` entry in your Craft project, then `composer require` as usual.

Usage
-----

[](#usage)

Add **Cartograph · Map Point** or **Map GeoJSON** under **Settings → Fields**, attach to an entry type, then in templates:

```
{% include 'cartograph/map' with {
  height: '420px',
  geojson: craft.cartograph.pointFeature(entry.venueMap ?? null),
} %}
```

**Map GeoJSON** (FeatureCollection or normalizable geometry):

```
{% include 'cartograph/map' with {
  geojson: craft.cartograph.featureCollection(entry.routes ?? null),
} %}
```

**Embed preset** (`default`, `compact`, `hero`): `{% include 'cartograph/map-embed' with { preset: 'compact', geojson: … } %}`. **Many entries → one map:** `craft.cartograph.mergeMapPoints(entries, ['handle'])`.

**Proximity** (anchor `[lat, lng]`):

```
{% set q = craft.cartograph.near(craft.entries.section('venues'), 'venueMap', [47.3769, 8.5417], 5, { orderByDistance: true }) %}
{% for e in q.all() %}{{ e.title }} — {{ e.distance|number_format(1) }} km{% endfor %}
```

**GraphQL:** fields are **JSON strings** (`GeoJSONPoint` / `GeoJSONFeatureCollection`); `JSON.parse` on the client. Use your Map Point **handle** as a filter: `venueMap: { lat, lng, radius, orderByDistance }`. Send `Authorization: Bearer ` and grant the schema **site**, **section**, and **entry type** read access. Endpoint: Craft’s `graphql/api` action (see [Craft GraphQL](https://craftcms.com/docs/5.x/system/graphql.html)).

Plugin and field options: **[docs/SETTINGS.md](docs/SETTINGS.md)**. PHP/JS hooks: **[docs/EXTENSIONS.md](docs/EXTENSIONS.md)**.

Self-hosted MapLibre
--------------------

[](#self-hosted-maplibre)

Default: MapLibre **4.7.1** from jsDelivr (SRI). To self-host, copy `maplibre-gl.js` / `.css` from the same version to your origin and set **Self-hosted MapLibre asset base** in plugin settings (folder URL, no trailing slash).

Multisite
---------

[](#multisite)

Geometry is **not localized** per site row. For per-site locations use separate fields or structures.

License
-------

[](#license)

See [LICENSE.md](LICENSE.md).

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance91

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.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

Unknown

Total

1

Last Release

73d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/14887bb1919bab144c90ac942f29dbf70f1815401409812191a6a87a871cea2f?d=identicon)[anvildevxyz](/maintainers/anvildevxyz)

---

Top Contributors

[![fabianhaef](https://avatars.githubusercontent.com/u/55360588?v=4)](https://github.com/fabianhaef "fabianhaef (2 commits)")[![anvildevxyz](https://avatars.githubusercontent.com/u/263022857?v=4)](https://github.com/anvildevxyz "anvildevxyz (1 commits)")

---

Tags

mapcmsgeoCraftcraftcmsOpenStreetMapmaplibreopenfreemap

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/anvildevxyz-craft-cartograph/health.svg)

```
[![Health](https://phpackages.com/badges/anvildevxyz-craft-cartograph/health.svg)](https://phpackages.com/packages/anvildevxyz-craft-cartograph)
```

###  Alternatives

[craftcms/feed-me

Import content from XML, RSS, CSV or JSON feeds into entries, categories, Craft Commerce products, and more.

293952.6k34](/packages/craftcms-feed-me)[verbb/formie

The most user-friendly forms plugin for Craft.

101393.6k74](/packages/verbb-formie)[verbb/comments

Add comments to your site.

13753.9k1](/packages/verbb-comments)[verbb/navigation

Create navigation menus for your site.

92705.0k19](/packages/verbb-navigation)[verbb/vizy

A flexible visual editor field for Craft.

4250.4k](/packages/verbb-vizy)[verbb/hyper

A user-friendly links field for Craft.

24147.8k12](/packages/verbb-hyper)

PHPackages © 2026

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