Google지도에서 2 점 사이의 경로를 그리는 작업 예제를 찾는 데 많은 시간을 할애했습니다.코드 예 - 안드로이드의 Google지도
마침내 하나 찾았지만 경로를 그려 내지 않습니다.
다른 사람이 나를 이해하는 데 도움을 줄 수 있습니까?
https://github.com/frogermcs/RoutePathExample
감사합니다 : 이 코드입니다.Google지도에서 2 점 사이의 경로를 그리는 작업 예제를 찾는 데 많은 시간을 할애했습니다.코드 예 - 안드로이드의 Google지도
마침내 하나 찾았지만 경로를 그려 내지 않습니다.
다른 사람이 나를 이해하는 데 도움을 줄 수 있습니까?
https://github.com/frogermcs/RoutePathExample
감사합니다 : 이 코드입니다.이 링크는 더 명확하게하는 방법을 설명합니다. http://csie-tw.blogspot.in/2009/06/android-driving-direction-route-path.html Google 어스 kml을 알고 있습니까? https://developers.google.com/kml/documentation/kml_tut Google지도에서 한 지점에서 다른 지점으로 경로를 그려서 사용했습니다. 당신이 그것을 분석하면 당신은
//---add the marker---
Bitmap bmp2 = BitmapFactory.decodeResource(getResources(), R.drawable.pin);// pin is a resource you have to add
canvas.drawBitmap mapView.getProjection().toPixels(start, screenPts);
//---add the marker---
Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.pin);
canvas.drawBitmap(bmp, screenPts.x, screenPts.y, null);
Point screenPts2 = new Point();
mapView.getProjection().toPixels(end, screenPts2);
이렇게 끝났습니까? – Youddh
이 글을 보시면 같은 주제로 보입니다 : http://stackoverflow.com/questions/2176397/drawing-a-line-path-on-google-maps – crocboy