Class: MapTileService
- Last UpdatedMay 21, 2025
- 4 minute read
This class encapsulates a map tile end point of the HERE Map Tile API.
It's not allowed to call the constructor directly (an IllegalOperationError
is thrown).
Instead an instance of this Service can be retrieved by calling the factory method
H.service.Platform#getMapTileService
on a platform instance.
Name | Type | Description |
---|---|---|
opt_options |
H.service.MapTileService.Options |
optional
Configuration options for map tile service |
Throws:
Example
// Assumption: the platform is instantiated
var mapTiler = platform.getMapTileService({type: 'aerial'}),
tileLayer = mapTiler.createTileLayer('maptile', 'hybrid.day', 256, 'jpg');
map.setBaseLayer(tileLayer);
Extends
Members
-
The property name to use when specifying options for this service within the
H.service.Platform.Options#servicesConfig
. -
This method retrieves meta information for the map tile service. It returns an object if the data associated with the given map tile service has been fetched.
Methods
-
addEventListener (type, handler, opt_capture, opt_scope) inherited
-
This method adds a listener for a specific event.
Note that to prevent potential memory leaks, you must either call
removeEventListener
ordispose
on the given object when you no longer need it. -
addOnDisposeCallback (callback, opt_scope) inherited
-
This method adds a callback which is triggered when the
EventTarget
object is being disposed.Name Type Description callback
function The callback function.
opt_scope
Object optional An optional scope for the callback function
-
createTileLayer (tileType, scheme, tileSize, format, opt_additionalParameters, opt_opacity, opt_dark, opt_options)H.map.layer.TileLayer
-
This method creates a tile layer. This layer can be used as a layer on the map data model.
Returns:
Type Description H.map.layer.TileLayer An object representing the newly create tile layer -
createTileProvider (tileType, scheme, tileSize, format, opt_additionalParameters, opt_options)H.map.provider.ImageTileProvider
-
This method creates a tile provider which uses the specified map tiles. This provider can be used as a data source for an
ImageTileLayer
.Returns:
Type Description H.map.provider.ImageTileProvider An object representing the image tile provider -
dispatchEvent (evt) inherited
-
This method dispatches an event on the
EventTarget
object.Name Type Description evt
H.util.Event | string An object representing the event or a string with the event name
-
dispose () inherited
-
This method removes listeners from the given object. Classes that extend
EventTarget
may need to override this method in order to remove references to DOM Elements and additional listeners. -
This method retrieves the map tile type provided by this service.
Returns:
Type Description string A value indicating the map tile type -
getUrl ()H.service.Url inherited
-
This method returns the configured service URL.
Returns:
Type Description H.service.Url -
This method retrieves a hash representing the newest version of the given map tile service.
Returns:
Type Description string Contains meta information for this map tile service -
removeEventListener (type, handler, opt_capture, opt_scope) inherited
-
This method removes a previously added listener from the
EventTarget
instance.
Type Definitions
-
This type encapsulates information about a
MapTileService
.Properties:
-
The type defines the configuration (initialization) options for a
MapTileService
.Properties:
Events
-
This event is fired when the copyright information for the given service has been successfully retrieved.
Type:
-
This event is fired when the info resource for the given service has been successfully retrieved and processed.
Type:
-
This event is fired when the version hash for the given service has been successfully updated.
Type: