//构建InfoTemplate对象
var template = new InfoTemplate({...});
//构建图层,并指定InfoTemplate选项
var graphicsLayer = new esri.layers.GraphicsLayer({infoTemplate: template});
//触发弹窗,传入位置
map.infoWindow.show(point);
//为InfoTemplate对象传入param,也就是graphic或feature
map.infoWindow.setFeatures([graphic]);
arcgis for js 手动触发infoWindow弹窗
最新推荐文章于 2022-04-24 21:44:33 发布