Package com.anylogic.engine.gis
- java.lang.Object
- com.anylogic.engine.gis.TileURLProvider
- All Implemented Interfaces:
ITileURLProvider
@AnyLogicInternalAPI public class TileURLProvider extends Object implements ITileURLProvider
This class is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Author:
- AnyLogic North America, LLC https://anylogic.com
Constructor | Description |
---|---|
TileURLProvider |
Modifier and Type | Method | Description |
---|---|---|
static String | applyParameters | |
String | getSourceName() |
Returns the name of tile provider.
|
String | getTileURL |
See details on openstreetmap.org
|
public TileURLProvider(String... urls)
public String getTileURL(int x, int y, int z)
Description copied from interface:
ITileURLProvider
See details on openstreetmap.org
- Specified by:
getTileURL
in interfaceITileURLProvider
- Parameters:
x
- tile id in range 0..2zy
- tile id in range 0..2zz
- the zoom of the map- Returns:
- URL of tile to download
public String getSourceName()
Description copied from interface:
ITileURLProvider
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.
- Specified by:
getSourceName
in interfaceITileURLProvider
public static String applyParameters(String url, int x, int y, int z)