Code Monkey home page Code Monkey logo

here-sdk-examples's Introduction

HERE SDK 4.x (Lite, Explore & Navigate Edition) - Examples for Android, iOS and Flutter

License Platform Language Platform Language

In this repository you can find the latest example apps that show key features of the HERE SDK in ready-to-use applications.

About the HERE SDK

The HERE SDK enables you to build powerful location-aware applications. Explore maps that are fast and smooth to interact with, pan/zoom across map views of varying resolutions, and enable the display of various elements such as routes and POIs on highly customizable map views.

The HERE SDK consumes data from the HERE Platform and follows modern design principles incorporating microservices and modularized components. Currently, the HERE SDK supports three platforms: Android, iOS and Flutter.

For an overview of the existing features, please check the Developer Guide for the platform of your choice. Here you will also find numerous code snippets, detailed tutorials, the API Reference and the latest Release Notes:

For now, the Navigate Edition is only available upon request. Please contact your HERE representative to receive access including a set of evaluation credentials.

List of Available Example Apps (Version 4.18.1.0)

  • HelloMap: Shows the classic 'Hello World'.
  • HelloMapKotlin: Shows the classic 'Hello World' using Kotlin language (Android only).
  • HelloMapWithStoryboard: Shows the classic 'Hello World' using a Storyboard (iOS only).
  • HelloMapAndroidAuto: Shows how to integrate Android Auto into the HelloMap app to show a map on an in-car head unit display (Android only). Exclusively available for the Explore Edition and the Navigate Edition.
  • HelloMapCarPlay: Shows how CarPlay can be integrated into the HelloMap app to display a map on an in-car head unit display (iOS only). Exclusively available for the Explore Edition and the Navigate Edition.
  • HelloMapSurface: Shows how to use the MapSurface class to render low-level graphic elements with OpenGL ES on top of the map. (Android only). Exclusively available for the Explore Edition and the Navigate Edition.
  • Camera: Shows how to change the target and the target anchor point and how to move to another location using custom map animations.
  • CameraKeyframeTracks: Shows how to do custom camera animations with keyframe tracks.
  • CustomMapStyles: Shows how to load custom map schemes made with the HERE Style Editor. Exclusively available for the Explore Edition and the Navigate Edition.
  • CustomRasterLayers: Shows how to load custom raster layers. Exclusively available for the Explore Edition and the Navigate Edition.
  • Gestures: Shows how to handle gestures.
  • OfflineMaps: Shows how the HERE SDK can work fully offline and how offline map data can be downloaded for continents and countries. Exclusively available for the Navigate Edition.
  • MapItems: Shows how to add circles, polygons and polylines, native views, 2D and 3D map markers to locate POIs (and more) on the map. 3D map markers are exclusively available for the Explore and Navigate Editions.
  • MultiDisplays: Shows how a HERE SDK map can be shown on two separate displays using Android's Multi-Display API. Exclusively available for the Explore Edition and the Navigate Edition.
  • OffscreenMapSurface: Shows how the HERE SDK can be used to generate images of the map, without the need to put a map view on screen. Exclusively available for the Explore Edition and the Navigate Edition (Android only).
  • CartoPOIPicking: Shows how to pick embedded map markers with extended place details. Embedded map markers are already visible on every map, by default. Exclusively available for the Explore and Navigate Editions.
  • Routing: Shows how to calculate routes and add them to the map.
  • RoutingHybrid: Shows how to calculate routes and add them to the map. Also shows how to calculate routes offline, when no internet connection is available. Exclusively available for the Navigate Edition.
  • EVRouting: Shows how to calculate routes for electric vehicles and how to calculate the area of reach with isoline routing. Also shows how to search along a route.
  • Public Transit: Shows how to calculate routes for public transportation vehicles such as subways, trains, or buses.
  • Search: Shows how to search POIs and add them to the map. Shows also geocoding and reverse geocoding.
  • SearchHybrid: Shows how to search for places including auto suggestions, for the address that belongs to certain geographic coordinates (reverse geocoding) and for the geographic coordinates that belong to an address (geocoding). It also shows how to search offline, when no internet connection is available. Exclusively available for the Navigate Edition.
  • NavigationQuickStart: Shows how to get started with turn-by-turn navigation. Exclusively available for the Navigate Edition.
  • Navigation: Gives an overview of how to implement many of the available turn-by-turn navigation and tracking features. Exclusively available for the Navigate Edition.
  • NavigationCustom: Shows how the guidance view can be customized. Exclusively available for the Navigate Edition.
  • SpatialAudioNavigation: Shows how to make use of spatial audio notifications for TTS voices during guidance. Exclusively available for the Navigate Edition.
  • Rerouting: Shows how the HERE SDK can be used to handle rerouting during guidance. Exclusively available for the Navigate Edition (Android and iOS only).
  • Positioning: Shows how to integrate HERE Positioning. Exclusively available for the Navigate Edition.
  • PositioningWithBackgroundUpdates: Shows how to integrate HERE Positioning with background location updates on Android using a foreground service. Exclusively available for the Navigate Edition.
  • HikingDiary: Shows how to record GPX traces with HERE Positioning. Exclusively available for the Navigate Edition.
  • Traffic: Shows how to search for real-time traffic and how to visualize it on the map.
  • TruckGuidance: Shows how the HERE SDK can be used to calculate routes specific for trucks. In addition, it shows many more truck-related features. Exclusively available for the Navigate Edition (Android only).
  • StandAloneEngine: Shows how to use an engine without a map view.
  • IndoorMap: Shows how to integrate private venues. Exclusively available for the Navigate Edition.
  • UnitTesting: Shows how to mock HERE SDK classes when writing unit tests (the example app is available for the Explore Edition and the Navigate Edition).

Most example apps contain a class named "XY-Example" where XY stands for the feature, which is in most cases equal to the name of the app. If you are looking for example code that shows how to use a certain HERE SDK feature, then please look for this class as it contains the most interesting parts.

Note that the overall app architecture is kept as simple as possible to not shadow the parts in focus.

UI elements are mostly left out or kept minimal to not shadow the important parts of the code. Note that the HERE SDK itself does offer most APIs headless without UI.

