AnyLogic
Expand
Font size
All Superinterfaces:
Serializable
All Known Implementing Classes:
TileURLProvider, TileURLProviderImpl

@AnyLogicInternalAPI
public interface ITileURLProvider
extends Serializable
com.anylogic.engine.presentation.ShapeGISMap has tile layer. This interface is used to get URL for downloading tile.
Author:
AnyLogic North America, LLC https://anylogic.com

Method Summary

Modifier and TypeMethodDescription
StringgetSourceName()
Returns the name of tile provider.
StringgetTileURL(int x, int y, int zoom)
See details on openstreetmap.org

Method Details

getTileURL

String getTileURL(int x,
 int y,
 int zoom)
See details on openstreetmap.org
Parameters:
x - tile id in range 0..2z
y - tile id in range 0..2z
zoom - the zoom of the map
Returns:
URL of tile to download

getSourceName

String getSourceName()
Returns the name of tile provider. This name is used as a key in model's cache. Use different names for different sources of tiles.