你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MapsRenderingClient.GetMapStaticImage 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
API 使用缩放级别呈现包含地图部分的用户定义矩形图像。 如果要决定何时对地图图块服务使用静态图像服务,可能需要考虑如何与呈现的地图进行交互。 如果地图内容相对不变,则静态地图是一个不错的选择。 如果要支持大量缩放、平移和更改地图内容,地图图块服务将是更好的选择。 该服务还提供图像合成功能,用于获取包含其他数据的静态图像。
public virtual Azure.Response<System.IO.Stream> GetMapStaticImage (Azure.Maps.Rendering.GetMapStaticImageOptions options, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMapStaticImage : Azure.Maps.Rendering.GetMapStaticImageOptions * System.Threading.CancellationToken -> Azure.Response<System.IO.Stream>
override this.GetMapStaticImage : Azure.Maps.Rendering.GetMapStaticImageOptions * System.Threading.CancellationToken -> Azure.Response<System.IO.Stream>
Public Overridable Function GetMapStaticImage (options As GetMapStaticImageOptions, Optional cancellationToken As CancellationToken = Nothing) As Response(Of Stream)
参数
- options
- GetMapStaticImageOptions
用于配置静态映像的选项。
- cancellationToken
- CancellationToken
要使用的取消标记。