public class MGMFileRasterDataSource
extends com.nutiteq.rasterdatasources.AbstractRasterDataSource
path + name + "_" + zoom + "/" + tpfx + "_" + tpxy + ".mgm"
For example if: path = "/london/", name = "OpenStreetMap"
"/london/" + "OpenStreetMap" + "_" + "0" + "/" + "0" + "_" + "0" + ".mgm"
Result: /london/OpenStreetMap_0/0_0.mgm
| Constructor and Description |
|---|
MGMFileRasterDataSource(com.nutiteq.projections.Projection projection,
int minZoom,
int maxZoom,
int tileSize,
String name,
String path)
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildTileFileName(com.nutiteq.components.MapTile tile)
Generate file name based on the tile info.
|
com.nutiteq.components.TileBitmap |
loadTile(com.nutiteq.components.MapTile tile) |
public MGMFileRasterDataSource(com.nutiteq.projections.Projection projection,
int minZoom,
int maxZoom,
int tileSize,
String name,
String path)
projection - the desired projectiontileSize - the tile size in pixelsminZoom - the minimum zoommaxZoom - the maximum zoomid - unique layer id. Id for the layer must be depend ONLY on the layer source, otherwise tile caching will not work properly.minZoom - minimum zoom level supported by this data sourcemaxZoom - maximum zoom level supported by this data sourcename - the name of the sub folderspath - the path to the main map folderprotected String buildTileFileName(com.nutiteq.components.MapTile tile)
tile - tile to generate file name for.public com.nutiteq.components.TileBitmap loadTile(com.nutiteq.components.MapTile tile)
Copyright © 2014. All rights reserved.