04.02.2013 Views

MapInfo Spatial Server Map Tiling Service - Product Documentation ...

MapInfo Spatial Server Map Tiling Service - Product Documentation ...

MapInfo Spatial Server Map Tiling Service - Product Documentation ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VirtualPixelCoordinate<br />

Field Name<br />

column<br />

Example<br />

{<br />

}<br />

"row": 1,<br />

"column": 8<br />

VirtualPixelCoordinate<br />

44<br />

Type<br />

Integer<br />

Description<br />

The column number of the map tile. Column numbering<br />

starts at the top, at number 1.<br />

A VirtualPixelCoordinate object contains the x and y coordinates of a pixel in the virtual pixel space of<br />

the entire map image.<br />

Note: Do not confuse coordinates in the virtual pixel space of the entire map image with normal screen<br />

pixel coordinates. Normal screen pixel coordinates always start with (0, 0) at the top left corner<br />

of the screen, regardless of what section of the entire map image is currently displayed in the<br />

screen. In contrast, the virtual pixel space of the map image is constant at any particular zoom<br />

level, regardless of what part of the map is currently displayed in the screen. So, for example, if<br />

a map image is set to zoom level 3, the map image is composed of 4 tiles across and 4 tiles<br />

down. If each tile has dimensions of 512 by 256 pixels, then the dimensions of the entire map<br />

image are 2048 by 1024 pixels. This is referred to as the virtual pixel space of the map image,<br />

because only a subsection of the entire image may be displayed in the screen at any one time.<br />

When a VirtualPixelCoordinate object is returned in an EnvinsaResponse JSON object, the VirtualPixel-<br />

Coordinate object is always located in a JSON field named virtualPixelCoord.<br />

Fields<br />

A VirtualPixelCoordinate object contains the following fields:<br />

Field Name<br />

virtualX<br />

virtualY<br />

Example<br />

{<br />

}<br />

"virtualX": 256,<br />

"virtualY": 300<br />

Type<br />

Integer<br />

Integer<br />

Description<br />

The x coordinate of the virtual pixel. The x coordinate<br />

numbering starts at the left edge of the left-most<br />

tile of the map image, at number 0.<br />

The y coordinate of the virtual pixel. The y coordinate<br />

numbering starts at the top edge of the top-most<br />

tile of the map image, at number 0.<br />

<strong><strong>Map</strong>Info</strong> <strong>Spatial</strong> <strong>Server</strong> 1.0

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!