Available API modules
The Maps API for JavaScript is organized into a number of modules. Developers can therefore use the API efficiently by selecting only the modules which their applications require.
The table below outlines the selectable modules of the HERE Maps API for JavaScript and their dependencies:
| Module Name | Script File Name | Dependency | Description |
|---|---|---|---|
core | mapsjs-core.js | No dependencies | This module contains the core functionality for rendering maps, map layers, and map objects, as well as utilities used in other modules. This module is the core of the API. It has no dependencies, but it is a requirement for using all other modules. |
service | mapsjs-service.js | core | This module supports map tile retrieval, routing, geocoding, and many other services. |
mapevents | mapsjs-mapvents.js | core | This module provides functionality to enable user interaction with the map, including map panning and pinch-to-zoom. The module normalizes various browser event systems (mouse events, touch events, pointer events) in order to offer unified events that can be used across desktop and mobile environments. |
ui | mapsjs-ui.js, mapsjs-ui.css | core | This module provides a set of pre-built cross-browser UI components (such as base map settings, zoom control, map scale) that can be added to the map. It also provides functionality to display location-specific info bubbles with arbitrary HTML content on the map. |
clustering | mapsjs-clustering.js | core | This module provides functionality for marker clustering. |
data | mapsjs-data.js | core | This module provides set of classes for displaying KML and GeoJSON data. |
Next steps
For more information, see the API Reference.
Updated last month