github maplibre/martin v0.18.0

14 months ago

Important

A discussion is underway on what features or changes are needed before we consider a 1.0 release. If you have thoughts, suggestions, or feature requests, please join the conversation and help guide the future of Martin.

What's Changed

Metrics

We have added an metrics endpoint. 🎉
Due to issues with content encoding, the metrics are at /_/metrics instead of the more common /metrics

We currently publish the following metrics:

  • martin_http_requests_duration_seconds HTTP request duration in seconds for all requests => Response time histogram
  • martin_http_requests_total Total number of HTTP requests => Request count

Done by @lefuturiste in #793

Tip

If you have a need/want for more metrics, we would encourage you to open an issue.
We know that these metrics are likely not enough for good monitoring

Adding a frontend

During this Release cycle we spend lots of our effort on building a frontend into Martin.

Important

The frontend is only enabled for the public if you have --webui enable-for-all set.
The default is currently --webui disable.

We plan on either changing this default to be --webui enable-for-localhost or allowing to move the webui, metrics and all other "admin"-features to another port for simpler deployment.

Features:

  • see basic metrics
  • inspect tiles
  • view styles with mapunik as an add-on
  • view sprites
  • view fonts

Screenshots:

Note

🚧 The frontend (like all other features) is not final. 🚧
If you have ideas how Martins frontend could improve YOUR workflow, we would love issues or slack comments.
Pull requests are also more than welcome

Dark mode

ksnip_20250804-213357 ksnip_20250804-200204
ksnip_20250804-200104 ksnip_20250804-200049
ksnip_20250804-200032 image

Light mode

ksnip_20250804-213357 image
image image
image image

Features have been cut from this release:

  • A better integration with mapuntik where styles can be actually edited back to disk without needing to click the download button
  • Fonts being previewable
  • An interactive demo how sdf sprites work

Done by @CommanderStorm in #1909 #1932 #1942 #1955 #1954 #1956 #1953 #1908 #1983 #1980 #1981 #1978 #1964 #1963 #1976 #1957 #1997 #2000 #1999 #2001 #2002 #2003

Bugfixes

  • fix(pg): When there are column comments, it will prompt for duplicate table by @huanglii in #1891

  • fix(pg): handle SRID 4326 bbox tiles spanning over the antimeridian by @todtb in #1910

    Improves tile query bounding box calculation in table_to_query by applying buffer margins correctly for SRID 3857 (already supported) and 4326 (new) .
    For SRID 4326, this uses ST_Expand with degree-based margins to fix antimeridian edge cases.

  • fix(ui): clarify the message of the index file actually is an URL by @CommanderStorm in #1929

  • fix(martin-cp): improve the invalid bbox error message by @CommanderStorm in #1995

Documentation

Maintenance

New Contributors

Don't miss a new martin release

NewReleases is sending notifications on new releases.