Title: Custom background image
Last modified: August 20, 2016

---

# Custom background image

 *  Resolved [fiero_alleaten](https://wordpress.org/support/users/fiero_alleaten/)
 * (@fiero_alleaten)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/custom-background-image/)
 * Hi everybody, i have a probably silly and stupid question, but I don’t know how
   to handle it. I’d like to create a custom fantasy map, with a custom background
   and editable markers just like Google Maps. I had this insane idea on this website:
   [http://www.obsidianportal.com/campaigns/60326/maps/35830](http://www.obsidianportal.com/campaigns/60326/maps/35830)
   which allows to create such maps. I was wondering if I could do the same with
   this plugin, or at least somebody of you could suggest me a way to get this effect.
 * [http://wordpress.org/extend/plugins/leaflet-maps-marker/](http://wordpress.org/extend/plugins/leaflet-maps-marker/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/custom-background-image/#post-3185602)
 * Hi,
    I havent tried it by myself, but I think Mapbox.com supports custom images
   as basemaps. You could create an account there, create your basemap there and
   then add the map to your wordpress plugin instance (can be configured in settings/
   map defaults). regards, Robert
 * PS: as I give support for free, I’d appreciate your review at [http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker](http://wordpress.org/support/view/plugin-reviews/leaflet-maps-marker)
   😉
 *  Thread Starter [fiero_alleaten](https://wordpress.org/support/users/fiero_alleaten/)
 * (@fiero_alleaten)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/custom-background-image/#post-3185615)
 * Hi Robert, thanks for your super fast answer. I’m going to rate your plugin as
   soon as possible. Unfortunately mapbox allows to upload mbtiles files only 🙁
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/custom-background-image/#post-3185617)
 * you’re welcome 🙂
    I am sure there is a way to convert an image to a basemap –
   try searching leaflet-forum at leafletjs.com for example (and please let me know
   if you find something) If you found something, you can add custom basemap for
   example, which has more available options (like “enable continuous world” which
   is for indoor maps or images for example). regards, Robert
 *  Thread Starter [fiero_alleaten](https://wordpress.org/support/users/fiero_alleaten/)
 * (@fiero_alleaten)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/custom-background-image/#post-3185638)
 * Hey Robert, I made it, tomorrow i will write down what I have done. I just have
   to fix some little visualization issues but my map is there 🙂
 *  Thread Starter [fiero_alleaten](https://wordpress.org/support/users/fiero_alleaten/)
 * (@fiero_alleaten)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/custom-background-image/#post-3185663)
 * Ok, I asked the same thing on leaflet forum as you suggested, they had beautiful
   examples on how to build such maps, even if they use ImageOverlay class which
   I think not yet supported by this plugin ([https://groups.google.com/forum/#!topic/leaflet-js/EQy6J5wE3Dw](https://groups.google.com/forum/#!topic/leaflet-js/EQy6J5wE3Dw))
 * So I found a very good app called MapTiler. It basically can generate basemap
   and layers for almost any kind of map, even if you need an API key to make it
   work with google or yahoo. But i didn’t need all that stuff (if you want to know
   more about that app I suggest you to test it because it has been a perfect companion
   for your plugin for me), so I created a simple raster map with no geolocalization.
   The output it generated is a directory tree (Zoom-level/X/Y) and a simple html
   file to navigate it. I uploaded the whole folder to my wordpress website and 
   I changed a custom basemap URL of your plugin to the folder {z}/{x}/{y}.png (
   I omitted the {s} tag, I don’t know if I made a mistake). Then i set tms to true
   and… that’s all…
 * Now… the map I uploaded is very small compared to the original map, so I should
   find a way to avoid all those “Map not found” tiles around my basemap, and avoid
   navigation outside the map… but it works 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Custom background image’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [fiero_alleaten](https://wordpress.org/support/users/fiero_alleaten/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/custom-background-image/#post-3185663)
 * Status: resolved