# Class: modelit.mapviewer.Tile

### Extends: matlab.mixin.SetGet & handle

## DESCRIPTION:

modelit.mapviewer.Tile constructor

#

## Properties

image | modelit.mapviewer.Tile/image is a property. |
visible | Tile visibility |
x | x index |
y | y index |
zoomlevel | zoomlevel |

# Public Method: Tile

## DESCRIPTION:

modelit.mapviewer.Tile constructor

## CALL:

obj = Tile(x, y, zoomlevel, image)

## INPUT:

x | integer |
    tile x index
y | integer |
    tile y index
zoomlevel | integer |
       tile zoomlevel
    image: <number[N][N][3]
       image cdata

## OUTPUT:

obj | modelit.mapviewer.Tile |
    Documentation for modelit.mapviewer.Tile/Tile
       doc modelit.mapviewer.Tile

# Public Static Method: createImage

## DESCRIPTION:

Create image at tile location x,y

## CALL:

h = createImage(hax, x, y, mp, tileSize, cdata, alpha)

## INPUT:

hax | Axes |
x | number |
    x-coordinate of tile.
y | number |
    y-coordinate of tile.
mp | number |
tileSize | number |
cdata | number[][][] |
alpha | number|number[][] |
    Transparency data

## OUTPUT:

h | Image |

# Public Static Method: imageData

## DESCRIPTION:

Create RGB data for image, displaying icons, progress or patterns

## CALL:

[cdata, alpha] = imageData(tileSize, modus, value)

## INPUT:

tileSize | any |
modus | string |
    name of icon to add, possible values: 'cross',
    'hourglass', 'zoom', 'progress'
value | any |
    argument for the creation of a 'progress' or 'zoomlevel' icon.

## OUTPUT:

cdata | uint8[][][] |
    Image RGB data.
alpha | uint8 |
    Transparency across the entire image.