这部分法典包含一些坐标,并在地图上打着一角。
private void drawMapLocations(Canvas canvas, MapView mapView) {
Iterator<MapTagLocation> iterator = mapTab.getMapLocations().iterator();
Point screenCoords = new Point();
while (iterator.hasNext()) {
MapTagLocation location = iterator.next();
mapView.getProjection().toPixels(location.getPoint(), screenCoords);
canvas.drawBitmap(tagIcon, screenCoords.x - tagIcon.getWidth() / 2, screenCoords.y - tagIcon.getHeight(), null);
}
}
现在,我想拿出一种办法,消除或取代地图中的具体标签。 是否有办法?
页: 1