本文整理汇总了Java中com.playuav.android.maps.MarkerInfo.getPosition方法的典型用法代码示例。如果您正苦于以下问题:Java MarkerInfo.getPosition方法的具体用法?Java MarkerInfo.getPosition怎么用?Java MarkerInfo.getPosition使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.playuav.android.maps.MarkerInfo
的用法示例。
在下文中一共展示了MarkerInfo.getPosition方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateMarker
import com.playuav.android.maps.MarkerInfo; //导入方法依赖的package包/类
@Override
public void updateMarker(MarkerInfo markerInfo, boolean isDraggable) {
// if the drone hasn't received a gps signal yet
final LatLong coord = markerInfo.getPosition();
if (coord == null) {
return;
}
final LatLng position = DroneHelper.CoordToBaiduLatLang(coord);
Marker marker = mBiMarkersMap.getValue(markerInfo);
if (marker == null) {
// Generate the marker
generateMarker(markerInfo, position, isDraggable);
} else {
// Update the marker
updateMarker(marker, markerInfo, position, isDraggable);
}
}
示例2: checkForWaypointMarkerMoving
import com.playuav.android.maps.MarkerInfo; //导入方法依赖的package包/类
private void checkForWaypointMarkerMoving(MarkerInfo markerInfo) {
if (markerInfo instanceof MissionItem.SpatialItem) {
LatLong position = markerInfo.getPosition();
// update marker source
MissionItem.SpatialItem waypoint = (MissionItem.SpatialItem) markerInfo;
LatLong waypointPosition = waypoint.getCoordinate();
waypointPosition.setLatitude(position.getLatitude());
waypointPosition.setLongitude(position.getLongitude());
// update flight path
mMapFragment.updateMissionPath(missionProxy);
}
}