Web link extension file

From OpenStreetMap Wiki
Jump to: navigation, search

Web Link Extensions for use with MapSource are defined by XML files with the custom file extension (*.wlx). Users familiar with XML can create these files themselves. Anyone can download these files and install them in MapSource. An example file to open the corresponding map in OSM is listed below; copy the code and save it as a textfile named openstreetmap.wlx (set the text encoding to UTF-8 when you save it)

To install the file in MapSource:

  • Select Edit > Preferences > Web Links.
  • Click Add Web Link.
  • Browse to the file openstreetmap.wlx and click Open. The Web Link will then get installed.

Note: the tokens under displayName still need localization

<?xml version="1.0" encoding="UTF-8"?>
<weblink xmlns="http://www.garmin.com/xmlschemas/WebLinkExtensions/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.garmin.com/xmlschemas/WebLinkExtensions/v1
http://www.garmin.com/xmlschemas/WebLinkExtensionsv1.xsd">
	<displayName>
        <token xsi:type="LocalizedLiteral_t">
            <content language="ENU" string="Show map on openstreetmap.org"/>        
            <content language="CHS" string="在 openstreetmap.org 上查找附近的藏宝点m"/>        
            <content language="CHT" string="在 openstreetmap.org 搜尋附近的快取"/>        
            <content language="CSY" string="Najít blízko uložené schránky cache na webových stránkách openstreetmap.org"/>
            <content language="DAN" string="Find gemmesteder i nærheden på openstreetmap.org"/>        
            <content language="DEU" string="Karte auf openstreetmap.org öffnen"/>        
            <content language="ELL" string="Εύρεση κοντινών κρυπτών στην τοποθεσία openstreetmap.org"/>        
            <content language="ESP" string="Encontrar cachés cercanos en openstreetmap.org"/>        
            <content language="FIN" string="Etsi läheisiä geokätköjä osoitteessa openstreetmap.org"/>        
            <content language="FRA" string="Rechercher les trésors cachés à proximité sur openstreetmap.org"/>        
            <content language="HRV" string="Pronađite spremnike koji se nalaze u vašoj blizini na web-stranici openstreetmap.org"/>        
            <content language="HUN" string="Keressen közeli helyeket a openstreetmap.org webhelyen"/>        
            <content language="ITA" string="Trova cache vicine su openstreetmap.org"/>        
            <content language="JPN" string="openstreetmap.orgで近くのキャッシュを検索"/>        
            <content language="KOR" string="openstreetmap.org에서 근처의 보물 찾기 "/>        
            <content language="NLD" string="Toon kaart op openstreetmap.org"/>        
            <content language="NOR" string="Finn turbokser nær deg på openstreetmap.org"/>        
            <content language="PLK" string="Znajdź pobliskie kryjówki na stronie openstreetmap.org"/>        
            <content language="PTG" string="Encontrar openstreetmap Próximas em openstreetmap.org"/>        
            <content language="RUS" string="Поиск ближайших тайников на openstreetmap.org"/>        
            <content language="SKY" string="Vyhľadať najbližšiu skrýšu pre hru GeoCache na lokalite openstreetmap.org"/>        
            <content language="SLV" string="Najdi bližnje predpomnilnike na openstreetmap.org"/>        
            <content language="SVE" string="Sök närliggande cache-punkter på openstreetmap.org"/>        
            <content language="TRK" string="openstreetmap.org'daki harita aç"/>        
	</token>
	</displayName>
	<wlxNamespace>www.garmin.com/xmlschemas/WebLinkExtensions/openstreetmap.org</wlxNamespace>
	<version>2</version>
	<supportedLanguages>
		<supportedLanguage>CHS</supportedLanguage>
		<supportedLanguage>CHT</supportedLanguage>
		<supportedLanguage>CSY</supportedLanguage>
		<supportedLanguage>DAN</supportedLanguage>
		<supportedLanguage>DEU</supportedLanguage>
		<supportedLanguage>ELL</supportedLanguage>
		<supportedLanguage>ENU</supportedLanguage>
		<supportedLanguage>ESP</supportedLanguage>
		<supportedLanguage>FIN</supportedLanguage>
		<supportedLanguage>FRA</supportedLanguage>
		<supportedLanguage>HRV</supportedLanguage>
		<supportedLanguage>HUN</supportedLanguage>
		<supportedLanguage>ITA</supportedLanguage>
		<supportedLanguage>JPN</supportedLanguage>
		<supportedLanguage>KOR</supportedLanguage>
		<supportedLanguage>NLD</supportedLanguage>
		<supportedLanguage>NOR</supportedLanguage>
		<supportedLanguage>PLK</supportedLanguage>
		<supportedLanguage>PTG</supportedLanguage>
		<supportedLanguage>RUS</supportedLanguage>
		<supportedLanguage>SKY</supportedLanguage>
		<supportedLanguage>SLV</supportedLanguage>
		<supportedLanguage>SVE</supportedLanguage>
		<supportedLanguage>TRK</supportedLanguage>
	</supportedLanguages>
	<url>
		<token xsi:type="Literal_t" content="http://openstreetmap.org?lat="/>
		<token xsi:type="Value_t" format="LAT_DEFAULT"/>
		<token xsi:type="Literal_t" content="&amp;lon="/>
		<token xsi:type="Value_t" format="LON_DEFAULT"/>
		<token xsi:type="Literal_t" content="&amp;zoom=12"/>
	</url>
</weblink>