我使用了2.1.0版本的SDK。这是我的代码,它为地图添加了注释:
SKAnnotation annotation = new SKAnnotation();
annotation.setUniqueID(10);
annotation.setLocation(new SKCoordinate(30.5234, 50.4501));
annotation.setAnnotationType(SKAnnotation.SK_ANNOTATION_TYPE_MARKER);
annotation.setMininumZoomLevel(5);
mapView.addAnnotation(annotation);
当我点击此注释时,未调用SKMapSurfaceListener.onAnnotationSelected()。 logcat的:
I/MapActivity.onMapActionDown():205﹕ onMapActionDown()
D/SKMaps﹕ SKMapSurfaceView----SINGLE TAP CONFIRMED null
D/SKMaps﹕ SKMapSurfaceView----Check north indicator 4 124.74013 414.43448 0 0 0 0
D/SKMaps﹕ SKMapSurfaceView----notifyWithMapInfo
D/SKMaps﹕ SKMapSurfaceView---- Tapped custom POI id=-1187666264
I/MapActivity.onSingleTap():185﹕ onSingleTap()
D/SKMaps﹕ MapRenderer----ANIMATION FINISH CALLBACK
I/MapActivity.onMapRegionChangeEnded():175﹕ onMapRegionChangeEnded()
以前版本的SDK正常运行。