Menu

error in loading OpenTopoMap source

2026-09-11
2026-09-11
  • Antonio Valanzano

    I have added the following "opentopomap.xml" file to the folder mapsources

    <custommapsource>
    <name>OpenTopoMap</name>
    <minzoom>0</minzoom>
    <maxzoom>17</maxzoom>
    <tiletype>png</tiletype>
    <tileupdate>None</tileupdate>
    <url>https://opentopomap.org{$z}/{$x}/{$y}.png</url>
    <backgroundcolor>0#FFFFFF</backgroundcolor>
    </custommapsource>
    but when I start MOBAC I receive an error saying that the file is malformed (see attachment).

    Does someone know how to solve this problem?

    Thanks in advance
    Antonio Valanzano

     
    • r_x

      r_x - 2026-09-11

      Looking at the XML I spot multiple errors:

      1. xml is case sensitive, your xml file uses lower-case tags only that is wrong.
      2. background color has to start with a ' #'
      3. the url is invalid as the there is so separator between .org and {z} that will never work.

      Please re-check the example custom map sources and the tag description https://sourceforge.net/p/mobac/wiki/Custom%20XML%20Map%20Sources/

       
  • Nicolas PAOUR

    Nicolas PAOUR - 2026-09-11

    And in XML

    <?xml version="1.0" encoding="UTF-8"?> 
    <customMapSource>
        <name>"Monde, OpenTopoMap XML cartes de randonnées-Z(17)"</name>
        <tileType>png</tileType>
        <minZoom>5</minZoom>
        <maxZoom>17</maxZoom>
        <url>
            https://{$serverpart}.tile.opentopomap.org/{$z}/{$x}/{$y}.png
        </url>
        <tileUpdate>None</tileUpdate>
        <backgroundColor>#00000000</backgroundColor>
        <ignoreErrors>false</ignoreErrors>
        <serverParts>a b c</serverParts>
    </customMapSource>
    
     

    Last edit: Nicolas PAOUR 2026-09-11

Log in to post a comment.