AnyLogic
Expand
Font size
All Implemented Interfaces:
ITileURLProvider, Serializable

@AnyLogicInternalAPI
public class TileURLProvider
extends Object
implements ITileURLProvider
See Also:
Serialized Form

Constructor Summary

ConstructorDescription
TileURLProvider(String... urls) 

Method Summary

Modifier and TypeMethodDescription
static StringapplyParameters(String url, int x, int y, int z) 
StringgetSourceName()
Returns the name of tile provider.
StringgetTileURL(int x, int y, int z)
See details on openstreetmap.org

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

TileURLProvider

public TileURLProvider(String... urls)

Method Details

getTileURL

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

getSourceName

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 interface ITileURLProvider

applyParameters

public static String applyParameters(String url,
 int x,
 int y,
 int z)