What is “mapsources.xml” and how can I modify it?

You will find a file named “mapsources.xml” in your NaviMapper installation directory.

This file describes the online map sources that can be used within NaviMapper/NaviComputer.

You may open this file in a text editor and modify it. You may want to remove MapSource elements that you do not need or add additional map sources by adding MapSource elements.

You can add any mapsource that uses the default tile system as described here.

The following attributes must be entered within a “MapSource”-Tag in the xml:
Copyright(optional): The copyright info.
MinZoom: The lowest available zoomlevel of the map source.
MaxZoom: The highest available zoomlevel of the map source.
TileUrl: The url from where the map tiles are loaded. The placeholder %z, %x and %y are used to specify the tile coordinates.
It is possible to add more than one TileUrl attribute. This way, parallel download from multiple servers is possible.
Note: Due to xml formatting, the character “&” (often used in php urls) must be replaced with “&”

Example:

<?xml version="1.0" encoding="utf-8" ?>
<root>
<Proxy Address=""/>
<MapSourceList>
...
<MapSource ID="FreemapSlovakia>
<Copyright>freemap.sk</Copyright>
<MinZoom>1</MinZoom>
<MaxZoom>17</MaxZoom>
<TileUrl>http://www.freemap.sk/layers/allinone/?/BN/%z/%x/%y.png</TileUrl>
</MapSource>
...
</MapSourceList>
</root>

Tip: Finding out the tile url of an online map source is really easy. Simply browse the map online and use a tool like the firefox addon HttpFox to see from which url the tiles are loaded.

 

Please click here if this helped you.
64 people found this helpful.


Category: NaviMapper

← Frequently Asked Questions

7 Comments

  1. Thank you for application!
    working url for russian users – для карт генштаба:

    http://maps.marshruty.ru/ml.ashx?al=1&i=1&x=%x&y=%y&z=%z

    • Det er da et super hyggeligt & lidt anderledes indlæg, & nej, det behøver bestemt ikke være fashion all over Studsede godt nok lidt over billedet af dig & HC, for dig genkendte jeg jo med det samme, men skulle lige tænke en gang over, hvem den ældre dame du stÃ¥r sammen med, kunne være… *ups* Køn, ja det er hun, men hun bliver efterhÃ¥nden overstrÃ¥let af smukke, unge stjerner som dig, smukke pige <3HÃ¥ber du nyder sommeren?Klem fra Fie

Leave a Reply

Your email address will not be published.