OkMap forum
OkMap forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 OkMap Forum - English
 General topics, announcements
 Implement new map servers
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

okmap

Italy
2374 Posts

Posted - 19/12/2013 :  09:54:57  Show Profile  Visit okmap's Homepage
Implement new map servers
(from version 10.11.1)

Edit the file:
- C:\Users\<user>\AppData\Roaming\GianPaoloSaliola\OkMap\<version>\defs\MapsServers.xml (Windows 7) or
- C:\Documents and Settings\<user>\Dati applicazioni\GianPaoloSaliola\OkMap\<version>\defs\MapsServers.xml (Windows XP)

Add the following tags inside the tag <mapsServer>:
<name> is the name displayed in the combo box (base maps) or in the list box (layers) of OkMap
<code> is the code to add the layer
<baseLayer> is set to true or false depending on if is a base map or a layer
<covered> is a comment that describes the covered zone
<active> to activate (true) or deactivate (false) the base map or the layer
<default> defines (true) or not (false) the default base map or layers (optional; omit = false)
Example:

<mapsServer>
<name>CycleMap</name>
<code><![CDATA[new OpenLayers.Layer.OSM.CycleMap("CycleMap");]]></code>
<baseLayer>true</baseLayer>
<covered>World</covered>
<active>true</active>
</mapsServer>

It's possible to add one or more sections <head> to insert other scripts.
Example:

<head><![CDATA[<script src="http://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>]]></head>
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
OkMap forum © 2018 OkMap Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.07