Discussion Board

Results 1 to 1 of 1

Hybrid View

  1. #1
    Registered User
    Join Date
    Jun 2012

    How create MapPolyline in locationUpdated?

    Hi, i have this problem. I create app to trening. I would like to create a map that shows the current lines of the traveled path. I try do it in method locationUpdated because my class implement LocationListener. When i run my app on the map nothing happens.

    public synchronized void updateMap(Location location) {
            QualifiedCoordinates qc = location.getQualifiedCoordinates();
            GeoCoordinate[] geo = new GeoCoordinate[2];
            geo[1] = new GeoCoordinate(qc.getLatitude(), qc.getLongitude(), 0);
            geo[2] = new GeoCoordinate(lastqc.getLatitude(), lastqc.getLongitude(), 0);
            MapPolyline track = mapFactory.createMapPolyline(geo);
    public void locationUpdated(LocationProvider provider, Location location) {
    I would like to achieve the same effect as here (last image):


    what i doing wrong?
    Last edited by azspider; 2012-12-28 at 10:26.

Similar Threads

  1. QML Map element and MapPolyLine data coming from C++
    By tedturbo in forum [Archived] Qt Quick
    Replies: 0
    Last Post: 2012-09-16, 14:36
  2. Is there an app or a dev willing to create the app to create M3U files from folders?
    By MartinLemburg in forum General Development Questions
    Replies: 4
    Last Post: 2012-06-01, 10:12
  3. Replies: 6
    Last Post: 2011-12-30, 06:06
  4. Location API - locationUpdated() called only once
    By grbrg in forum Mobile Java General
    Replies: 7
    Last Post: 2007-07-20, 08:57
  5. Steps to create SIS. How create .pkg file for petran?
    By BobbyFletcher in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2004-04-21, 18:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts