<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://mobac.sourceforge.net/wiki/index.php?action=history&amp;feed=atom&amp;title=MapEvaluator</id>
		<title>MapEvaluator - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://mobac.sourceforge.net/wiki/index.php?action=history&amp;feed=atom&amp;title=MapEvaluator"/>
		<link rel="alternate" type="text/html" href="http://mobac.sourceforge.net/wiki/index.php?title=MapEvaluator&amp;action=history"/>
		<updated>2026-04-06T05:49:51Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.3</generator>

	<entry>
		<id>http://mobac.sourceforge.net/wiki/index.php?title=MapEvaluator&amp;diff=122&amp;oldid=prev</id>
		<title>R x: /* Example scripts */</title>
		<link rel="alternate" type="text/html" href="http://mobac.sourceforge.net/wiki/index.php?title=MapEvaluator&amp;diff=122&amp;oldid=prev"/>
				<updated>2011-03-12T12:12:44Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Example scripts&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Overview =&lt;br /&gt;
&lt;br /&gt;
This page describes the general use of Map Evaluator. If you are looking for a more detailed description there is a [[Fiddler|step-by-step manual]] showing how to develop a map source using and Map Evaluator and [[Fiddler]] (free, Windows .Net program). &lt;br /&gt;
&lt;br /&gt;
= MOBAC Map Evaluator =&lt;br /&gt;
&lt;br /&gt;
This program allows users to test and develop new map sources.&lt;br /&gt;
&lt;br /&gt;
The latest version of Map Evaluator can be found in the [https://sourceforge.net/projects/mobac/files/Map%20Evaluator files section] here on SourceForge.&lt;br /&gt;
&lt;br /&gt;
Map Evaluator can be started usually by double clicking the file &amp;#039;&amp;#039;&amp;#039;Map Evaluator.jar&amp;#039;&amp;#039;&amp;#039;. If that does not work you can start Map Evaluator via the following command line: &amp;lt;pre&amp;gt;java -jar &amp;quot;Map Evaluator.jar&amp;quot;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[File:MapEvaluator.png|300px|thumb|right|Screenshot of TAC Map Evaluator]]&lt;br /&gt;
&lt;br /&gt;
With only little knowledge about programming (no Java Development Kit required!) this program allows to interactively develop map sources that a more complex that the custom map format allows. Usage is pretty simple: &lt;br /&gt;
&lt;br /&gt;
Modify the code and press the &amp;quot;Execute code&amp;quot; button. If it does not work you can switch back to &amp;quot;Google Maps&amp;quot; or &amp;quot;OSM&amp;quot;. &lt;br /&gt;
If you use the reset button you can switch start new based on one of the three built in templates (OSM, Yahoo, Microsoft Bing). They show how a more complex example can look alike. &lt;br /&gt;
&lt;br /&gt;
The tool is in an early alpha stage but it may be already useful for some people therefore I am publishing it. Any user feedback about the program is welcome.&lt;br /&gt;
&lt;br /&gt;
== What Map Evaluator is not ==&lt;br /&gt;
&lt;br /&gt;
Map Evaluator is closely related to the Mobile Atlas Creator (MOBAC) application but the developed map scripts from Map Evaluator can not be directly used in MOBAC. &lt;br /&gt;
The only way to get a Map Evaluator map script into MABAC is to transform the script into a real Java source code MapSource instance which can be added to the MOBAC source code and then compiled into a new revision of MOBAC. This requires to download MOBAC source code files (best from [https://sourceforge.net/scm/?type=svn&amp;amp;group_id=238075 project SVN]), modify the map sources implementation and finally compile everything (requires Java compiler as it is included in the [http://en.wikipedia.org/wiki/Java_Development_Kit Java Developmenkt Kit (JDK)])&lt;br /&gt;
&lt;br /&gt;
== How to develop a map source ==&lt;br /&gt;
&lt;br /&gt;
=== Trace the existing online map browser ===&lt;br /&gt;
&lt;br /&gt;
The first step on developing a new map source is to find out which URLs are used by the existing website presenting the map.&lt;br /&gt;
&lt;br /&gt;
This can be done for example by using a local proxy such as [http://www.fiddler2.com/ Fiddler (.Net)], [http://portswigger.net/suite/ Burp Suite (Java)], [http://www.owasp.org/index.php/Category:OWASP_WebScarab_Project WebScarab (Java)]. Alternatively you can use the Firefox addon [https://addons.mozilla.org/de/firefox/addon/1843/ FireBug] together with [https://addons.mozilla.org/en-US/firefox/addon/6683/ FireCookie] (optional).&lt;br /&gt;
&lt;br /&gt;
For [[Fiddler]] there is a detailed [[Fiddler|step-by-step manual]] that shows how to grab the improtant map tile image URLs.&lt;br /&gt;
&lt;br /&gt;
=== Check the tile image properties ===&lt;br /&gt;
&lt;br /&gt;
Copy open one of the gathered URLs into your browser&amp;#039;s address bar and load the image.&lt;br /&gt;
Only square tiles are supported. Ideally the tile size is 256x256 pixel.&lt;br /&gt;
...&lt;br /&gt;
&lt;br /&gt;
=== Examine the gathered URLs ===&lt;br /&gt;
&lt;br /&gt;
Next step is to identify how the x and y position on the map is encoded in the tile image URL. &lt;br /&gt;
&lt;br /&gt;
[[File:OSMWorldMap.png|300px|thumb|right|World map example of 4 tiles with marked center]]&lt;br /&gt;
Usually there is an x and an y number identifying the tile images in each zoom layer (denoted by the variable z). The origin (x=0, y=0) is on most maps the &amp;quot;upper left corner&amp;quot; - respectively the point where the date border meets the north pole. Therefore the &amp;quot;center&amp;quot; of the map is where the Greenwich Meridian (red line in the image on the right) crosses the equator (blue line).&lt;br /&gt;
&lt;br /&gt;
Therefore in MOBAC the following equations should be true for x, y and z:&lt;br /&gt;
&lt;br /&gt;
* Zoom level 0 shows the world as one tile (2&amp;lt;sup&amp;gt;0&amp;lt;/sup&amp;gt;) of size 256x256&lt;br /&gt;
* The x and y coordinates on each zoom level should be within the range of 0 and 2&amp;lt;sup&amp;gt;z&amp;lt;/sup&amp;gt; or mathematical [0..2&amp;lt;sup&amp;gt;z&amp;lt;/sup&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
For more details about the map format see also the OpenStreetMap wiki topics [http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames Slippy map tilenames], [http://wiki.openstreetmap.org/wiki/Mercator Mercator], [http://wiki.openstreetmap.org/wiki/Height_and_width_of_a_map Height and width] and [http://wiki.openstreetmap.org/wiki/Zoom_levels Zoom levels]&lt;br /&gt;
&lt;br /&gt;
Additionally there is often a small number in the server name for some load-balancing the downloads across different servers. For testing a map source you most map sources allow it to be static (just use one number and stick to it).&lt;br /&gt;
&lt;br /&gt;
=== ... ===&lt;br /&gt;
&lt;br /&gt;
=== Testing ===&lt;br /&gt;
&lt;br /&gt;
=== Calibration ===&lt;br /&gt;
&lt;br /&gt;
Currently Map Evaluator does not provide the necessary function for calibrate a map. If the map uses different zoom levels that those used by Google and OpenStreetmap the map can not be used.&lt;br /&gt;
&lt;br /&gt;
Therefore test your code: Switching between different map sources (developed map source &amp;lt;-&amp;gt; Google) should only result in displaying the same map region using the different map sources. There must not be a relocation of roads and cities on the map when switching to/from your developed map source to Google. If for example a city is &amp;quot;bouncing&amp;quot; when changing the map source the developed map source can not be used at the moment with MOBAC.&lt;br /&gt;
&lt;br /&gt;
=== Including the developed map source into MOBAC ===&lt;br /&gt;
&lt;br /&gt;
If you managed the steps above and the map is correctly calibrated you can submit your newly developed map source in form of a [https://sourceforge.net/tracker/?group_id=238075&amp;amp;atid=1105497 MOBAC feature request]. Make sure to include the developed map source code into the feature request. If the code is correct, working and interesting for other MOBAc users as well it will be included into the next release.&lt;br /&gt;
&lt;br /&gt;
== [[BeanShellMapSources|Example scripts]] ==&lt;/div&gt;</summary>
		<author><name>R x</name></author>	</entry>

	</feed>