BACK TO DIRECTORY

Tiles Proxy for OpenStreetMap

by Adrian Mörchen

0.0
(0 ratings)

Tiles Proxy for OpenStreetMap provides a basic proxy, which allows other OpenStreetMap plugins to load map tiles from your server instead from OpenStreetMap servers.

Sponsor: sachsen.tours

Contribute: https://github.com/moewe-io/osm-tiles-proxy

Known to work with these plugins

Notes

  • Beware: Depending on your map and the tiles you need, a lot of storage is needed.
  • Might be slower than official servers (depends on your server)
  • First requests might be slow as map tiles are cached on request

Filters

You can use filters to get the URLs from the plugin:

  $proxy_cached_url   = apply_filters( 'osm_tiles_proxy_get_proxy_url', $proxy_cached_url );
  $proxy_rest_api_url = apply_filters( 'osm_tiles_proxy_get_proxy_rest_url', $proxy_rest_api_url );
  $leadlet_js_url     = apply_filters( 'osm_tiles_proxy_get_leaflet_js_url', $leadlet_js_url );
  $leadlet_css_url    = apply_filters( 'osm_tiles_proxy_get_leaflet_css_url', $leadlet_css_url );

Constants

To disable cache invalidation when WP Rocket or WP Fastest Cache invalidate their cache, you can set the following constant in your wp-config.php

define( 'OSM_PROXY_DISABLE_CLEAR_CACHE', true );

Screenshots

Needed URLs are shown in the plugins overview

Needed URLs are shown in the plugins overview

Example usage with Leaflet Map

Example usage with Leaflet Map

Customizer overview

Customizer overview

Plugin Details

Active Installs
200
Total Downloads
6,237
Version
2.4.0
Requires WP
6.0
Requires PHP
8.0
Tested Up To
7.0.4
Added
2018-07-02
Last Updated
2026-03-27 9:02am GMT

Ratings

5
0
4
0
3
0
2
0
1
0