public class TileLayer extends ILayer
Constructor and Description |
---|
TileLayer(String urlTemplate) |
TileLayer(String urlTemplate,
TileLayerOptions options) |
Modifier and Type | Method and Description |
---|---|
TileLayer |
addEventListener(Event.Type type,
EventListener listener)
Adds a event listener to a particular event type of the object.
|
TileLayer |
addTileListener(TileEvent.Type type,
TileListener listener)
Adds a tile listener to a particular tile event type of the object.
|
TileLayer |
clearAllEventListeners()
Removes all listeners to all events on the object.
|
TileLayer |
removeEventListener(Event.Type type,
EventListener listener)
Removes a event listener to a particular event type of the object.
|
TileLayer |
removeTileListener(TileEvent.Type type,
TileListener listener)
Removes a tile listener to a particular tile event type of the object.
|
public TileLayer(String urlTemplate)
public TileLayer(String urlTemplate, TileLayerOptions options)
public TileLayer addTileListener(TileEvent.Type type, TileListener listener)
type
- The tile event type. The types TILELOADSTART, TILELOAD and
TILEUNLOAD are supported.listener
- The registered listener.public TileLayer addEventListener(Event.Type type, EventListener listener)
type
- The event type. The types LOADING and LOAD are supported.listener
- The registered listener.public TileLayer removeTileListener(TileEvent.Type type, TileListener listener)
type
- The tile event type. The types TILELOADSTART, TILELOAD and
TILEUNLOAD are supported.listener
- The registered listener.public TileLayer removeEventListener(Event.Type type, EventListener listener)
type
- The event type. The types LOADING and LOAD are supported.listener
- The registered listener.public TileLayer clearAllEventListeners()
Copyright © 2017. All rights reserved.