here-api

In the Here iOS SDK, how can I make an NMAMapMarker show a callout when tapped?

白昼怎懂夜的黑 提交于 2019-12-08 05:00:45
问题 I'm building an iOS app that includes Here map & search features, and I'm currently using the "starter" SDK. Currently, when the app performs a search, an NMAMapMarker is created for each search result. I'd like the map display some kind of callout or information box when the user taps on a MapMarker (like what happens when you tap a pin in Apple Maps), but I can't figure out if this feature is included in the SDK. I know there's a didSelectObject delegate method, but do I have to create a

Nokia Here v3: How to put text in standard marker?

南楼画角 提交于 2019-12-07 14:34:10
问题 It was very easy to put text in StandardMarker in previous Nokia HERE API (v2). In new API (v3) I can't find solution how to put text in marker. Here's a code snippet: var coords = { lat: 56 lng: 54 }; marker = new H.map.Marker(coords); map.addObject(marker); 回答1: It looks like the standard icon doesn't support text. But you could try the approach used in the dev guide (https://developer.here.com/javascript-apis/documentation/v3/maps/topics/markers.html) by creating an icon from SVG. 回答2: I

How to show info wndow on marker in here map SDK 3.6

淺唱寂寞╮ 提交于 2019-12-07 12:03:26
old version have method showInfoBubble() but deprecated in sdk 3.6 of here map, now how to show info on marker. Here are the code. MapMarker marker = new MapMarker(); GeoCoordinate geoCoordinate = new GeoCoordinate(c.getLat(), c.getLng()); marker.setCoordinate(geoCoordinate); marker.setTitle(c.getTicket()); StringBuilder stringBuilder = new StringBuilder(); stringBuilder.append("Name : " + (TextUtils.isEmpty(c.getName()) ? "N/A" : c.getName().trim()) + "\n"); stringBuilder.append("Address : " + (TextUtils.isEmpty(c.getStreetAddress()) ? "N/A" : c.getStreetAddress().trim()) + "\n");

Here JavaScript API 3.0 - How to implement a draggable marker

孤街醉人 提交于 2019-12-07 11:07:30
问题 I would like to implement a draggable marker with the recently released JavaScript API 3.0. Using the old API it was quite easy. After setting the draggable attribute to true you were able to move the marker on the map around. The migration guide for the new API 3.0 located [here][1] states that after enabling events on map objects and setting the 'draggable' property to 'true' the corresponding events have to be implemented. marker.addEventListener('dragstart', function() { //handle drag

In the Here iOS SDK, how can I make an NMAMapMarker show a callout when tapped?

风流意气都作罢 提交于 2019-12-07 01:56:27
I'm building an iOS app that includes Here map & search features, and I'm currently using the "starter" SDK. Currently, when the app performs a search, an NMAMapMarker is created for each search result. I'd like the map display some kind of callout or information box when the user taps on a MapMarker (like what happens when you tap a pin in Apple Maps), but I can't figure out if this feature is included in the SDK. I know there's a didSelectObject delegate method, but do I have to create a custom view and manually present it? I also noticed that the "Premium" SDK includes an NMAMapOverlay. Is

Here Maps - iOS Premium- infoBubble

▼魔方 西西 提交于 2019-12-06 13:39:30
I am trying to display a popup above the marker when the marker is selected. But infoBubble functionality is not implemented in premium SDK. Is there a workaround for this? You should use MapOverlays instead: https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapOverlay.html Then add you implementation to the MapView via: https://developer.here.com/documentation/ios-premium/api_reference_jazzy/Classes/NMAMapView.html#%2Fc:objc(cs)NMAMapView(im)addMapOverlay : The idea behind is, that you can use a normal UIView (very flexible, your own design, etc.) and stick

Is Here-api compatible with Flutter?

爷,独闯天下 提交于 2019-12-06 11:51:49
问题 Is there any plugin for Flutter Framework? If it does not exist, has the Here Team plans developing an official plugin? 回答1: I implemented a working prof-of-conept of a HEREMaps Flutter plugin. However, it shares the same limitations as the first version of Google Maps that has been using a Surface-Draw approach. In detail: the HEREMaps plugin currently relies on placing platform overlays on top of a bitmap snapshotting widget for creating the illusion of in-line compositing of HEREMaps views

Here API offset map center

我是研究僧i 提交于 2019-12-06 07:49:29
问题 I'm using the Here Android SDK API. I set position indicator via: positionManager.start(PositioningManager.LocationMethod.GPS_NETWORK); map.getPositionIndicator().setVisible(true); map.getPositionIndicator().setAccuracyIndicatorVisible(true); together with NavigationManager: navMngr.setMapUpdateMode(NavigationManager.MapUpdateMode.ROADVIEW); My map use isometric view: clusterMap.setTilt(60); Thats works, but position indicator apears at the center of the screen. I need to set some offset (or

HERE SDK Color only part of the route

不羁的心 提交于 2019-12-06 06:02:05
Is there a way to color only a part of the route in a different color? Like drawing a polyline but one that takes the road configuration into consideration. No, that is not supported. But if you are wondering about changing only the traveled portion color I previously answered here . You can extract the route geometry to get the list of GeoCoordinates constituing the polyline: geoCoordinates = mapRoute.getRoute().getRouteGeometry() Then you can draw portions of the route in various colors by building new polylines from these coordinates: GeoPolyline geoPolyline = new GeoPolyline(); for

Add download offline map in Android with Here maps

北慕城南 提交于 2019-12-06 03:41:10
I have already developed an Android Here map which has a simple map view but I need to add offline support to the app, how can I add it to my app in order to let the user download a specific country or area? Note that I implemented my app using the tutorial in the link below: https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/maps.html See the Offline Maps section of the mobile sdk documentation. In particular, you might want to use the following methods of the MapLoader class: installMapPackages(List<Integer> packageIdList) - To download and install new country or