Available API modules
Note
The 3.1 version of this API has been deprecated. For continued support and feature development, upgrade to the latest 3.2 version.
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 Maps API for JavaScript and their dependencies:
| Module name | Module depends on | 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 is essential for all other modules, which depend on it. |
core-legacy(mapsjs-core-legacy.js) | core | This module contains the core module functionality that ensures support of the legacy browsers as well as it offers limited backwards compatability with the Maps API for JavaScript version 3.0. |
service(mapsjs-service.js) | core | This module supports map tile retrieval, routing, geocoding, and so on. |
service-legacy(mapsjs-service-legacy.js) | core, service | This module contains the service module functionality that ensures support of the legacy browsers as well as it offers limited backwards compatability with the Maps API for JavaScript version 3.0. |
mapevents(mapsjs-mapevents.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) 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 display of KML and GeoJSON data. |
harp(mapsjs-harp.js) | core | This module provides an alternative rendering engine that can use styles created in the HERE Style Editor. |
Next steps
For more information, see the API Reference.
Updated yesterday