here-api

Anchor and rotation for DOM marker

瘦欲@ 提交于 2020-01-06 08:11:15
问题 I can set the rotation to the css of the DOM marker in here map api. However, I can't set the anchor. That would lead to the origin of the spin deviate from the coordination of the marker. See the picture below: How to resolve it? The relevant code is like the following: import { renderToStaticMarkup } from 'react-dom/server'; import { PositionToLatLng } from './utils'; export class DomMarker { constructor(map, options) { const { position, children, angle, ...others } = options; this.marker =

Try to create a cluster unsing a sample but addLayer got undefined

心不动则不痛 提交于 2020-01-06 04:46:08
问题 Here API clustering error: "addLayer is not defined" Error I am calling the function startClustering, but I get a error map.addLayer is undefined. I think maybe the map object lost the context scope, but how can I could pass the right scope to have access to addLayer function from the map. //Boilerplate map initialization code starts below: var defaultLayers = platform.createDefaultLayers(); var map = new H.Map(document.getElementById('map'), defaultLayers.normal.map, { center: { lat: -19

How can I add layers to Here Maps?

元气小坏坏 提交于 2020-01-06 01:52:22
问题 I am starting with here-api,I follow the examples and I add some markers in the map, but i nedd and a layer switcher, to select multiple layers with differents markers, and shown it in the map but i cant do it. The markers are, static and the map not reload the firt markers. I try to put more than one maps, in tabs, but not work. Some idea about it? Sorry for my english. Regards. 回答1: As much as I know, Here JS API does not support this kind of layers out of the box, but you can implement is

HERE iOS SDK premium - Is there a way to prevent “waypoints” / Stopovers from being announced?

半世苍凉 提交于 2020-01-05 07:48:50
问题 I am making an iOS Premium application, the routes that are loaded for the user have lots of waypoints, each turn is added as a waypoint to ensure the specific route is followed exactly as it was saved. This mucks up the voice guidance, rather than announcing the next turn the guidance announces "After ... you will reach your stopover" I would prefer it to say "After ... turn left" like normal, as if there were no waypoints. Is this possible? Where can I configure the voice guidance? 回答1: You

How to prevent here.com api id hijacking?

橙三吉。 提交于 2020-01-04 12:46:12
问题 I'm about to use the here.com API. I generated a api_id/api_code for a new App. These two values must be appended to each request to the API and are, if used in a Web App, visible to everyone. id+code are not bound to an URL like Google API keys, so I don't see any method to prevent anybody to take my id+code and using it for, lets say, scraping tiles. As the API costs money I wonder how I can prevent that? http://developer.here.com/faqs says nothing about protection of keys and here.com

Here maps is not working

丶灬走出姿态 提交于 2020-01-01 15:06:10
问题 I want to implement HERE Maps in my App. I just started to implement a sample app that just show HERE Maps . My code: // map embedded in the map fragment private Map map = null; // map fragment embedded in this activity private MapFragment mapFragment = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_here_maps); // Search for the map fragment to finish setup by calling init(). mapFragment = (MapFragment)

HERE Maps Android Integration, MISSING_LIBRARIES Error

喜夏-厌秋 提交于 2019-12-30 22:55:28
问题 I followed the steps https://developer.here.com/mobile-sdks/documentation/android/topics/app-simple-android-studio.html but I am getting error as : Cannot initialize Map Fragment MISSING_LIBRARIES Map init code : mapFragment.init(new OnEngineInitListener() { @Override public void onEngineInitializationCompleted(OnEngineInitListener.Error error) { if (error == OnEngineInitListener.Error.NONE) { // retrieve a reference of the map from the map fragment map = mapFragment.getMap(); // Set the map

HERE Maps Android Integration, MISSING_LIBRARIES Error

瘦欲@ 提交于 2019-12-30 22:54:56
问题 I followed the steps https://developer.here.com/mobile-sdks/documentation/android/topics/app-simple-android-studio.html but I am getting error as : Cannot initialize Map Fragment MISSING_LIBRARIES Map init code : mapFragment.init(new OnEngineInitListener() { @Override public void onEngineInitializationCompleted(OnEngineInitListener.Error error) { if (error == OnEngineInitListener.Error.NONE) { // retrieve a reference of the map from the map fragment map = mapFragment.getMap(); // Set the map

HERE Maps API - get speed limit of all roads in a tile?

时间秒杀一切 提交于 2019-12-29 09:15:11
问题 I'm writing an app that closely tracks a user's driving speed. I'm currently using the HERE API getlinkinfo to get the speed limit of a road at a particular point using lat/long. https://route.st.nlp.nokia.com/routing/7.2/getlinkinfo.json?app_id=APPID&app_code=APPCODE&waypoint=37.421045,-122.092380 When the user is in an intersection or is on/under an overpass the lat/long doesn't specify which road the user is currently on so I don't always get the correct speed limit returned. I believe

The markers on the map change position when map is rotated

*爱你&永不变心* 提交于 2019-12-25 17:21:51
问题 I added markers on my map : ClusterLayer markersClusterLayer = new ClusterLayer(); Collection<MapMarker> markers = new ArrayList<>(); for (GeoCoordinate geoCoordinate : list.get(0).getRoute().getWaypoints()) { MapMarker marker = new MapMarker(); marker.setCoordinate(geoCoordinate); markers.add(marker); } markersClusterLayer.addMarkers(markers); map.addClusterLayer(markersClusterLayer); When I rotate my map using my fingers on the device, the marker position changes slightly, going from one