2

我使用了 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()。日志猫:

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 可以正常工作。

4

0 回答 0