amiqat / osmdroid

Automatically exported from code.google.com/p/osmdroid
0 stars 0 forks source link

redraw path overlay #252

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

Hello and sorry for my english,
i've a problem with the path overlay of the osmdroid-libary 3.0.4.
i want to change the path.
but after the second methode call the path would'nt change. it still is the 
path of the first call.

here is the methode, which draw the path
every waypoint has a geopoint-object, which includes the coordinates

private void setPathInMap() {

    this.pathOverlay = new PathOverlay(Color.BLUE, this);
    this.mapView.getOverlays().add(this.pathOverlay);

    /* Setzen der Wegpunkte */
    for (WayPoint wayPoint : this.tour.getWayPoints()) {

        double latitude = wayPoint.getGeoPoint().getLatitude();
        double longitude = wayPoint.getGeoPoint().getLongitude();

        this.pathOverlay.addPoint(new org.osmdroid.util.GeoPoint(latitude,
                longitude));
    }

    this.mapView.invalidate();
}

has anybody an idea

thanks for your help

Original issue reported on code.google.com by stappert...@googlemail.com on 28 Aug 2011 at 7:41

GoogleCodeExporter commented 8 years ago
Sorry for my Issue. I've solved the problem. Thank you for your understanding.

Original comment by stappert...@googlemail.com on 29 Aug 2011 at 9:53

GoogleCodeExporter commented 8 years ago
Submitter says it is not an issue

Original comment by neilboyd on 2 Sep 2011 at 5:18

GoogleCodeExporter commented 8 years ago
Hey kannst mir vlt sagne wie du das gelöst hast. habe das Problem das meine 
wegPunkte nicht korrekt gesetz werden 

Original comment by birasant...@gmail.com on 2 Jul 2014 at 8:51