Self-contained examples for the legacy Maps API for JavaScript.
Examples, Demos and Custom Map Components written by the HERE Maps Coding Community
NOTE These examples are for the deprecated 2.5.4 JavaScript API. Newer 3.x examples can be downloaded here and also viewed on jsFiddle.
Simple Examples: A series of graduated code examples using the Maps API for JavaScript, each example displays
a short snippet of code with the correct syntax to do a specified task - for example "How do I add a Polygon
to the map?" Useful when getting
started, or as an aide-memoire when writing something new.
Advanced Examples: A second set of examples, demonstrating the use of the advanced features of the Maps API for JavaScript. These examples cover more difficult concepts such as asynchronous loading,KML and Map overlays.
Demos and Custom Components: Demos showcase the power of the Maps API for JavaScript when mashed up with other APIs or data sources.
Custom Components extend the basic functionality of the API to introduce new components which offer additional capabilities (such as GeoJSON
parsing). The files
necessary for each demo can be found in a separate directory. Each custom component also offers a demonstation of usage where the component itself can be found
within a separate libs
directory. Obviously demos and custom components cover a very broad range of subjects, so they have been split thematically below:
See the LICENSE file in the root of this project for license details.
KML Generation Tools
GeoJSON Parsing Examples
KML Parsing Examples
AJAX Loading
Basic code snippets to get you started:
The advanced examples are split thematically as shown: