use of com.baidu.mapapi.map.MarkerOptions in project SmartCampus by Vegen.
the class EaseBaiduMapActivity method showMap.
private void showMap(double latitude, double longtitude, String address) {
sendButton.setVisibility(View.GONE);
LatLng llA = new LatLng(latitude, longtitude);
CoordinateConverter converter = new CoordinateConverter();
converter.coord(llA);
converter.from(CoordinateConverter.CoordType.COMMON);
LatLng convertLatLng = converter.convert();
OverlayOptions ooA = new MarkerOptions().position(convertLatLng).icon(BitmapDescriptorFactory.fromResource(R.drawable.ease_icon_marka)).zIndex(4).draggable(true);
mBaiduMap.addOverlay(ooA);
MapStatusUpdate u = MapStatusUpdateFactory.newLatLngZoom(convertLatLng, 17.0f);
mBaiduMap.animateMapStatus(u);
}
use of com.baidu.mapapi.map.MarkerOptions in project PhotoNoter by yydcdut.
the class MapPresenterImpl method onGetReverseGeoCodeResult.
@Override
public void onGetReverseGeoCodeResult(ReverseGeoCodeResult reverseGeoCodeResult) {
if (reverseGeoCodeResult == null || reverseGeoCodeResult.error != SearchResult.ERRORNO.NO_ERROR) {
return;
}
mBaiduMap.clear();
mBaiduMap.addOverlay(new MarkerOptions().position(reverseGeoCodeResult.getLocation()).icon(BitmapDescriptorFactory.fromResource(R.drawable.icon_gcoding)));
mBaiduMap.setMapStatus(MapStatusUpdateFactory.newLatLng(reverseGeoCodeResult.getLocation()));
mIMapView.setToolbarTitle(reverseGeoCodeResult.getAddress());
}
use of com.baidu.mapapi.map.MarkerOptions in project AndroidStudy by tinggengyan.
the class BaiduMapUtil method addOverlay.
// 标记
public void addOverlay(final MapStatus mapStatus) {
// 地图操作的中心点。
LatLng target = mapStatus.target;
// 地图操作中心点在屏幕中的坐标
Point targetScreen = mapStatus.targetScreen;
// 地图缩放级别 3~21
float zoom = mapStatus.zoom;
MarkerOptions ooA = new MarkerOptions().position(target).icon(mCurrentMarker).zIndex(9).draggable(true);
ooA.animateType(MarkerOptions.MarkerAnimateType.drop);
this.mBaiduMap.addOverlay(ooA);
}
use of com.baidu.mapapi.map.MarkerOptions in project wechat by motianhuo.
the class BaiduMapActivity method showMap.
private void showMap(double latitude, double longtitude, String address) {
txt_right.setVisibility(View.GONE);
LatLng llA = new LatLng(latitude, longtitude);
CoordinateConverter converter = new CoordinateConverter();
converter.coord(llA);
converter.from(CoordinateConverter.CoordType.COMMON);
LatLng convertLatLng = converter.convert();
OverlayOptions ooA = new MarkerOptions().position(convertLatLng).icon(BitmapDescriptorFactory.fromResource(R.drawable.icon_marka)).zIndex(4).draggable(true);
mBaiduMap.addOverlay(ooA);
MapStatusUpdate u = MapStatusUpdateFactory.newLatLngZoom(convertLatLng, 17.0f);
mBaiduMap.animateMapStatus(u);
}
Aggregations