Title: Tiles Proxy for OpenStreetMap
Author: Adrian Mörchen
Published: <strong>2 ខែ​កក្កដា, 2018</strong>
Last modified: 27 ខែ​មីនា, 2026

---

ស្វែងរក កម្មវិធីបន្ថែម

![](https://ps.w.org/osm-tiles-proxy/assets/banner-772x250.png?rev=3492476)

![](https://ps.w.org/osm-tiles-proxy/assets/icon-256x256.png?rev=3492476)

# Tiles Proxy for OpenStreetMap

 By [Adrian Mörchen](https://profiles.wordpress.org/adrian2k7/)

[Download](https://downloads.wordpress.org/plugin/osm-tiles-proxy.2.4.0.zip)

 * [Details](https://km.wordpress.org/plugins/osm-tiles-proxy/#description)
 * [Reviews](https://km.wordpress.org/plugins/osm-tiles-proxy/#reviews)
 * [Development](https://km.wordpress.org/plugins/osm-tiles-proxy/#developers)

 [Support](https://wordpress.org/support/plugin/osm-tiles-proxy/)

## Description

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](https://sachsen.tours)

**Contribute**: [https://github.com/moewe-io/osm-tiles-proxy](https://github.com/moewe-io/osm-tiles-proxy)

**Known to work with these plugins**

 * [Leaflet Map](https://de.wordpress.org/plugins/leaflet-map/)
 * [Custom Post Type to Map Store](https://wordpress.org/plugins/cpt-to-map-store/)
 * [Geolocation](https://wordpress.org/plugins/geolocation/)
 * Another plugin? Let us [know](https://wordpress.org/support/plugin/osm-tiles-proxy).

**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
 * [[
 * Example usage with [Leaflet Map](https://de.wordpress.org/plugins/leaflet-map/)
 * [[
 * Customizer overview

## FAQ

### Does this work with every plugin?

The plugin must support changing the OpenStreetMap tile server.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Tiles Proxy for OpenStreetMap” is open source software. The following people have
contributed to this plugin.

Contributors

 *   [ Adrian Mörchen ](https://profiles.wordpress.org/adrian2k7/)
 *   [ moewe.io ](https://profiles.wordpress.org/moewe/)
 *   [ Markus Weigelt ](https://profiles.wordpress.org/creabrain/)

“Tiles Proxy for OpenStreetMap” has been translated into 1 locale. Thank you to 
[the translators](https://translate.wordpress.org/projects/wp-plugins/osm-tiles-proxy/contributors)
for their contributions.

[Translate “Tiles Proxy for OpenStreetMap” into your language.](https://translate.wordpress.org/projects/wp-plugins/osm-tiles-proxy)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/osm-tiles-proxy/), 
check out the [SVN repository](https://plugins.svn.wordpress.org/osm-tiles-proxy/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/osm-tiles-proxy/)
by [RSS](https://plugins.trac.wordpress.org/log/osm-tiles-proxy/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.4.0 (2026-03-27)

 * #3 Add option to clear cache
 * #10 Add option to customize osm-tiles-proxy-osm-url
 * Downloaded tiles will be cleared when the cache is cleared in [WP Speed of Light](https://www.joomunited.com/wordpress-products/wp-speed-of-light)
 * Require PHP 8.0, we urge everyone to keep PHP updated
 * Added deployment scripts for Github Actions
 * Fixed some warnings

#### 2.3.2

 * Fixed warning for registering REST route

#### 2.3.1

 * Updated to latest Leaflet.js (1.9.4)

#### 2.3.0

 * The plugin will now automagically overwrite **default** settings for [Leaflet Map](https://de.wordpress.org/plugins/leaflet-map/).

#### 2.2.1

 * Added missing files to SVN, don’t know why there are missing… Why can’t they 
   just support git, like everyone else?

#### 2.2.0

 * Updated to latest Leaflet.js (1.9.3)
    - **Note:** This might be incompatible, if you are still using 1.8.x
 * Registered Leaflet JS and CSS, so it can be enqueued using `wp_enqueue_style('
   leaflet-js')` and `wp_enqueue_script('leaflet-js')`
 * Fixed js/css urls shown in administration

#### 2.1.0

 * Added filters to get URLs for Leaflet and Proxy #5
 * Added constant `OSM_PROXY_DISABLE_CLEAR_CACHE` to disable cache invalidation (
   for WP Rocket and WP Fastest Cache)

#### 2.0.1

 * Fixed the wrong redirect to placeholder on every 404

#### 2.0.0

 * Updated Leaflet.js to 1.6.0
 * Added a new Customizer panel, which allows you to define some restrictions for
   downloaded tiles
 * Require PHP 7.2+, we urge everyone to keep PHP updated and will stick to the 
   official end of security updates for PHP
 * Downloaded tiles will be cleared when “entire cache” is cleared in WP Rocket
 * Downloaded tiles will be cleared when the cache is cleared in WP Fastest Cache

#### 1.3.0

 * Updated leaflet.js to 1.3.4
 * Fix: Use WP_CONTENT_DIR instead of wp_upload_dir()

#### 1.2.0

 * Public release in WordPress repo
 * Disabled REST API by default
 * Added local caching of tiles

#### 1.1.0

 * Added a list of URLs to the plugin overview

#### 1.0.0

 * First release

## មេតា

 *  Version **2.4.0**
 *  Last updated **3 សប្ដាហ៍ មុន**
 *  Active installations **200+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 8.0 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/osm-tiles-proxy/) and [German](https://de.wordpress.org/plugins/osm-tiles-proxy/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/osm-tiles-proxy)
 * Tags
 * [embed](https://km.wordpress.org/plugins/tags/embed/)[GDPR](https://km.wordpress.org/plugins/tags/gdpr/)
   [openstreetmap](https://km.wordpress.org/plugins/tags/openstreetmap/)[proxy](https://km.wordpress.org/plugins/tags/proxy/)
 *  [Advanced View](https://km.wordpress.org/plugins/osm-tiles-proxy/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/osm-tiles-proxy/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/osm-tiles-proxy/reviews/)

## Contributors

 *   [ Adrian Mörchen ](https://profiles.wordpress.org/adrian2k7/)
 *   [ moewe.io ](https://profiles.wordpress.org/moewe/)
 *   [ Markus Weigelt ](https://profiles.wordpress.org/creabrain/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/osm-tiles-proxy/)

## បរិច្ចាក

Would you like to support the advancement of this plugin?

 [ បរិច្ចាក ទៅឲ្យកម្មវិធីបន្ថែមនេះ ](https://www.paypal.com/paypalme/scrobbleme)