Giter VIP home page Giter VIP logo

sygic-maps-kit-android's People

Contributors

bio007 avatar tomasvalenta avatar

Stargazers

 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

sygic-maps-kit-android's Issues

Missing format attribute in custom-attributes definition causing build to fail

When building the app using gradle 3.6 or higher, the error below pops up causing the build to fail.
I think it happens because of the missing format in the attribute definition.


> Task :app-samples:processDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app-samples:processDebugResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:510:5-512:13: AAPT: error: style attribute 'attr/itemLayoutId (aka asfinag.sdk.early.tt:attr/itemLayoutId)' not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:513:5-516:13: AAPT: error: style attribute 'attr/clearButtonIcon (aka asfinag.sdk.early.tt:attr/clearButtonIcon)' not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:567:5-573:25: AAPT: error: resource attr/imageSource (aka asfinag.sdk.early.tt:attr/imageSource) not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:567:5-573:25: AAPT: error: resource attr/imageDescription (aka asfinag.sdk.early.tt:attr/imageDescription) not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:567:5-573:25: AAPT: error: resource attr/titleText (aka asfinag.sdk.early.tt:attr/titleText) not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:567:5-573:25: AAPT: error: resource attr/suggestionText (aka asfinag.sdk.early.tt:attr/suggestionText) not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:567:5-573:25: AAPT: error: resource attr/actionButtonText (aka asfinag.sdk.early.tt:attr/actionButtonText) not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:631:5-633:25: AAPT: error: resource attr/itemLayoutId (aka asfinag.sdk.early.tt:attr/itemLayoutId) not found.

     sygic-maps-kit-android/uikit/views/build/intermediates/packaged_res/debug/values/values.xml:634:5-637:25: AAPT: error: resource attr/clearButtonIcon (aka asfinag.sdk.early.tt:attr/clearButtonIcon) not found.

Allow users to move things.

I don't know if I'm allowed to post stuff here, but I am wanting to use the beta for the traffic lights in the US, but it blocks the lane guidance when they are open at the same time. Please allow me to either move the lane guidance or the traffic light countdown please.

Question: Offline ?

Hello dear devs.
I am quite new to this, and I wonder if this map kit can be used for interacting with the installed Sygic map - offline
in order my wearable device to receive the current speed limit from the main android application.
Can it be ?

onComputeError (int i => 4 (UnreachableTarget))

I am making the app with your sygic sdk in android. I got an error in Routing please help to solve that. I am coding according to your documentation.

Link > https://www.sygic.com/developers/sygic-maps-sdk/android/routing

I am getting error after "mRouter.computeRoute();"

Below is my MainActivity Code ->

//////////////////////////////////////////////////////////////////////////////////////////////////////////////
package com.example.sygicdemo5;

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

import android.os.Bundle;

import com.sygic.sdk.map.MapFragment;
import com.sygic.sdk.map.MapView;
import com.sygic.sdk.map.listeners.OnMapInitListener;
import com.sygic.sdk.online.OnlineManager;
import com.sygic.sdk.position.GeoCoordinates;
import com.sygic.sdk.route.RouteInfo;
import com.sygic.sdk.route.RoutePlan;
import com.sygic.sdk.route.Router;

public class MainActivity extends AppCompatActivity {

MapFragment mapFragment;
MapView mMapView;
RoutePlan mRoute;
Router mRouter;

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

     mapFragment = (MapFragment) getSupportFragmentManager().findFragmentById(R.id.mapFragment);

    // getMapAsync() will internally wait for engine initialization
    mapFragment.getMapAsync(new OnMapInitListener() {
        @Override
        public void onMapInitializationInterrupted() {
        }

        @Override
        public void onMapReady(@NonNull MapView mapView) {
            // Now you can start work with the ready mapView object
            OnlineManager.getInstance().enableOnlineMapStreaming(true);
            setTheLocation();
        }

    });
}

public void setTheLocation(){
    mMapView = mapFragment.getMapView();

    mMapView.getCameraModel().setPosition(new GeoCoordinates(28.4595, 77.0266));
    mMapView.getCameraModel().setZoomLevel(18.5f);

    setTheRoute();
}

public void setTheRoute(){
    mRoute = new RoutePlan();
    mRoute.setStart(new GeoCoordinates(28.4595, 77.0266));
    mRoute.setDestination(new GeoCoordinates(28.4291,77.0367));

    mRouter = new Router();
    mRouter.computeRoute(mRoute, new Router.RouteComputeAdapter() {
        @Override
        public void onComputeError(Router router, int error) {
            super.onComputeError(router, error);
            // here the code stops with error code 4 (Unreachable target)

        }

        @Override
        public void onProgress(Router router, int progress, long routeId) {
            super.onProgress(router, progress, routeId);
        }

        @Override
        public void onComputeStarted(Router router) {
            super.onComputeStarted(router);
        }

        @Override
        public void onPrimaryComputeFinished(Router router, RouteInfo routes) {
            super.onPrimaryComputeFinished(router, routes);
        }

        @Override
        public void onAlternativeComputeFinished(Router router, RouteInfo routes) {
            super.onAlternativeComputeFinished(router, routes);
        }

        @Override
        public void onComputeFinished(Router router) {
            super.onComputeFinished(router);
        }

        @Override
        public void onRecomputeStarted() {
            super.onRecomputeStarted();
        }

        @Override
        public void onRecomputeFinished(RouteInfo route, int recomputeType) {
            super.onRecomputeFinished(route, recomputeType);
        }

        @Override
        public void onRecomputeError(int error) {
            super.onRecomputeError(error);
        }
    });

}

}

Sound toggles in NavigationFragment are not working properly

When turning off sounds in NavigationFragment only the instructions are being muted, but the tones are still on.

Reproduction steps:

  • Start one of the NavigationSamples (e.g. Navigation - Preview enabled)
  • Start preview
  • Click on the left Button on the InfoBar, and select "Sounds off"
  • Navigation-Instructions announcement are turned off but there still a tone audible

Navigation doesn't stop by removing the NavigationFragment

I've noticed that the Navigation continues running in the background even after the NavigationFragment been removed/destroyed.
I tried setting the route to null while removing the fragment, but this didn't work as well.

What's the proper way to completely stop the navigation?

Unable to build the project.

Hi,
I'm unable to build the project even with the correct key provided!

Could not determine the dependencies of task ':app-samples:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app-samples:debugCompileClasspath'.
Could not find com.sygic.sdk:maps-android:15.0.4.
Required by:
project :app-samples > project :module-browsemap > project :module-common > project :uikit-viewmodels

Possible solution:

Has the maps-android version 15.0.4 been deployed?

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.