Not all examples are available for all editions and platforms.

Find the latest examples for the edition and platform of your choice:

Example Apps for Older Versions

Above you can find the example app links for the latest HERE SDK version. If you are looking for an older version, please check our release page where you can download tagged older releases.

What You Need to Execute the Example Apps

  1. Acquire a set of credentials: Follow the steps from the Developer Guide for your HERE SDK edition.
  2. Download the latest HERE SDK package for your desired platform as shown in the Developer Guide.
  3. Please refer to the minimum requirements and supported devices as listed in our Developer Guide.

Get Started for Android

  1. Copy the AAR file of the HERE SDK for Android to the example app's app/libs folder.
  2. Open Android Studio and sync the project.
  3. To run the app, insert your HERE credentials (accessKeyId and accessKeySecret) in the MainActivity.java file.

Get Started for iOS

  1. Copy the heresdk.framework file of the HERE SDK for iOS to the example app's root folder.
  2. To run the app, you need to add your HERE credentials (accessKeyId and accessKeySecret) to the AppDelegate.swift file of the project.

Get Started for Flutter

  1. Unzip the downloaded HERE SDK for Flutter package. This folder contains various files including documentation assets.
  2. Inside you will also find a TAR file that contains the HERE SDK for Flutter plugin. It contains the iOS and Android native frameworks.
  3. Now unzip the TAR file and rename the folder to 'here_sdk' and place it to the plugins folder inside the example app's directory. The folder structure should look like this: hello_map/plugins/here_sdk.
  4. Set your HERE SDK credentials (accessKeyId and accessKeySecret) to the main.dart file of the project.
  5. Start an Android emulator or an iOS simulator and execute flutter run from the app's directory - or run the app from within your IDE.

More Resources

  • If you are interested to see a demo of the features the HERE SDK has to offer - or if you simply want to see all features in action, check the HERE WeGo application. This app uses the same technology stack that empowers the HERE SDK.
  • Alternatively, you can build and run the Reference Application (available only for Flutter) which you can find as an open-source project on GitHub. This app shows most features of the Navigate Edition including the features from the Explore Edition in an release-ready app with easy-to-understand UX flows and reusable UI assets.

Get in Touch

  • Information on how to contribute to this project can be found here.
  • If you have questions about billing, your account, or anything else Contact Us.

Thank you for using the HERE SDK.

License

Copyright (C) 2019-2024 HERE Europe B.V.

See the LICENSE file in the root of this repository for license details.

here-sdk-examples's People

Contributors

abhiditi avatar datasun avatar here-sdk-support-team avatar maharudrabhishek avatar makra avatar ogunreku avatar tsteenbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

here-sdk-examples's Issues

GeoJson support, Here Sdk Android

Hello,

I can't find any reference on this: is displaying GeoJSON supported? If yes, in what tier of the Android SDK? Currently experimenting with Lite, though this is just for evaluating HERE maps as a solution for running our maps-enabled projects on devices with no Google Play Services support - so the plan is to switch to a paid version (depending on the outcome of our evaluation).

Not sure if this is the right place to ask this, thanks in advance :)

How to use third party routing with HERE mobile SDK

  1. Can you please help on the steps or documentation on how to bring in the data for third party routing, to use with HERE mobile SDK & generate the maneuvers
    Can we feed the results of third party router, as waypoints to HERE SDK routing engine OR is there a better way

  2. Is there a limit on no of waypoints supported by the Routing engine.

Android Navigation - App crashes when minimize and open again by clicking on app icon

When we start the app and click on the "Simulated Location" button it works properly. and then we minimize the app and open it again by clicking on the app icon it crashes the App randomly.

Simulator: Pixel_XL_API_29

Error from log:

2021-06-02 20:03:19.114 17972-18060/com.navigationapp A/libc: FORTIFY: pthread_mutex_lock called on a destroyed mutex (0xd7018d20)
2021-06-02 20:03:19.114 17972-18060/com.navigationapp A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18060 (Thread-310), pid 17972 (s.navigationapp)

addMapMarker3d Example

Can you please add an example of how to properly add 3d markers on the map?
I was trying to make it myself using the navigate edition SDK on android but faced some challenges with properly placing the object on the map.

Thanks in advance.

MapViewLite goes to black after resuming from another map activity

I have MainActivity with MapViewLite view, everything works as expected. If I move to a different activity which as another MapViewLite view, second activity displays map fine. But coming back to MainActivity, MapViewLite view turns black. I can reproduce this issue with sdk sample. I am testing on Samsung Note5 and Samsung S10, both has the same issue. No exceptions on logcat either.

This happens only after displaying second MapViewLite view. Tried few things and went through sdk documentation, could not find anything related to this. Is there anything additional I have to do before or after displaying second MapViewLite?

sdk version : heresdk-lite-android-4.3.2.0.1948.aar
sample app : https://github.com/shamilds/here-sample

Any help would appreciate.

NOTE: I accidentally posted this on v3.x repository, @NazarKacharaba pointed out I am on wrong repository. As I can remember I had same issue with v3.x but now upgraded to v4.x which is much easy to handle, but this issue not helping.

Map route polyline is not being "Eaten" on route progress - HERE SDK Android Navigate Edition

Hello,

I tried using HERE WeGo navigation and saw, that there is Blue route polyline which is kept getting clipped behind the Navigation arrow.

I want to implement same thing in our project, but unfortunately I can't find any documentation about this feature.

Screenshot_20211104-113457

The cross marked line is what I'm talking about, Is there any way to remove that tail automatically?
I am using this to show route on the map:

val visualNavigator: VisualNavigator
visualNavigator.route = route (calculated route)

[Flutter] Displaying text over Map Markers

Hi,
I'm using HERE SDK (Explore) v4.5.0.0 for Flutter 1.22.2.

I am developing an application that displays objects as map markers on the map, as they are different types of object, I am displaying different markers (svgs) based on type.

While all works as intended, I was wondering whether it's possible to display text over the markers without hardcoding them in the SVGs?

Since I can have multiple objects of the same type with a unique ID, at the same location.

Going with the current approach I have in mind (that is hardcoding the text), It wouldn't work in the sense if we have to add more objects. As each marker would need a specific svg.

