|
1 | | -# maps-api-for-javascript-examples |
2 | | -Self-contained examples for Maps API for JavaScript |
| 1 | +# Maps API for JavaScript |
| 2 | + |
| 3 | +This repository holds a series of JavaScript based examples using the **HERE Maps API for JavaScript**. More information about the API can be found on [developer.here.com](https://developer.here.com/). |
| 4 | + |
| 5 | +This set of self-contained, use-case based examples is designed to be cloned by developers for their own use. |
| 6 | + |
| 7 | + |
| 8 | +**Note:** In order to get the sample code to work, you **must** replace all instances of `{YOUR_APP_ID}` and `{YOUR_APP_CODE}` within the code and use your own HERE credentials. |
| 9 | + |
| 10 | +You can obtain a set of credentials from the [Plans Page](https://developer.here.com/plans/api/consumer-mapping) on developer.here.com. |
| 11 | + |
| 12 | +## Maps API for JavaScript |
| 13 | + |
| 14 | +All of the following examples use **version 3.0** of the API |
| 15 | + |
| 16 | +* [Adding Meta Information layer to the Map](tree/master/meta-info-layer) - Retrieve meta information of city labels, transit stations, etc. |
| 17 | +* [Adding Venues layer to the Map](tree/master/venues-layer) - Display venue objects (e.g. shops, airports etc) on the map |
| 18 | +* [Adding a Ground Overlay to the Map](tree/master/ground-overlay) - Display an image over a specified geographical area. |
| 19 | +* [Adding an Overlay to the Map](tree/master/custom-tile-overlay) - Display custom map tiles as an overlay |
| 20 | +* [Calculating a Location from a Mouse Click](tree/master/position-on-mouse-click) - Obtain the latitude and longitude of a location within the map |
| 21 | +* [Changing from the Metric System](tree/master/map-scale-bar-changing-from-the-metric-system) - Display a map including a scale bar in miles or yards |
| 22 | +* [Circle on the Map](tree/master/circle-on-the-map) - Display a map highlighting a circular region |
| 23 | +* [DOM Marker](tree/master/map-with-dom-marker) - Display a marker that is capable of receiving DOM events |
| 24 | +* [Detailed Place Information](tree/master/get-place-details) - Request detailed information about a place marked on the map selected using a mouse click |
| 25 | +* [Display Interactive KML Objects](tree/master/map-with-interactive-kml-objects) - Parse a KML file and display and interact with the data on a map |
| 26 | +* [Display KML Data](tree/master/display-kml-on-map) - Parse a KML file and display the data on a map |
| 27 | +* [Draggable Marker](tree/master/draggable-marker) - Display a moveable marker on a map |
| 28 | +* [Explore Nearby Places](tree/master/identify-places-at-location) - Request a list of places close to a location and display them on a map |
| 29 | +* [Explore Popular Places by Category](tree/master/explore-places) - Request a list of places within a category around a location and display them on a map. |
| 30 | +* [Finding the Nearest Marker](tree/master/finding-the-nearest-marker) - Find a marker nearest to the click location |
| 31 | +* [Map Objects Event Delegation](tree/master/map-objects-event-delegation) - Use event delegation on map objects |
| 32 | +* [Map Objects Events](tree/master/map-object-events-displayed) - Handle events on various map objects |
| 33 | +* [Map UI Components](tree/master/moved-map-components) - Display a map with the standard UI components in an altered location |
| 34 | +* [Map at a specified location](tree/master/map-at-specified-location) - Display a map at a specified location and zoom level |
| 35 | +* [Map using View Bounds](tree/master/map-using-view-bounds) - Display a map of a given area |
| 36 | +* [Map with Driving Route from A to B](tree/master/map-with-route-from-a-to-b) - Request a driving route from A to B and display it on the map. |
| 37 | +* [Map with Pedestrian Route from A to B](tree/master/map-with-pedestrian-route-from-a-to-b) - Request a walking route from A to B and display it on the map. |
| 38 | +* [Map with Route from A to B using Public Transport](tree/master/map-with-route-from-a-to-b-using-public-transport) - Request a route from A to B using public transport and display it on the map. |
| 39 | +* [Map with Truck Route from A to B](tree/master/map-with-truck-route-from-a-to-b) - Request a truck route from A to B and display it on the map. |
| 40 | +* [Marker Clustering](tree/master/marker-clustering) - Cluster multiple markers together to better visualize the data |
| 41 | +* [Marker Clustering with Custom Theme](tree/master/custom-cluster-theme) - Cluster multiple markers and customize the theme |
| 42 | +* [Marker on the Map](tree/master/markers-on-the-map) - Display a map highlighting points of interest |
| 43 | +* [Multi-language support](tree/master/map-multi-language-support) - Display a map with labels in a foreign language |
| 44 | +* [One-Box Search](tree/master/search-for-places) - Request a list of nearby places based on a query string and display them on a map |
| 45 | +* [Opening an Infobubble on a Mouse Click](tree/master/open-infobubble) - Open an infobubble when a marker is clicked |
| 46 | +* [Ordering Overlapping Markers](tree/master/ordering-overlapping-markers) - Arrange the order in which a series of map objects are displayed |
| 47 | +* [Panning the Map](tree/master/panning-the-map) - Programmatically pan the map so that it is continually in motion |
| 48 | +* [Polygon on the Map](tree/master/polygon-on-the-map) - Display a map highlighting a region or area |
| 49 | +* [Polyline on the Map](tree/master/polyline-on-the-map) - Display a map with a line showing a known route |
| 50 | +* [Rectangle on the map](tree/master/rectangle-on-the-map) - Display a map highlighting a retangular region or area |
| 51 | +* [Restrict Map Movement](tree/master/restrict-map) - Restrict a moveable map to a given rectangular area |
| 52 | +* [SVG Graphic Markers](tree/master/map-with-svg-graphic-markers) - Display a map with custom SVG markers |
| 53 | +* [Search for a Landmark](tree/master/search-for-landmark) - Request the location of a landmark and display it on the map. |
| 54 | +* [Search for a Location based on an Address](tree/master/geocode-a-location-from-address) - Request a location using a free-form text input and display it on the map. |
| 55 | +* [Search for a Location given a Structured Address](tree/master/geocode-a-location-from-structured-address) - Request a location from a structured address and display it on the map. |
| 56 | +* [Search for the Address of a Known Location](tree/master/reverse-geocode-an-address-from-location) - Request address details for a given location and display it on the map. |
| 57 | +* [Store map tiles for offline usage](tree/master/offline-map) - Store map tiles for offline usage |
| 58 | +* [Synchronising Two Maps](tree/master/synchronising-two-maps) - Synchronise a static map with an interactive map |
| 59 | +* [Take a Snapshot of the Map](tree/master/capture-map-area) - Capture an area on the map |
| 60 | +* [Terrain Map](tree/master/terrain-map) - Display a topographical map |
| 61 | +* [Traffic Information](tree/master/showing-traffic-information) - Display traffic information on the map |
| 62 | +* [Zoom into Bounds](tree/master/custom-zooming-into-bounds) - Zoom into bounds limiting maximum level |
| 63 | +* [Zooming to a Set of Markers](tree/master/zoom-to-set-of-markers) - Alter the viewport to ensure a group of objects are visible |
0 commit comments