Bonjour à tous,
Je teste actuellement le tracé de polyline sur Google Map avec un exemple de la LST "Android Tracé sur carte".
Le code fournit semble ne plus être en phase avec le SDK actuel.
Après quelque recherche, il semblerait que :
- com.google.android.maps.* est été déplacé vers com.google.android.gms.maps.*
- com.google.android.maps.GeoPoint soit remplacé par import com.google.android.gms.maps.model.LatLng
Je n'ai quasiment aucune connaissance en Java, je n'arrive pas à dépatouiller les erreurs suivantes :
Quelqu'un aurait-il déja été confronté a ce problème ou serait-il me donner une piste ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 Erreur retournée : src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:88: error: cannot find symbol public static class RoutePathOverlay extends Overlay { ^ symbol: class Overlay location: class GWDCPCOL_CarteTrace src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:69: error: cannot find symbol vMap.getOverlays().add(1,new RoutePathOverlay(path,Color.rgb(nRouge,nVert,nBleu),nOpacite,clStyle,nEpaisseur)); ^ symbol: method getOverlays() location: variable vMap of type MapView src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:113: error: cannot find symbol Projection projection = mapView.getProjection(); ^ symbol: method getProjection() location: variable mapView of type MapView src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:121: error: cannot find symbol projection.toPixels(gPointA, pointA); ^ symbol: method toPixels(LatLng,Point) location: variable projection of type Projection src\com\pcsoft\android_trace_sur_carte\wdgen\GWDCPCOL_CarteTrace.java:130: error: cannot find symbol projection.toPixels(gPointB, pointB); ^
Partager