Pitney Bowes MapXtreme User Manual

Page 96

Advertising
background image

Chapter 5: Web Applications, Controls, and Tools

MapXtreme Tile Handler

MapXtreme v7.1

96

Developer Guide

"Map2Alias",
"Map3Alias"

]

}

4. Using the listed map names from step 3, request more information about a map using the

following URL format:
http://server/TileServer/{mapname}/description.{ext}
where mapname is the name of the map on the Tile Server to get metadata about. The value is
case-insensitive.
ext is an extension denoting the format of the information returned (current support for JSON
only)
This returns the metadata of a specified map.
{

"numberOfLevels": 20,

"coordSys": "epsg:41001",
"description": "Map of the World",
"name": "World",
"tileWidth": 256,
"tileHeight": 256,
"bounds": {

"minX": -3.756380109844111E7,
"minY": -4.497601034176671E7,
"maxX": 3.773376466605809E7,
"maxY": 4.49763662218225E7

}
"outputTypes":
[

"png"

]
}

5. With information collected from steps 3 and 4, request the map by providing all the necessary

arguments in the URL (explained below):
http://server/webapp/TileServer/{mapname}/{level}/{x;y}/tile.{ext}
For example:
http://<server>/<mywebapp>/TileServer/WorldOverlay/3/0;0/tile.png
This will request the upper left tile of a WorldOverlay map consisting of 64 tiles.

The arguments are explained in the table below.

Argument

Description

server

Your web server

webapp

The name of the web application running on the
server.

Advertising