Skip to content
This repository was archived by the owner on Sep 28, 2021. It is now read-only.

迁移至1.0.0

小山 edited this page Jul 9, 2020 · 2 revisions

1.0.0版本清除了一些原本Deprecated的接口,主要就是图片相关的接口

  1. 所有的iconUri, imageUri及配合使用的ImageConfiguration参数都使用ImageProvider类型的参数替换即可。ImageProvider就是平时使用的Image widget所承载的图片载体,常用的实现类包括AssetImage, FileImage, NetworkImage等。
  2. 移除所有的用来配置ios端图片大小的size参数,ios端大小已经可以自适应大小。

具体涉及的接口

  1. MarkerOption
    1. 删除iconUri, imageConfig, 使用iconProvider代替。
    2. 删除width, height参数,不再需要。
  2. SmoothMoveMarkerOption
    1. 删除iconUri, imageConfig, 使用iconProvider代替。
  3. PolylineOption
    1. 删除customTexture, imageConfig, 使用textureProvider代替。
  4. GroundOverlayOption
    1. 删除imageUri, imageConfiguration, 使用imageProvider代替。
  5. MultiPointOption
    1. 删除iconUri, imageConfiguration, 使用iconProvider代替。
    2. 删除size参数,不再需要。

接口名称替换

  1. addHeatmapTile -> addHeatmapTileOverlay
  2. Heatmap -> HeatmapOverlay
Clone this wiki locally