If this feature is not available yet, it would be nice to have it.

On another note: Can we expect 'FlyToCoordinate' on the camera anytime soon? LookAtPoint works, but feels too sudden and seems bad for UX.

App crash when navigating to second route containing HERE map

I have implemented the HERE map SDK into an existing app, with it fully functioning when I run the singular page within the project file on an emulator.

However, when I begin the emulator on my home page and navigate to the map via a button, it begins to load and then crashes within 5 seconds.

Here is the map code we are using, the button is just a simple elevated button. Any help is greatly appreciated.

Button-
onPressed: () { Navigator.push( context, MaterialPageRoute(builder: (context) => SecondRoute()), ); }, ),
Map-
Screenshot 2021-03-24 at 14 47 33

FontFace and Font Issues with FLutter on Android - Maps

Hi,

I run into an issue with Android Phones while using Flutter (in General)
E/magma-text-agg(25048): [ERROR] magma-text-agg - Could not find font: 'fonts/NotoSansKhmer-Regular-unhinted.ttf'

An another Error using Here Maps in China Area
E/CL_magma(25048): [ERROR] CL_magma - Can't find FontFace for charcode: 4135

I am using here maps 4.4.2.0

[✓] Flutter (Channel stable, v1.17.5, on Mac OS X 10.15.6 19G73, locale de-DE)
• Flutter version 1.17.5 at /Users/-/development/flutter
• Framework revision 8af6b2f038 (5 weeks ago), 2020-06-30 12:53:55 -0700
• Engine revision ee76268252
• Dart version 2.8.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
• Android SDK at /Users/-/Library/Android/sdk
• Platform android-30, build-tools 30.0.0
• ANDROID_HOME = /Users/-/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.6, Build version 11E708
• CocoaPods version 1.9.1

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.0.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.47.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2

[✓] Connected device (1 available)
• Redmi Note 8 • 18d3ce30 • android-arm64 • Android 9 (API 28)

• No issues found!

Android Navigation App: Black wrapper on map element on Emulators

Hi, I am facing issues when running the Android navigation app on the emulator and when I run that getting the below screen:

image_2021_06_23T13_00_35_534Z

Note: It works well on the real device.
Can you help me with what could be the issue?
Emulator Details:


Name: Pixel_XL_API_29

CPU/ABI: Google APIs Intel Atom (x86)

Path: C:\Users\abc\.android\avd\Pixel_XL_API_29.avd

Target: google_apis [Google APIs] (API level 29)

Skin: pixel_xl_silver

SD Card: 512M

fastboot.chosenSnapshotFile: 

runtime.network.speed: full

hw.accelerometer: yes

hw.device.name: pixel_xl

hw.lcd.width: 1440

hw.initialOrientation: Portrait

image.androidVersion.api: 29

tag.id: google_apis

hw.mainKeys: no

hw.camera.front: emulated

avd.ini.displayname: Pixel XL API 29

hw.gpu.mode: auto

hw.ramSize: 1536

PlayStore.enabled: false

fastboot.forceColdBoot: no

hw.cpu.ncore: 2

hw.keyboard: yes

hw.sensors.proximity: yes

hw.dPad: no

hw.lcd.height: 2560

vm.heapSize: 384

skin.dynamic: yes

hw.device.manufacturer: Google

hw.gps: yes

hw.audioInput: yes

image.sysdir.1: system-images\android-29\google_apis\x86\

showDeviceFrame: yes

hw.camera.back: virtualscene

AvdId: Pixel_XL_API_29

hw.lcd.density: 560

hw.arc: false

hw.device.hash2: MD5:f78477654d5471c3d7f705251d14e72f

fastboot.forceChosenSnapshotBoot: no

fastboot.forceFastBoot: yes

hw.trackBall: no

hw.battery: yes

hw.sdCard: yes

tag.display: Google APIs

runtime.network.latency: none

disk.dataPartition.size: 800M

hw.sensors.orientation: yes

avd.ini.encoding: UTF-8

hw.gpu.enabled: yes


Android: Tracking / Navigating on Navigate Edition SDK

I'm trying to start tracking/navigating. The documentation specifies to the VisualNavigator class, using the startRendering
and setCameraMode functions. But it also says it will automatically tilt the camera to ~45 degrees and apply the default position indicator.
It is all good, but how could I get more control over it? Say, use the custom position indicator or different tilt level.
Similar to Premium SDK, once I start the tracking (with or without route), I would expect to only map camera move, while indicator coordinates should be updated along with the camera movement.

Please let me know if there is a way to make the camera move along the route/tracking, but still allows to set custom indicator and other camera options.

If not, I assume it is required to will to use Navigator, observe the navigableLocation (map matched location) and make the smooth camera movement by myself, probably using the ValueAnimator to compensate location jumps, by animating from the current location to a new one.

I would appreciate any recommendation you have for that feature.

flutter: Map scene not loaded. MapError: MapError.invalidScene

I'm getting this issue when I want to run navigate/routing_app from the latest version (4.3.3.0) and 4.3.2.0
and when I want to tap on on add route button I got this error:

════════ Exception caught by gesture ═══════════════════════════════════════════════════════════════
The following NoSuchMethodError was thrown while handling a gesture:
The method 'addRoute' was called on null.
Receiver: null
Tried calling: addRoute()

When the exception was thrown, this was the stack: 
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:53:5)
#1      MyApp._addRouteButtonClicked (package:routing/main.dart:75:21)
#2      MyApp.button.<anonymous closure> (package:routing/main.dart:89:42)
#3      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:779:19)
#4      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:862:36)
...
Handler: "onTap"
Recognizer: TapGestureRecognizer#6b17a
  debugOwner: GestureDetector
  state: possible
  won arena
  finalPosition: Offset(102.5, 109.0)
  finalLocalPosition: Offset(65.2, 27.0)
  button: 1
  sent tap down

builtin_types_conversion.dart "Method not found errors"

Hello!

I have been following the Get Started for HERE SDK for Flutter following the steps here: https://developer.here.com/documentation/flutter-sdk-explore/4.6.3.0/dev_guide/topics/quick-start.html#create-a-new-flutter-project-and-show-a-here-map

