Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The tiled map engine is used to support cached map services that provide tiles to the browser to draw the maps, as opposed to generating a complete map image.

...

Code Block
languagexml
titleExample tiled map engine configuration
<?xml version="1.0" encoding="UTF-8"?>

<config xmlns='urn:com.cohga.server.config#1.0' xmlns:tiled="urn:com.cohga.server.map.tiled#1.0">

	<tiled:mapengine id="mapengine.tiled">
		<type>gwc</type>
		<url>http://mapserver/geowebcache/service/wms?TILED=true</url>
		<username>user</username>
		<password>ENCAZEPAMMBZAAUTUPMABFJEBZJAKFCXGME</password>
		<crs>EPSG:3857</crs>
		<format>image/jpeg</format>
		<layer>aerialphoto_2014_10_15</layer>

<!-- retry settings added at 2.6.10 -->
<!-- below are the default values for these settings, so you do not need to add any of these unless you want to change them from these values -->

<!-- should we retry the connection after failure, true is the default so you don't need this unless you want to disable retrying and just immediately fail -->
		<retry>true</retry>

<!-- number of seconds to wait before retrying, 15 is the default so you don't need this unless you want a longer/shorter period -->
		<retryDelayInSeconds>15</retryDelayInSeconds>

<!-- maximum number of retries to attempt before giving up. 0 means continue to retry forever and is the default so you don't need this unless you want to stop retrying after a certain number of failures -->
		<retryCount>0</retryCount>

<!-- number of minutes, from first failure, to retry before giving up. 0 mean there is no timeout and to retry forever and this is the default so you don't need this unless you want to stop retrying after a certain number of minutes -->
		<retryTimeoutInMinutes>0</retryTimeoutInMinutes>

	</tiled:mapengine>
 
</config>

...

Info
titleGoogle Maps Tiles

Full list of Google Maps Tile resolutions is:

156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135, 0.29858214169740677, 0.14929107084870338, 0.07464553542435169, 0.037322767712175846, 0.018661383856087923, 0.009330691928043961, 0.004665345964021981, 0.0023326729820109904, 0.0011663364910054952