[MAP and Overlay] OSM classic with local labels

Started by brotbuexe, May 01, 2012, 16:09:07

0 Members and 1 Guest are viewing this topic.

brotbuexe

OSM have a classic map version without labes, and labels in different languages (if available in the osm data) as layers.

As locus already have the map included, the Tile Usage policy should also apply to this Overlay:  http://wiki.openstreetmap.org/wiki/Tile_usage_policy

The map with id 10501 is the baselayer without the labels. For a list of available language codes: https://toolserver.org/~osm/locale/. Just copy a provider, change the ID to a number that don't already exist, change the url part to the language code you want.

if it does not exist, create a /sdcard/locus/mapsOnline/custom/provider.xml and insert this text:
If it already exist edit it and just insert the <provider*> ... </provider> stuff inside the <providers> ... </providers> xml tags.

<?xml version="1.0"?>
<provider id="10501" type="0" visible="true" required="true" background="-1">
<name>OSM</name>
<mode>Classic without labels</mode>
<area></area>
<url><![CDATA[http://{s}.www.toolserver.org/tiles/osm-no-labels/{z}/{x}/{y}.png]]></url>
<serverPart>a;b;c;d;e;f</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>24</zoomMax>
<tileSize>256</tileSize>
<attribution>OSM without labels come from http://www.toolsserver.org, Terms of Use: https://wiki.openstreetmap.org/wiki/Tile_usage_policy</attribution>
</provider>
<provider id="10502" type="0" visible="true" required="false" background="-1">
<name>OSM - layers</name>
<mode>OSM labels de</mode>
<area></area>
<url><![CDATA[http://{s}.www.toolserver.org/tiles/osm-labels-de/{z}/{x}/{y}.png]]></url>
<serverPart>a;b;c;d;e;f</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>24</zoomMax>
<tileSize>256</tileSize>
<attribution>OSM Labels come from http://www.toolsserver.org, Terms of Use: https://wiki.openstreetmap.org/wiki/Tile_usage_policy</attribution>
</provider>
<provider id="10503" type="0" visible="true" required="false" background="-1">
<name>OSM - layers</name>
<mode>OSM labels en</mode>
<area></area>
<url><![CDATA[http://{s}.www.toolserver.org/tiles/osm-labels-en/{z}/{x}/{y}.png]]></url>
<serverPart>a;b;c;d;e;f</serverPart>
<zoomPart>{z}-8</zoomPart>
<zoomMin>8</zoomMin>
<zoomMax>24</zoomMax>
<tileSize>256</tileSize>
<attribution>OSM Labels come from http://www.toolsserver.org, Terms of Use: https://wiki.openstreetmap.org/wiki/Tile_usage_policy</attribution>
</provider>
</providers>

Now you have a new base map under "OSM" and new maps under "OSM - layers" you can use as overlays in 2.3.X (Main menu / Functions / Map overlays), you can add this function to the right toolbar for quicker use...
  •