I have followed all of the steps, very carefully, multiple times, and while running on iOS simulator, after the Xcode build is done, I get the following errors from the builtin_types_conversion.dart file.
Screen Shot 2021-03-08 at 2 51 29 PM

There are more but they all say the same "Method not found".

At the top of the builtin_types_conversion.dart file, it doesn't seem to recognize "intl" in the line: "import 'package:intl/locale.dart';"

I haven't touched the builtin_types_conversion.dart file and my pubspec.yaml file inside the here_sdk folder looks like this:
Screen Shot 2021-03-08 at 3 04 26 PM

The intl line under dependencies was originally just "intl:" when the problem started. I tried changing it to "intl: ^0.17.0" both with and without quotations and then running pub get, but that didn't work.

If you have any ideas on how to solve this or have any more insight into the problem, please let me know! Thanks!

Missing support for Xcode 13

Describe the bug
I cannot build an app that is using Here SDK lite framework with the latest Xcode 13.0 RC (13A233). When I try I get the following error:

Build/Products/Development-iphonesimulator/XCFrameworkIntermediates/heresdk/heresdk.framework/Modules/heresdk.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo' is either malformed or generated by a different Swift version. Note that it uses an unstable format and may leak internal project details, it should not be distributed alongside modules

If I compile the sdk-examples I get only a warning with the same message:

Build/Products/Debug-iphonesimulator/heresdk.framework/Modules/heresdk.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo' is either malformed or generated by a different Swift version. Note that it uses an unstable format and may leak internal project details, it should not be distributed alongside modules

Due to the fact that we are planning the update of our toolchain to Xcode 13.0 as soon as possible, it would be nice to have a SDK version compiled to support the most updated Swift version.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Open SearchLite example with Xcode 13 RC (13A233)
  2. Build

Expected behavior
No warnings or errors should be displayed. Latest version of Xcode should be supported. Would be nice to have support for at least two major Xcode versions (12.x, 13.x).

Screenshots
image

Error with "flutter run" in debug mode

Hi,

I has change my Podfile flow the notes of the newest version
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
target.build_configurations.each do |config|
config.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64' if uname -m == "x86_64\n"
end
end
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
end
end
project.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
end
end

When I debug my project on Xcode 12.5.1 with IP8 simulator ios 14.5 (SDK explore Flutter-4.9.1.0.2095). It 's very well

But when I run in command line "flutter run", I get an error. Could you tell me How I can solve it?

Error output from Xcode build:

** BUILD FAILED **

Xcode's output:

/Users/usernc/Downloads/my_app/build/ios/Debug-iphonesimulator/here_sdk/here_sdk.framework/Modules/module.modulemap:9:12: error:
header 'here_sdk-Swift.h' not found
header "here_sdk-Swift.h"
^
/Users/usernc/Downloads/my_app/ios/Runner/GeneratedPluginRegistrant.m:10:9: note: submodule of top-level module 'here_sdk' implicitly
imported here
#import <here_sdk/HereSdkPlugin.h>
^
/Users/usernc/Downloads/my_app/ios/Runner/GeneratedPluginRegistrant.m:18:4: error: use of undeclared identifier 'HereSdkPlugin'
[HereSdkPlugin registerWithRegistrar:[registry registrarForPlugin:@"HereSdkPlugin"]];
^
2 errors generated.
note: Using new build system
note: Building targets in parallel
note: Planning build
note: Analyzing workspace
note: Constructing build description
note: Build preparation complete

Could not build the application for the simulator.
Error launching application on iPhone 8.

MapImage cause crack App

image
MapImages only work with ".withPixelDataAndImageFormat" ,i'm using Images in my database
to create Mapmaker object, but my Images object is so big that i want to minify it

SavedInstanceState value is getting null. When launching an app its crashing.

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.util.Log;

import com.here.sdk.core.GeoCoordinates;
import com.here.sdk.mapview.MapError;
import com.here.sdk.mapview.MapScene;
import com.here.sdk.mapview.MapScheme;
import com.here.sdk.mapview.MapView;

public class MainActivity extends AppCompatActivity {

private MapView mapView;
private PermissionsRequestor permissionsRequestor;

@Override

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    mapView = findViewById(R.id.map_view);
    this.mapView = new MapView(this);
    mapView.onCreate(savedInstanceState);

    mapView.setOnReadyListener(new MapView.OnReadyListener() {
        @Override
        public void onMapViewReady() {
            Log.d("TAG", "HERE Rendering Engine attached.");
        }
    });
    handleAndroidPermissions();
}

private void handleAndroidPermissions() {
    permissionsRequestor = new PermissionsRequestor(this);
    permissionsRequestor.request(new PermissionsRequestor.ResultListener(){
        @Override
        public void permissionsGranted() {
            loadMapScene();
        }

        @Override

        public void permissionsDenied() {

            Log.e("TAG", "Permissions denied by user.");
        }
    });
}

@Override

public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
    permissionsRequestor.onRequestPermissionsResult(requestCode, grantResults);
}

private void loadMapScene() {
    mapView.getMapScene().loadScene(MapScheme.NORMAL_DAY, new MapScene.LoadSceneCallback() {
        @Override
        public void onLoadScene(@Nullable MapError mapError) {

            if (mapError == null) {
                double distanceInMeters = 1000 * 10;
                mapView.getCamera().lookAt(
                        new GeoCoordinates(52.530932, 13.384915), distanceInMeters);
            } else {
                Log.d("TAG", "Loading map failed: mapError: " + mapError.name());
            }
        }
    });
}

@Override
protected void onPause() {
    super.onPause();
    mapView.onPause();
}

@Override
protected void onResume() {
    super.onResume();
    mapView.onResume();
}

@Override
protected void onDestroy() {
    super.onDestroy();
    mapView.onDestroy();
}

}](url)

Display API response Json Lat/Lon as Marker on HERE map - Flutter

I am calling an API from a Flutter project and it is successfully returning the Json.

I am able to display the information as text on an emulator fine. The response is returning the data fine.

However, I want to extract the Lat/Lon from the call and display markers on the HERE SDK map.

