public class UtfGridHelper extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
UtfGridHelper.MBTileUTFGrid |
| Modifier and Type | Field and Description |
|---|---|
static String |
TEMPLATED_FULL_KEY |
static String |
TEMPLATED_LOCATION_KEY |
static String |
TEMPLATED_TEASER_KEY |
| Constructor and Description |
|---|
UtfGridHelper() |
| Modifier and Type | Method and Description |
|---|---|
static UtfGridHelper.MBTileUTFGrid |
decodeUtfGrid(byte[] gridBytes) |
static int |
utfGridCode(int tileSize,
int clickedX,
int clickedY,
UtfGridHelper.MBTileUTFGrid grid,
int utfgridRadius)
get clicked UTFgrid code within the tile.
|
public static final String TEMPLATED_FULL_KEY
public static final String TEMPLATED_TEASER_KEY
public static final String TEMPLATED_LOCATION_KEY
public static UtfGridHelper.MBTileUTFGrid decodeUtfGrid(byte[] gridBytes) throws IOException, org.json.JSONException
IOExceptionorg.json.JSONExceptionpublic static int utfGridCode(int tileSize,
int clickedX,
int clickedY,
UtfGridHelper.MBTileUTFGrid grid,
int utfgridRadius)
tileSize - usually 256clickedX - clickedY - grid - utfgridRadius - Copyright © 2014. All rights reserved.