Maps SDK for Web
tt
This object aggregates all necessary modules and classes to work with maps.
Please refer to the following documentation to check what properties and methods are included in the tt object.
Properties
Evented: Maps.Evented
Use this class to create a new Evented.
FullscreenControl: Maps.FullscreenControl
Use this class to create a new full screen control.
GeolocateControl: Maps.GeolocateControl
Use this class to create a new GeolocateControl.
LngLat: Maps.LngLat
Use this class to create a new LngLat.
LngLatBounds: Maps.LngLatBounds
Use this class to create a new LngLatBounds.
map: Maps.Map
Instance of a map.
Marker: Maps.Marker
Use this class to create a new marker component.
MercatorCoordinate: Maps.MercatorCoordinate
Use this class to create a new MercatorCoordinate.
NavigationControl: Maps.NavigationControl
Use this class to create a new NavigationControl.
Point: Maps.Point
Use this class to create a new Point.
Popup: Maps.Popup
Use this class to create a new popup component.
ScaleControl: Maps.ScaleControl
Use this class to create a new ScaleControl.
sdkInfo: Function
Returns SDK details. (e.g., version)
Methods
setProductInfo(productId, productVersion)
This method sets the content of the TomTom-User-Agent header. We are collecting anonymous data for statistics of usage of our services in order to increase the quality of our products.
Example
tt.setProductInfo('your-product-id', 'your-product-version');
supported([options]): Boolean
This method allows you to check if the user's browser is supported.
Example
tt.supported() // = true
Parameters
Returns