here-api

How to create custom labels for HERE Map UI Labels 3.0?

泄露秘密 提交于 2019-12-11 17:07:49
问题 We need to add custom labels for the Here Map UI layers. Currently, we are using createDefaultLayers to make the map layers and sending them into the UI creation. var maptypes = platform.createDefaultLayers({ tileSize: devicePixelRatio > 1 ? 512 : 256, ppi: devicePixelRatio > 1 ? 320 : 72 }); ...... // some other map setup var ui = H.ui.UI.createDefault(hereMap, maptypes); We are using these versions: <script src="https://js.api.here.com/v3/3.0/mapsjs-core.js" type="text/javascript" charset=

Stick dom marker in here maps on zooming

牧云@^-^@ 提交于 2019-12-11 16:59:21
问题 I'm trying to add a truck Marker in the HERE Map. This marker is basically a truck icon. Here is my code. addDomMarker(posObj): void { const map = this.mapComponent.getMap(); (window as any).mymap = map; const domIcon = new H.map.DomIcon(truckIcon); this.truckMarker = new H.map.DomMarker(posObj, { icon: domIcon }); map.addObject(this.truckMarker); map.setCenter(posObj); } export const truckIcon = `<div class="truck-container"> <svg class="truck-marker" id="truck" ... // svg code </svg></div>`

The Batch Geocoder API returns only failed status

岁酱吖の 提交于 2019-12-11 16:47:49
问题 I experience an issue with the Here Batch Geocoder Api. I have tried with different input data and input parameters with not success so far. I send a request with action run, like: http://batch.geocoder.cit.api.here.com/6.2/jobs?action=run&app_code={app_code_value}&app_id={app_id_valeu}&outdelim=|&outcols=displayLatitude,displayLongitude,locationLabel&outputcombined=false&indelim=| The request data is: recId|searchText|country 0001|Invalidenstraße 116 10115 Berlin|DEU 0002|Am Kronberger Hang

Trip Duration Summary as a tip message before starting Route on Heremaps SDK in Android

允我心安 提交于 2019-12-11 16:13:37
问题 I wanted to show Total Trip duration on tip message on android here maps sdk when requested to draw route on map fragment as show in image. Total trip duration 回答1: You can use the info bubble to display the Total trip duration. Read the documentation for moreinfo: https://developer.here.com/documentation/maps/topics/map-controls.html Info Bubbles In addition to map controls, the UI module supports info bubbles. An info bubble allows you literally to show a 'bubble' containing HTML content on

Map application using vue-nodejs

落爺英雄遲暮 提交于 2019-12-11 15:15:47
问题 While initializing the here-map api in order to render the map in a vue component I am getting the following error: "'H' is not defined src/components/HelloWorld.vue:15:26 const platform = new H.service.Platform({...})" I have included the headers for here-maps in index.html as required at and my component code is: <template> <div> <div style="width: 100%; height: 500px" id="map-container"></div> </div> </template> <script> export default { name: 'HelloWorld', data: () => ({ map: null }),

Is there a way to know that an ImgTileProvider has finished loading all tiles?

断了今生、忘了曾经 提交于 2019-12-11 14:46:13
问题 I'm building out a map app that pulls in tiles via an ImgTileProvider. I would like to know when the tiles have been correctly loaded, but the only method exposed by the ImgTileProvider.Options is the getUrl function, which helps me know where to get an image tile, not when it returns. Is there an event that is fired after each tile/all tiles has/have been created/rendered to the page? I noticed that there was an addListener function available for ImgTileProvider instances, which I would

Markers are missing suddenly while rendering on here maps 2.5.3

我的未来我决定 提交于 2019-12-11 14:35:19
问题 I have developed an application where it displays collection of markeres on the navteq map.when i was working with navteq maps 2.2.3 everything was working fine, but as Navteq maps 2.2.3 does not support for Asynchronous behaviour i have switched to HereMaps 2.5.3 which supports Asynchronous behaviour. Now after switching to latest version i'm facing one strange problem. that is while rendering the markers on the map suddenly already rendered points/markers(some points) gets disappeared.this

GetMapPackageAtCoordinate never return smallest package for some regions

别说谁变了你拦得住时间么 提交于 2019-12-11 14:11:56
问题 I'm using the MapLoader#getMapPackageAtCoordinate method to find which offline package I should download. The thing is that I never want to download the country (France) package (for data usage consideration). The documentation clearly says that for some coordinates, the method may not be able to find the smallest (region) package and return the country package instead. But I was expecting to be able to get the smallest package when trying with multiple geocoordinates in the region. For some

How to set max zoom

半城伤御伤魂 提交于 2019-12-11 12:12:29
问题 So I noticed in the older version of the API there was a maxZoomLevel under nokia.maps.map.Display . However I can not find anything similar to this in the JS API 3.0. Currently I am using map.addEventListener('mapviewchange', function () { var zoom=map.getZoom(); if(zoom<=maxZoom) { map.setZoom(maxZoom) } }); But once it hits the maxZoom and you zoom out more it is very choppy since it zooms out a bit then I set it back to maxZoom . Is there any better way of doing this? 回答1: You can set the

Nokia Here JavaScript API disables pinch zoom in iOS

时光怂恿深爱的人放手 提交于 2019-12-11 11:53:37
问题 I've just started using the Nokia Here API and it works great, but I've noticed that the maps disable pinch zoom on iOS, on both iPhone and iPad. Here's an example: http://seemann.com/mapsample/ Works fine across most browsers on a desktop, but pinch zooming is not possible on iOS. (Haven't tested on Android.) This happens even when I turn off the Behavior component. Thoughts? 回答1: A basic pinch zoom functionality does exist in the HERE Maps API for Javascript - you just need to include the