Live demo https://dverbovyi.github.io/angular-heremaps/
AngularJS directive for working with Nokia Here Maps
- Add minified version dist/angular-heremaps.min.js;
calculateRoute
method: added support for more than 2 waypoints (Thanks jzet for pull request);updateMarkers
method: added optionalrefreshViewbounds
parameter to update viewbounds on marker change. By default:false
(Thanks jzet for pull request);- UI module loading bug fixed (Thanks klagoda for pull request)
npm install angular-heremaps
<script src="/node_modules/angular-heremaps/dist/angular-heremaps.js" type="text/javascript"></script>
angular.module('exampleModule', ['heremaps'])
Before, you should register here and get your app id. Then pass it below
angular.module('exampleModule')
.config(["HereMapsConfigProvider", function(HereMapsConfigProvider) {
HereMapsConfigProvider.setOptions({
'app_id': 'your_app_id_here',
'app_code': 'your_app_code_here',
'useHTTPS': true
});
}]);
<div heremaps></div>
See details on wiki pages
Please report, any issue here
git clone https://github.com/{{username}}/angular-heremaps.git
cd angular-heremaps
npm i
gulp serve
gulp build