AnyLogic
Expand
Font size
  • java.lang.Object
    • com.anylogic.engine.gis.TileURLProvider
All Implemented Interfaces:
ITileURLProvider, java.io.Serializable

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

Constructor Summary

Constructors 
TileURLProvider​(java.lang.String... urls)  
Constructor Description

Method Summary

All Methods Static Methods Instance Methods Concrete Methods 
static java.lang.String applyParameters​(java.lang.String url, int x, int y, int z)  
java.lang.String getSourceName()
Returns the name of tile provider.
java.lang.String getTileURL​(int x, int y, int z)
See details on openstreetmap.org
Modifier and Type Method Description

Methods inherited from class java.lang.Object

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

Constructor Detail

TileURLProvider

public TileURLProvider​(java.lang.String... urls)

Method Detail

getTileURL

public java.lang.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 java.lang.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 java.lang.String applyParameters​(java.lang.String url,
                                               int x,
                                               int y,
                                               int z)
How can we improve this article?