MapExtension extension Null safety
地图相关操作
Methods
-
getBaiduHeatMapEnabled(
) → Future< bool?> - 获取map是否打开百度城市热力图图层
-
getBuildingsEnabled(
) → Future< bool?> - 获取map是否现显示3D楼块效果
-
getForceTouchEnabled(
) → Future< bool?> - 获取map是否支持3Dtouch
-
getGesturesEnabled(
) → Future< bool?> - 获取map是否支持所有手势操作
-
getLogoPosition(
) → Future - 获取map的logo位置
-
getMapFontSizeLevel(
) → Future - 获取map的字体大小 since 3.1.0
-
getMapLanguageType(
) → Future - 获取map的语言类型 since 3.1.0
-
getMapScaleBarPosition(
) → Future - 获取map的比例尺的位置
-
getMapShowOperateLayer(
) → Future< bool?> - 获取地图是否展示运营图层 since 3.2.0
-
getMapStatus(
) → Future - 获取地图状态
-
getMapType(
) → Future - 获取map的展示类型
-
getMaxZoomLevel(
) → Future< int?> - 获取map的自定义最大比例尺级别
-
getMinOverlooking(
) → Future< int?> - 获取map的俯视角度最小值
-
getMinZoomLevel(
) → Future< int?> - 获取map的自定义最小比例尺级别
-
getOverlookEnabled(
) → Future< bool?> - 获取map是否支持俯仰角
-
getOverlooking(
) → Future< double?> - 获取map的地图俯视角度
-
getRotateEnabled(
) → Future< bool?> - 获取map是否支持旋转
-
getRotation(
) → Future< double?> - 获取map的旋转角度
-
getScrollEnabled(
) → Future< bool?> - 获取map是否支持用户移动地图
-
getShowMapPoi(
) → Future< bool?> - 获取map是否显示底图poi标注
-
getShowMapScaleBar(
) → Future< bool?> - 获取map是否显式比例尺
-
getTrafficEnabled(
) → Future< bool?> - 获取map是否打开路况图层(在某些Android机型上,路况图无法正常展示)
-
getVisibleMapBounds(
) → Future - 获取map的可视范围
-
getZoomEnabled(
) → Future< bool?> - 获取map是否支持用户多点缩放(双指)
-
getZoomEnabledWithTap(
) → Future< bool?> - 获取map是否支持用户缩放(双击或双指单击)
-
getZoomLevel(
) → Future< int?> - 获取map的比例尺级别
-
setCenterCoordinate(
dynamic coordinate, bool animated, {int? animateDurationMs}) → Future< bool> - 设定地图中心点坐标
-
setCompassImage(
String imagePath) → Future< bool> - 设置罗盘的图片
-
setCustomTrafficColor(
{required dynamic smooth, required dynamic slow, required dynamic congestion, required dynamic severeCongestion}) → Future< bool> - 自定义路况颜色。
-
setNewLatLngZoom(
{required dynamic coordinate, required double zoom, int? animateDurationMs}) → Future< bool> - 设置地图中心点以及缩放级别(Android 独有)
-
setNewMapStatus(
{required dynamic mapStatus, int? animateDurationMs}) → Future< bool> - 更新地图新状态
-
setScrollBy(
int xPixel, int yPixel, {int? animateDurationMs}) → Future< bool> - 按像素移动地图中心点(Android独有)
-
setVisibleMapBounds(
dynamic visibleMapBounds, bool animated) → Future< bool> - 设置显示在屏幕中的地图地理范围
-
setVisibleMapRectWithPadding(
{required dynamic visibleMapBounds, required dynamic insets, required bool animated}) → Future< bool> - 设置显示在指定相对于MapView的padding中的地图地理范围 since 3.1.0
-
setVisibleMapRectWithPaddingHandler(
{required dynamic visibleMapBounds, required dynamic insets, required bool animated}) → Future< bool> -
设置显示在指定相对于MapView的padding中的地图地理范围
@Deprecated('Use `setVisibleMapRectWithPadding` method instead since 3.1.0')
-
setZoomBy(
double amount, {int? animateDurationMs}) → Future< bool> - 根据给定增量缩放地图级别(Android独有)
-
setZoomPointBy(
double amount, dynamic focus, {int? animateDurationMs}) → Future< bool> - 根据给定增量以及给定的屏幕坐标缩放地图级别(Android独有)
-
setZoomTo(
double zoom, {int? animateDurationMs}) → Future< bool> - 设置地图缩放级别(Android独有)
-
takeSnapshot(
) → Future< Uint8List?> - 获得地图当前可视区域截图
-
takeSnapshotWithRect(
dynamic rect) → Future< Uint8List?> - 获得地图指定区域截图 (ios)
-
updateMapOptions(
dynamic change) → Future< bool> - flutter -> native
-
zoomIn(
) → Future< bool> - map放大一级比例尺
-
zoomOut(
) → Future< bool> - map缩小一级比例尺