# Feature preview hack: Custom Map provider tiles

**URL:** <https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411>\
**Category:** Help\
**Tags:** hacks\
**Created:** [August 27, 2021, 6:31pm UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411 "2021-08-27T18:31:15Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![GeorgeWilmes](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@GeorgeWilmes](https://gramps.discourse.group/u/GeorgeWilmes)\
**Post date:** [August 27, 2021, 6:31pm UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/1 "2021-08-27T18:31:15Z")

</div>

> [@What patches are 'vital' to your use of Gramps 5.1.x?](https://gramps.discourse.group/t/what-patches-are-vital-to-your-use-of-gramps-5-1-x/1744/1):
>
> ➤[Add custom map tile provider](https://github.com/gramps-project/gramps/pull/976)

I can’t say it’s “vital” to me (since I didn’t even know about it until reading your post), but now I’ve invested a number of hours trying to get it to work. Can you (or anyone else who is already using it) please share what you used in your configuration?

I have some tiles (256x256 pixel png) that I created using MapTiler desktop (a 1916 map of Ops Township, Victoria County, Ontario). I also have MapTiler server running locally. It gives me a sample format “[http://localhost:3650/Ops%201916/{z}/{x}/{y}](http://localhost:3650/Ops%201916/%7Bz%7D/%7Bx%7D/%7By%7D)”, which works in my browser when I plug in appropriate values for {z}, {x}, and {y}.

So, based on the examples given in the configuration screes (such as “[http://tile.stamen.com/toner/#Z/#X/#Y.png](http://tile.stamen.com/toner/#Z/#X/#Y.png)”), I tried entering “[http://localhost:3650/Ops%201916/#Z/#X/#Y.png](http://localhost:3650/Ops%201916/#Z/#X/#Y.png)” but that didn’t work; Gramps hangs when I switch to the personal map (I was already zoomed in to an area that is covered by the map). I also tried just pointing to the local tile folders (using “file:///…”, which also works in my browser) but that didn’t work either.

Sorry to be dense, but I could use a clue or two!

I’m also wondering if anyone has successfully used any other online sources and can share examples (besides the ones given in the configuration screen).

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [September 1, 2021, 12:04pm UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/2 "2021-09-01T12:04:29Z")

</div>

> [@GeorgeWilmes](#):
>
> I have some tiles (256x256 pixel png) that I created using MapTiler desktop (a 1916 map of Ops Township, Victoria County, Ontario). I also have MapTiler server running locally. It gives me a sample format “[http://localhost:3650/Ops%201916/{z}/{x}/{y}](http://localhost:3650/Ops%201916/%7Bz%7D/%7Bx%7D/%7By%7D)”, which works in my browser when I plug in appropriate values for {z}, {x}, and {y}.

Does {y} contains .png ? If no, why do you add it in gramps ?  
In this case, the gramps url shouldn’t contains “.png” after #Y.

---

<div class="post-metadata">

**Author:** ![GeorgeWilmes](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@GeorgeWilmes](https://gramps.discourse.group/u/GeorgeWilmes)\
**Post date:** [September 2, 2021, 12:58am UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/3 "2021-09-02T00:58:36Z")

</div>

Thank you for the suggestion, but it did not work. I’m sure I must be doing something wrong, but I don’t see any error messages, so I just have to keep guessing. Should I post more questions in the issue ([11416](https://gramps-project.org/bugs/view.php?id=11416)) instead of here?

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [September 2, 2021, 6:55am UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/4 "2021-09-02T06:55:31Z")

</div>

> [@GeorgeWilmes](#):
>
> Should I post more questions in the issue ([11416](https://gramps-project.org/bugs/view.php?id=11416)) instead of here?

This feature request is closed. You can open a new bug request.  
Normally, this feature is only in master (5.2) and not in 5.1.4.

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [September 4, 2021, 6:36am UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/5 "2021-09-04T06:36:32Z")

</div>

> [@What patches are 'vital' to your use of Gramps 5.1.x?](https://gramps.discourse.group/t/what-patches-are-vital-to-your-use-of-gramps-5-1-x/1744/22):
>
> Thank you @SNoiraud, I will wait for 5.2. As I mentioned earlier, it is not a “vital patch” for me, I was just curious to try it.

I am curious to test what you have done as I have never tested that.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [September 5, 2021, 12:51am UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/6 "2021-09-05T00:51:22Z")

</div>

You can trade such info via the Discourse private messaging system too… if you want to keep them private.

Also, you might want to note a Place (& GPS coordinates) that falls on your custom map tiles. The locations can be reverse calculated from the tiles, of course. But let’s save that effort.

---

<div class="post-metadata">

**Author:** ![SNoiraud](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/snoiraud/32/72_2.png) [@SNoiraud](https://gramps.discourse.group/u/SNoiraud)\
**Post date:** [September 9, 2021, 11:43am UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/7 "2021-09-09T11:43:09Z")

</div>

> [@GeorgeWilmes](#):
>
> It gives me a sample format “[http://localhost:3650/Ops%201916/{z}/{x}/{y}](http://localhost:3650/Ops%201916/%7Bz%7D/%7Bx%7D/%7By%7D)”

Your tile path should be:  
[http://localhost:3650/Ops%201916/MapTiler/#Z/#X/#Y.png](http://localhost:3650/Ops%201916/MapTiler/#Z/#X/#Y.png)

I installed your zip on my root web site and I use:  
https : [//noiraud.allowed.org/MapTiler/#Z/#X/#Y.png](https://noiraud.allowed.org/MapTiler/#Z/#X/#Y.png)

---

<div class="post-metadata">

**Author:** ![GeorgeWilmes](https://avatars.discourse-cdn.com/v4/letter/g/c57346/32.png) [@GeorgeWilmes](https://gramps.discourse.group/u/GeorgeWilmes)\
**Post date:** [September 5, 2021, 12:34am UTC](https://gramps.discourse.group/t/feature-preview-hack-custom-map-provider-tiles/3411/8 "2021-09-05T00:34:45Z")

</div>

> [@SNoiraud](#):
>
> I am curious to test what you have done as I have never tested that.

[Here](https://drive.google.com/file/d/1AJZZyxA3Rk5nqC9svF9A3DLCbZJOx5Ms/view?usp=sharing) is a zip file containing my sample tiles, and some html that MapTiler created for viewing them with various map services. You don’t need MapTiler installed in order to use these files.

Please let me know when you have downloaded the file, so that I may delete it. Thanks.
