http://iclient.supermap.io/examples/mapboxgl/editor.html#01_tiledMapLayer_4214
这个demo用的是什么插件 如何使用npm引入?
http://iclient.supermap.io/web/introduction/mapboxglDevelop.html#specifySQLqueryCondition
可以参考这个介绍,在最上面的准备里有npm引入的方法,可以用全局引入或者部分引入,部分引入的话查询功能需要引入QueryService
http://iclient.supermap.io/web/introduction/mapboxglDevelop.html#Import
还是这个demo
引入
import mapboxgl from "mapbox-gl" import '@supermap/iclient-mapboxgl';
"tiles": ['http://iclient.supermap.io/iserver/services/map-jingjin/rest/maps/%E4%BA%AC%E6%B4%A5%E5%9C%B0%E5%8C%BA%E5%9C%B0%E5%9B%BE/tileimage.png?scale={scale}&x={x}&y={y}&width={width}&height={height}&origin={"x":-180,"y":90}'],
以上配置得到的结果
http://iclient.supermap.io/iserver/services/map-jingjin/rest/maps/%E4%BA%AC%E6%B4%A5%E5%9C%B0%E5%8C%BA%E5%9C%B0%E5%9B%BE/tileimage.png?scale={scale}&x=11&y=4&width={width}&height={height}&origin={%22x%22:-180,%22y%22:90}
scale并没有取到 何解?