arcgis for js 4.9 调用WMS出现服务超时
var wmsLayer = new WMSLayer({
url:url1,
sublayers:[
{
name:"CGCS2000"
}
],
spatialReferences:[4490],
imageFormat:"image/jpeg"
})
url:url1 是wms的地址
name:"CGCS2000" 是图层名
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageFormat
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html
这上面例子似乎不完整,能否提供详细例子,谢谢!
url:url1,
sublayers:[
{
name:"CGCS2000"
}
],
spatialReferences:[4490],
imageFormat:"image/jpeg"
})
url:url1 是wms的地址
name:"CGCS2000" 是图层名
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-WMSLayer.html#imageFormat
https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-WMSSublayer.html
这上面例子似乎不完整,能否提供详细例子,谢谢!
2 个回复
defineconst
赞同来自:
谢谢!
小邪
赞同来自:
要回复问题请先登录或注册
发起人
相关问题
问题状态
—— 扫技术支持中心微信服务号!
—— 让GIS知乎问答随时随地!