1. Home
  2. MapEdit Mobile
  3. How to configure the TileServer

How to configure the TileServer

It is possible to use the main tileserver from MapEdit Desktop for Mobile!
A guideline:
The main tileserver is the MapEdit TileServer.properties where you set the Maps and define the combined maps (if you are using it in MapEdit Mobile!):

.....
#renderer settings
Renderer.1.Type=MapGuide
Renderer.1.URL=http://server/mapguide/mapagent/mapagent.fcgi
Renderer.1.Username=Administrator
Renderer.1.Password=admin

#Mapdefinitions
Renderer.1.Maps.3.Name=TOPO1
Renderer.1.Maps.3.MapDefinition=Library://TOPO/Vorgabe1.MapDefinition
Renderer.1.Maps.3.TileSystem=CustomBing
Renderer.1.Maps.3.RefSysInfoFile=http://server/MumGeoData/RefSysInfo/RefSysInfoSWE_T.xml
Renderer.1.Maps.3.PreRenderZoomLevels=12-22

#Mapdefinitions
Renderer.1.Maps.4.Name=WASSER1
Renderer.1.Maps.4.MapDefinition=Library://SWE_WASSER/Vorgabe1.MapDefinition
Renderer.1.Maps.4.TileSystem=CustomBing
Renderer.1.Maps.4.RefSysInfoFile=http://server/MumGeoData/RefSysInfo/RefSysInfoSWE_T.xml
Renderer.1.Maps.4.PreRenderZoomLevels=12-21


#Mapdefinitions
Renderer.1.Maps.5.Name=WASSER_BEM1
Renderer.1.Maps.5.MapDefinition=Library://WASSER_BEM/WASSER_BEM1.MapDefinition
Renderer.1.Maps.5.TileSystem=CustomBing
Renderer.1.Maps.5.RefSysInfoFile=http://server/MumGeoData/RefSysInfo/RefSysInfoSWE_T.xml
Renderer.1.Maps.5.PreRenderZoomLevels=18-21
Renderer.1.Maps.5.Extents.1.XMin=604727.6091

#combined maps
Renderer.2.Type=Combined
Renderer.2.Maps.200.Name=Mobile_Wasser
Renderer.2.Maps.200.BaseMaps=TOPO1,WASSER1,WASSER_BEM1

And with MapEdit Desktop you can use the TileUpdater funcionality (in a scheduled task) to update the tiles when changes were made.

In MapEdit Mobile you set up a Tile Server for Mobile – to deploy the TileServer.war in Apache Tomcat. It must be the same version for the TileServer MapEdit und ME Mobile!

It is important that the TileServer from MapEdit Mobile is configured via the HTTPS URL:

So you have to define the TileServer.properties for the ME Mobile TileServer like this:

#Configuration file for TileServer MapEdit Mobile

#base path of cache for tiles, use \\ instead of \ (a single backslash is the escape character)
#absolute paths and relative paths (relative to Tomcat directory) are allowed
CacheManager.BasePath=E:\\Mapedit\\tiles

#maximum number of tiles in memory cache
#CacheManager.CacheSize=50000

#number of threads rendering on one server in parallel
Renderer.NumberOfThreads=4
TileServer.Defaults.ValidZoomLevels=12-22

#renderer settings
Renderer.1.Type=TileServer
Renderer.1.URL=http://132.3.10.99:8080/TileServer/TileServlet
#Renderer.1.Password=admin

#combined maps
Renderer.1.Maps.1.Name=Mobile_Wasser
Renderer.1.Maps.1.TileRefreshPeriod=1d

You need to allow to have access the URL from the intern ME TileServer. It is recommended to save the TileServers with a password!
The option *.TileRefreshPeriod for maps to refresh tiles periodically
example: Renderer.1.Maps.1.TileRefreshPeriod=1d
(refreshes tiles of the map after one day)
format: value[unit]
value is made of digits, whitespace between value and unit is allowed.
possible units:
d – days
h – hours
m – minutes
s – seconds
ms – milliseconds (can be omitted, as it is the default)

If you have changes is the TileServer Definition you have to go this way:

1. Reloadconfig the intern MapEdit Desktop TileServer  (http://server:8080/TileServer/TileServlet?command=RELOADCONFIG&password=XYZ)

2. Reloadconfig the extern MapEdit Mobile TileServer   (http://server:8080/TileServer/TileServlet?command=RELOADCONFIG&password=XYZ)

3. Delete the Tiles from MapEdit Mobile TileServer (http://servername:8080/TileServer/TileServlet?clearcache&map=TOPO&password=XYZ)

4. Open Mobile projekt and zoom insite -> new tiles with the new configuration will be create!

Updated on September 23, 2021