The Marker Example code works fine with manually entered coordinates, I am trying to take the API response and utilise it to display the multiple markers returned in the call.

The API call is made from my API Manager
class API_Manager {
Future<Stations> getStations() async {
var client = http.Client();
var stations;

try{
var response = await client.get(
'https://API Call
if (response.statusCode == 200) {
var jsonString = response.body;
var jsonMap = json.decode(jsonString);

stations = Stations.fromJson(jsonMap);

}
} catch(Exception) {
return stations;
}

return stations;
}
}

I have been trying to adapt this section of the 'Marker Example', as the void showAnchoredMapMarkers() displays it

GeoCoordinates CoordinatesManager() { GeoCoordinates centerGeoCoordinates = _hereMapController.viewToGeoCoordinates( Point2D(_hereMapController.viewportSize.width / 2, _hereMapController.viewportSize.height / 2)); if (centerGeoCoordinates == null) { throw Exception("GeoCoordinates are null"); } double lat = centerGeoCoordinates.latitude; double lon = centerGeoCoordinates.longitude; return GeoCoordinates(x, -x); } }

Thank you

Flat map image marker in Android Navigate Edition SDK

I'm using the android Navigate Edition SDK and trying to add a flat image to the map, using the MapMarker with the MapImage, but it looks like it does not have the ability to flat the image, similar to Lite Edition via MapMarkerImageStyle.setFlat(true).

Is there an ability to flat the image on the map using navigate edition SDK?
I need that one to display a custom current position indicator on the map, so it behaves similarly to 3d object while tilting the map.
Thanks in advance.

32-bit so report error

I only pack the ARM64-V8A, everything works fine

But if I just pack Armeabi-V7 I will get an error
image

I tested this on multiple phones and found the same result

Hot reload don't word in android studio 3.6

image

Hi team.
SdkContext.init(IsolateOrigin.main) Make the hot reload feature not work in android studio 3.6, but working normally in vscode.
i'm try convert the code snippet to initState()
image
and noww this don't work... solution to this problem ?

Unable to Use Flutter geolocator plugin with Flutter HERE SDK.

The main method is

void main() {
  SdkContext.init(IsolateOrigin.main);
  runApp(MyApp());
}

Here map is loading perfectly but unable to use geolocator plugin to get device location. I am getting the following error

E/flutter ( 9771): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: MissingPluginException(No implementation found for method isLocationServiceEnabled on channel flutter.baseflow.com/geolocator)
E/flutter ( 9771): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:157:7)
E/flutter ( 9771): <asynchronous suspension>
E/flutter ( 9771): #1      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:332:12)
E/flutter ( 9771): #2      MethodChannelGeolocator.isLocationServiceEnabled (package:geolocator_platform_interface/src/implementations/method_channel_geolocator.dart:68:21)
E/flutter ( 9771): #3      Geolocator.isLocationServiceEnabled (package:geolocator/geolocator.dart:221:35)
E/flutter ( 9771): #4      _MyFlutterMapState._determinePosition (package:flutterwithheremaps/my_map.dart:19:39)
E/flutter ( 9771): #5      _MyFlutterMapState.initState (package:flutterwithheremaps/my_map.dart:49:5)
E/flutter ( 9771): #6      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4765:58)
E/flutter ( 9771): #7      ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter ( 9771): #8      Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter ( 9771): #9      Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter ( 9771): #10     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter ( 9771): #11     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter ( 9771): #12     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter ( 9771): #13     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter ( 9771): #14     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter ( 9771): #15     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter ( 9771): #16     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter ( 9771): #17     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter ( 9771): #18     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter ( 9771): #19     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter ( 9771): #20     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter ( 9771): #21     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter ( 9771): #22     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter ( 9771): #23     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter ( 9771): #24     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter ( 9771): #25     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter ( 9771): #26     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter ( 9771): #27     MultiChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6236:32)
E/flutter ( 9771): #28     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter ( 9771): #29     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter ( 9771): #30     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter ( 9771): #31     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4800:11)
E/flutter ( 9771): #32     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter ( 9771): #33     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter ( 9771): #34     StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4791:11)
E/flutter ( 9771): #35     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter ( 9771): #36     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter ( 9771): #37     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)
E/flutter ( 9771): #38     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4652:16)
E/flutter ( 9771): #39     Element.rebuild (package:flutter/src/widgets/framework.dart:4343:5)
E/flutter ( 9771): #40     ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:4606:5)
E/flutter ( 9771): #41     ComponentElement.mount (package:flutter/src/widgets/framework.dart:4601:5)
E/flutter ( 9771): #42     Element.inflateWidget (package:flutter/src/widgets/framework.dart:3569:14)
E/flutter ( 9771): #43     Element.updateChild (package:flutter/src/widgets/framework.dart:3327:18)

HERE Flutter SDK Issue - Method not found

Hello, I develop on the flutter framework, when I install the here sdk and make the necessary settings,
I run the example program the following error is displayed on the debugging console, would you have a solution to this problem, thank you!

