Class: ImageTileSuperMapRest

ImageTileSuperMapRest

SuperMap iServer 影像服务图层源。根据指定的请求参数,返回影像数据栅格瓦片并渲染。

new ImageTileSuperMapRest(options)

Usage
import { ImageTileSuperMapRest } from '@supermapgis/iclient-ol';

new ImageTileSuperMapRest(options);
<script type="text/javascript" src="https://iclient.supermap.io/dist/openlayers/iclient-ol.js"></script>
<script>
  new ol.source.ImageTileSuperMapRest({paramsNames});
</script>
openlayers/mapping/ImageTileSuperMapRest.js, line 9
Name Type Description
options Object

参数。

Name Type Default Description
url string

服务地址。例如: http://{ip}:{port}/iserver/{imageservice-imageserviceName}/restjsr/

collectionId string

影像集合(Collection)的 ID,在一个影像服务中唯一标识影像集合。

sqlFilter string 可选

显示影像的过滤条件。相当于 SQL 查询中的 where 子句。支持 st_geometry 空间函数过滤。11.0 版本暂不支持通过 ECQL 进行过滤。

renderingRule ImageRenderingRule 可选

指定影像显示的风格,包含拉伸显示方式、颜色表、波段组合以及应用栅格函数进行快速处理等。不指定时,使用发布服务时所配置的风格。

ids Array.<number> 可选

返回影像集合中指定 ID 的影像,该 ID 为系统维护的一个自增 ID,为 SuperMap SDX 引擎的 SmID 字段内容。

names Array.<string> 可选

返回影像集合中指定名称影像的瓦片资源。影像名称包含文件后缀,如 S-60-45.tif。

format string 'png' 可选

瓦片表述类型,瓦片格式目前支持 png、jpg 和 webp 三种格式。

transparent boolean true 可选

瓦片是否透明。默认透明。

cacheEnabled boolean true 可选

是否缓存到本地。为 true 时,访问发布的服务时就可以在本地生成地图瓦片,从而可以提高后续服务浏览访问的速度。

tileProxy string 可选

代理地址。

attribution string 'Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>' 可选

版权描述信息。

Version:
  • 10.2.0

Extends

ImageTileSuperMapRest -> ol.source.XYZ