Hi guys,

I am pretty new to Android and have a problem. I am working on a
navigation app and found a source I am working with for getting a
route by start and end location (here: 
http://code.google.com/p/j2memaprouteprovider/w/list).

Now I am trying to add several overlays like circles or even several
routes, but I doesn't work. Only the route provided is shown alone on
the mapvier. Here's the part of my activity code.
________________________________________________________________________________________

List<Overlay> mapOverlaysMarkerStart =
APTester1StartMAP.getOverlays();
                        Drawable drawable =
this.getResources().getDrawable(R.drawable.pushpin);
                        HelloItemizedOverlay itemizedoverlay = new
HelloItemizedOverlay(drawable,this);

GeoPoint point = new GeoPoint(start_lat_int,start_lon_int);
OverlayItem overlayitemStart = new OverlayItem(point, "abc", "123");

GeoPoint point2 = new GeoPoint(dest_lat_int, dest_lon_int);
OverlayItem overlayitemDest = new OverlayItem(point2, "cde", "456");



                        itemizedoverlay.addOverlay(overlayitemStart);
                        itemizedoverlay.addOverlay(overlayitemDest);

                        mapOverlaysMarkerStart.add(itemizedoverlay);



                                        String url2 = RoadProvider
                                                .getUrl(48.365647, 10.889969, 
48.003063, 11.355514);
                                                //.getUrl(start_lat, start_lon, 
dest_lat, dest_lon);
                                        InputStream is2 = getConnection(url2);
                                        mRoad = RoadProvider.getRoute(is2);
                                        mHandler.sendEmptyMessage(0);



______________________________________________________________________________________



There's always only one route shown, and not all together and I don't
know why. Unfortunatelly I am not familiar with canvas and overlays.

It woud be great if someone could take a look at the
j2memaprouteprovider code and help me out!!!

So long

ChrO

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to