plugins/here_sdk/lib/src/builtin_types__conversion.dart:82:23: Error: Method not found: 'Utf8.toUtf8'.
final cValue = Utf8.toUtf8(value);
^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:84:3: Error: Method not found: 'free'.
free(cValue);
^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:88:53: Error: Method not found: 'Utf8.fromUtf8'.
String String_fromFfi(Pointer handle) => Utf8.fromUtf8(_String_get_value(handle));
^^^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:120:30: Error: Method not found: 'Utf8.toUtf8'.
final cLanguageCode = Utf8.toUtf8(locale.languageCode);
^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:122:39: Error: Method not found: 'Utf8.toUtf8'.
locale.countryCode != null ? Utf8.toUtf8(locale.countryCode) : Pointer.fromAddress(0);
^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:124:38: Error: Method not found: 'Utf8.toUtf8'.
locale.scriptCode != null ? Utf8.toUtf8(locale.scriptCode) : Pointer.fromAddress(0);
^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:125:29: Error: Method not found: 'Utf8.toUtf8'.
final cLanguageTag = Utf8.toUtf8(locale.toLanguageTag());
^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:129:3: Error: Method not found: 'free'.
free(cLanguageCode);
^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:130:34: Error: Method not found: 'free'.
if (cCountryCode.address != 0) free(cCountryCode);
^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:131:33: Error: Method not found: 'free'.
if (cScriptCode.address != 0) free(cScriptCode);
^^^^
lugins/here_sdk/lib/src/builtin_types__conversion.dart:132:3: Error: Method not found: 'free'.
free(cLanguageTag);
^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:141:30: Error: Method not found: 'Utf8.fromUtf8'.
return Locale.parse(Utf8.fromUtf8(languageTagCstring));
^^^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:149:59: Error: Method not found: 'Utf8.fromUtf8'.
languageCode: languageCodeCstring.address != 0 ? Utf8.fromUtf8(languageCodeCstring) : null,
^^^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:150:57: Error: Method not found: 'Utf8.fromUtf8'.
countryCode: countryCodeCstring.address != 0 ? Utf8.fromUtf8(countryCodeCstring) : null,
^^^^^^^^
plugins/here_sdk/lib/src/builtin_types__conversion.dart:151:55: Error: Method not found: 'Utf8.fromUtf8'.
scriptCode: scriptCodeCstring.address != 0 ? Utf8.fromUtf8(scriptCodeCstring) : null
^^^^^^^^

FAILURE: Build failed with an exception.

  • Where:
    Script 'C:\Users\Nathan\Documents\Dev\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command 'C:\Users\Nathan\Documents\Dev\flutter\bin\flutter.bat'' finished with non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 30s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

Android Navigate Edition - No next road name/number info

Hello,

We have upgraded from Premium to Navigate Edition and there is now issue with Maneuvers.

The problem is that there is around 50% of maneuvers does have NextRoadTexts at all (empty strings), when Premium Edition did not had any of these issues.

Is it possible that Navigation Edition is not fully finished and does not have these Texts and will have in the future or we have to adapt to these changes and do not expect to receive them?

Code:

val nextManeuverProgress = nextManeuverList[0]
val nextManeuverIndex = nextManeuverProgress.maneuverIndex
val nextManeuver = visualNavigator.getManeuver(nextManeuverIndex)

val nextRoad: String =
  if (nextManeuver .nextRoadTexts.names.defaultValue == null) {
      nextManeuver .nextRoadTexts.numbers.defaultValue ?: "None?"
  } else {
      "unknown"
  }

MapView not rendering in Android React-Native application

Description:

  • When following the "Hello Maps" example, our MapView does not correctly render map tiles.
  • After executing the loadScene callback and instructing the mapView camera to look at GeoCoordinates, the MapView is showing a white background with the Here logo in the bottom right corner.

I can confirm the following:

  • The MapView.getMapScene().loadScene() callback is being called without a MapError
  • Our MapView's onReadyListener is being called, indicating that the rendering engine is attached
  • Our View is attached to the view hierarchy correctly, as I see the HERE logo in the bottom right of the MapView

Per the development guide's troubleshooting section:

  • I see only a blank white map - Our HERE credentials are valid and have been set correctly. Other features of the SDK such as routing and search are behaving as expected.
  • In the logs I see "No map content will be displayed until valid config is provided." - I can confirm that we are calling loadScene() as its callback is called without an error. 

There is one difference in our code and the example code:

  • Our Android Application is a single-activity react native app.
  • When attaching the MapView to our view hierarchy, we do so by inflating a layout which contains our MapView.

When the following code runs, the MapView is already present in the view hierarchy.

        Activity activity = mContext.getCurrentActivity();
        mMapView = activity.findViewById(R.id.map_view);

        if (mMapView == null) return;

        mMapView.onCreate(null);
        mMapView.setOnReadyListener(new MapView.OnReadyListener() {
            @Override
            public void onMapViewReady() {
                Log.d("map", "HERE Rendering Engine attached.");
                double distanceInMeters = 1000 * 10;
                mapView.getCamera().lookAt(new GeoCoordinates(52.530932, 13.384915), distanceInMeters);
            }
        });

        mMapView.getMapScene().loadScene(MapScheme.NORMAL_DAY, new MapScene.LoadSceneCallback() {
            @Override
            public void onLoadScene(@Nullable MapError mapError) {
                if (mapError == null) {
                    Log.i("map", "loadscene");
                    double distanceInMeters = 70;
                    mMapView.getCamera().lookAt(new GeoCoordinates(52.530932, 13.384915), distanceInMeters);
                    mMapView.setFrameRate(10);
                } else {
                    Log.d("map", "Loading map failed: mapError: " + mapError.name());
                }
            }
        });

Harp sdk logs:

2021-07-13 18:30:13.132 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Initializing SDK renderer with a threaded render loop
2021-07-13 18:30:13.137 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Render loop thread created
2021-07-13 18:30:13.139 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Starting render loop thread (state=<paused>)
2021-07-13 18:30:13.151 16728-17170/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.157 16728-17172/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.164 16728-17174/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.165 16728-17175/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.261 16728-17173/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.375 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.420 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.441 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.464 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.564 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.565 16728-17173/com.lightos I/harp-sdk: [INFO ] harp-sdk - Removing data source
2021-07-13 18:30:13.568 16728-17173/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source removed
2021-07-13 18:30:13.568 16728-17173/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.569 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Render loop thread resumed
2021-07-13 18:30:13.570 16728-16728/com.lightos W/harp-sdk: [WARN ] harp-sdk - View config is empty. No map content will be displayed until valid config is provided.
2021-07-13 18:30:13.570 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding renderable
2021-07-13 18:30:13.571 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.655 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.657 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Skip applying configuration with empty filename.
2021-07-13 18:30:13.657 16728-17169/com.lightos W/harp-sdk: [WARN ] harp-sdk - Invalid render target at initialization time.
2021-07-13 18:30:13.658 16728-17169/com.lightos W/harp-sdk: [WARN ] harp-sdk - Invalid map configuration at initialization time.
2021-07-13 18:30:13.658 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Renderable added
2021-07-13 18:30:13.658 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.658 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.788 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.789 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.790 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.790 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.791 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.791 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.791 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.791 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.792 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.792 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.793 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.793 16728-16728/com.lightos I/harp-sdk: [INFO ] harp-sdk - Adding data source
2021-07-13 18:30:13.794 16728-17169/com.lightos I/harp-sdk: [INFO ] harp-sdk - Data source added
2021-07-13 18:30:13.794 16728-16728/com.lightos W/harp-sdk: [WARN ] harp-sdk - Ignore adding invalid observer
2021-07-13 18:30:13.798 16728-16728/com.lightos W/harp-sdk: [WARN ] harp-sdk - Ignore adding invalid observer

OC Project use 4.x heresdk.framework

The heresdk 4.x series built in Swift . now the project we work in is built in OC . it seems that it doesn`t work properly ? is the heresdk support OC soon ?

Fatal signal 11 (SIGSEGV), code 2 Crashes

Hi, I am trying to track clicks on MapMarkers, but every time I get a crash related to Signal 11.

I have tested my application on emulators and on one physical device (Redmi Note 7). On the physical device everything works fine, but on emulators I keep getting crashing.

How to reproduce:

  1. Setup TapListener and PickMapItemsCallback.
  2. Create MapMarker and add it on MapScene.
  3. Click on MapMarker.

Crash:

2020-10-20 17:33:24.364 6473-6551/? A/libc: Fatal signal 11 (SIGSEGV), code 2, fault addr 0x91482000 in tid 6551 (GLThread 395)
2020-10-20 17:33:24.434 6569-6569/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2020-10-20 17:33:24.434 6569-6569/? A/DEBUG: Build fingerprint: 'google/sdk_google_phone_x86/generic_x86:7.1.1/NYC/4316688:user/release-keys'
2020-10-20 17:33:24.434 6569-6569/? A/DEBUG: Revision: '0'
2020-10-20 17:33:24.434 6569-6569/? A/DEBUG: ABI: 'x86'
2020-10-20 17:33:24.435 6569-6569/? A/DEBUG: pid: 6473, tid: 6551, name: GLThread 395  >>> com.foxy.testproject <<<
2020-10-20 17:33:24.435 6569-6569/? A/DEBUG: signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0x91482000
2020-10-20 17:33:24.435 6569-6569/? A/DEBUG:     eax 91482000  ebx a53c2be8  ecx 00000008  edx 8f680b23
2020-10-20 17:33:24.435 6569-6569/? A/DEBUG:     esi 91482000  edi 00000a50
2020-10-20 17:33:24.435 6569-6569/? A/DEBUG:     xcs 00000073  xds 0000007b  xes 0000007b  xfs 0000003b  xss 0000007b
2020-10-20 17:33:24.435 6569-6569/? A/DEBUG:     eip b3eaf5fc  ebp 914808f8  esp 914808a8  flags 00010202
2020-10-20 17:33:24.445 6569-6569/? A/DEBUG: backtrace:
2020-10-20 17:33:24.445 6569-6569/? A/DEBUG:     #00 pc 000195fc  /system/lib/libc.so (memcpy+732)
2020-10-20 17:33:24.445 6569-6569/? A/DEBUG:     #01 pc 00023035  /system/lib/egl/libEGL_emulation.so (glUtilsPackPointerData+581)
2020-10-20 17:33:24.445 6569-6569/? A/DEBUG:     #02 pc 0003de43  /system/lib/libGLESv2_enc.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #03 pc 0002a80c  /system/lib/libGLESv2_enc.so (_ZN10GL2Encoder20sendVertexAttributesEiibi+236)
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #04 pc 00016b55  /system/lib/libGLESv2_enc.so (_ZN10GL2Encoder16s_glDrawElementsEPvjijPKv+1125)
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #05 pc 00009d2d  /system/lib/egl/libGLESv2_emulation.so (glDrawElements+93)
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #06 pc 00323016  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #07 pc 00359ea9  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #08 pc 002f098c  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #09 pc 002f4661  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #10 pc 002f44ff  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #11 pc 002899f8  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #12 pc 0026c543  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #13 pc 001d6a93  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.446 6569-6569/? A/DEBUG:     #14 pc 001d4fa6  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.447 6569-6569/? A/DEBUG:     #15 pc 001aa87e  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.447 6569-6569/? A/DEBUG:     #16 pc 001a93b4  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so
2020-10-20 17:33:24.447 6569-6569/? A/DEBUG:     #17 pc 000ea9a2  /data/app/com.foxy.testproject-1/lib/x86/libheresdk.so (Java_com_here_sdk_mapviewlite_MapRenderer_render+178)
2020-10-20 17:33:24.447 6569-6569/? A/DEBUG:     #18 pc 0082365c  /data/app/com.foxy.testproject-1/oat/x86/base.odex (offset 0x7b4000)

The part of code where the failure occurs:

private fun pickMapMarker(touchPoint: Point2D) {
        val radiusInPixel = 1.0
        mapView.pickMapItems(touchPoint, radiusInPixel) { pickMapItemsResult ->
            presenter.showDetails(pickMapItemsResult)
        }
    }

You can also see my project here: https://github.com/Bimlibik/TestProject/tree/test_lite_edition

SDK: heresdk-lite-android-4.5.1.0.3221

Request MapMarker Example in Flutter SDK

Hello,

Could you please add a MapMaker example for the flutter SDK? I have been trying to use my assets in my app, but it cannot find my image file.

Thank you,

Brendan

[FLUTTER][FEATURE REQUEST] Precise maneuver localized text

Hello!

I've been playing with the Navigate SDK for Flutter for a while, and our team agrees in an important feature missing:
Maneuver.text should contain a precise maneuver description for the user. Right now, Maneuver.text is empty in maneuvers that came from VisualNavigator.routeProgressListener , but you can get maneuver text from _visualNavigator.route.sections.elementAt(0).maneuvers.elementAt(maneuverIndex).text.
The problem is that this text is sometimes quite too large to be shown to the user, and it would be nice if we have some shorter form like 'Stay on the right lane to take exit 22 to C-55', instead of 'Stay on the right lane to take exit 22 to C-55. Then follow the route for 5213m and you'll reach your destination'. It's just an example, but I guess you get the point.

Thank you,
Abel, from Tacofy.

Drag item on Mapview

Hello,
I am just trying out the SDK Lite API and I am wondering how I can achieve to drag a MapMarker object from one place to another. I suggest, it works somehow with disabling the default onPan gesture, but actually the problem starts with picking an existing object.

Here is my code so far:

public void pickMarker(Point2D p) {
    map.getGestures().disableDefaultAction(GestureType.PAN);
    map.pickMapItems(p, 20f, pickMapItemsResult -> {
        if (pickMapItemsResult != null) {
            pickedMarker = pickMapItemsResult.getTopmostMarker();
        } else {
            map.getGestures().enableDefaultAction(GestureType.PAN);
        }
    });
}

public void dragMarker(Point2D p) {
    if (pickedMarker != null) {
        pickedMarker.setCoordinates(map.getCamera().viewToGeoCoordinates(p));
    }
}

public boolean releaseMarker(Point2D p) {

    map.getGestures().enableDefaultAction(GestureType.PAN);
    if (pickedMarker != null) {
        GeoCoordinates newCoordinates = map.getCamera().viewToGeoCoordinates(p);
        pickedMarker.setCoordinates(newCoordinates);
        pickedMarker = null;
        return true;
    }
    return false;
}

while these functions are called on the three states of the onPanListener:

mapView.getGestures().setPanListener((gestureState, point2D, point2DUpdate, v) -> {
        if (gestureState.equals(GestureState.BEGIN)) {
            mapViewUIEngine.pickMarker(point2D);
        }
        if (gestureState.equals(GestureState.UPDATE)) {
            mapViewUIEngine.dragMarker(point2DUpdate);
        }
        if (gestureState.equals(GestureState.END)) {
            if (mapViewUIEngine.releaseMarker(point2DUpdate)) {
                regionController.movePoint(0,
                        updateNewLocation(point2D, point2DUpdate);
            }
        }
    });

Do you have a suggestion, why getTopMostMarker always returns null?

Best regards
Thomas

** BUILD FAILED ** - Method not found

Have been trying to run example HERE Flutter application on VS Code - pressed to run and this issue is displayed. (Everything is up to date and refreshed etc). Have reinstalled pods etc as well.

Appears to be the same root of issue

  • Method not found: 'Utf8.toUtf8'.
    &
  • Method not found: 'free'.

Code feedback is as follows...

Screenshot 2021-03-19 at 00 59 27

[Question] Positionning on Flutter SDK

Hi ! 👋

I would like to know when you will add the positionning feature for Flutter SDK because it's actually just for Android and iOS, and I need this feature for my project.

Thanks ☺

Gradle build fails on Flutter with Kotlin support

After migrating to Flutter 2, it seems that my app fails to compile.

e: C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (31, 1): Class 'MapController' is not abstract and does not implement abstract member public abstract fun onActivityPaused(p0: Activity): Unit defined in android.app.Application.ActivityLifecycleCallbacks
e: C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (120, 5): 'onActivityPaused' overrides nothing
e:C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (124, 5): 'onActivityResumed' overrides nothing
e: C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (128, 5): 'onActivityStarted' overrides nothing
e: C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (135, 5): 'onActivityDestroyed' overrides nothing
e: C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (139, 5): 'onActivitySaveInstanceState' overrides nothing
e: C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (143, 5): 'onActivityStopped' overrides nothing
e: C:\development\flutter_app\plugins\here_sdk\android\src\main\kotlin\com\here\mapview\MapController.kt: (150, 5): 'onActivityCreated' overrides nothing

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':here_sdk:compileDebugKotlin'.
> Compilation error. See log for more details

Flutter version 2.0.3
Dart 2.12.2
Gradle 4.1.3
Kotlin 1.4.32

Flutter - How to update Here map marker in flutter?

Hello,

I am using following code to set my marker in Here Maps. Now, I want to update the position of the marker in the app from the GeoCoordinates(13.6211, 123.1903) to GeoCoordinates(15.6211, 125.1903) when pressing on a button.

But, I am confused and I didn't find a way to update the marker in the map.

import 'package:flutter/material.dart';
import 'package:here_sdk/core.dart';
import 'package:here_sdk/mapview.dart';

void main() {
  SdkContext.init(IsolateOrigin.main);
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'HERE SDK for Flutter - Hello Map!',
      home: HereMap(onMapCreated: _onMapCreated),
    );
  }

  void _onMapCreated(HereMapController hereMapController) {
     var image = new MapImage.withFilePathAndWidthAndHeight(
        '<?xml version="1.0" standalone="no"?>' +
            '<svg width="4cm" height="4cm" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg" version="1.1">' +
            '<path d="M 100 100 L 300 100 L 200 300 z"M fill="red" stroke="blue" stroke-width="3" />' +
            '</svg>',
        100,
        100);
    var mapmarker = new MapMarker(GeoCoordinates(13.6211, 123.1903), image);
    hereMapController.mapScene.addMapMarker(mapmarker);
    hereMapController.mapScene.loadSceneForMapScheme(MapScheme.normalNight,
        (MapError error) {
      if (error != null) {
        print("Map scene not loaded. MapError: " + error.toString());
      }
      debugPrint('hi im dino');
      hereMapController.camera
          .lookAtPointWithDistance(GeoCoordinates(13.6211, 123.1903), 1000.0);
      hereMapController.release();
    });

    hereMapController.release();
  }
}

Can you please provide a solution?

Thanks.

heremap navigation

i have implemented here map navigation it showing everything good in simulation but in real its camera angle and notification methods are not called(already preferred java example)

HERE Mobile SDK UI Kit with HERE navigate SDK 4.5

@MaKra @tsteenbe @datasun @jehovahmidara
Team, can you please help with the below questions

  1. Can we use HERE Mobile SDK UI Kit with HERE navigate SDK 4.5 version
  2. Quickstart documentation of HERE Mobile SDK UI Kit refers to use HERE-sdk.aar
    But the aar files from HERE navigate or other SDK are named differently as heresdk-navigate-android-4.5.4.0.3646
  3. Quickstart documentation of HERE Mobile, refers to use MSDKUILib-release.aar to run the example apps
    How do we generate or get the MSDKUILib-release.aar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.