创建点、弹出窗口、圆、转换坐标问题 (Arcgis JS 4.6 API)
Creating point, popup, circle, convert coordinates issues (Arcgis JS 4.6 API)
我想在底图项目上做一些简单的事情。
- 比如创建一个圆
- 点击创建的点时创建一个弹出窗口。
- 将经纬度转换为 x y
我该如何做这些事情?
var pt = new Point({
longitude: 99.909550,
latitude: 99.751906
});
var lineAtt = {
Name: "fill",
Owner: "fill",
Length: "999 km"
};
// Create a graphic and add the geometry and symbol to it
var pointGraphic = new Graphic({
geometry: pt,
symbol: markerSymbol,
attributes: lineAtt,
popupTemplate: { // autocasts as new PopupTemplate()
title: "{Name}",
content: [{
type: "fields",
fieldInfos: [{
fieldName: "Name"
}, {
fieldName: "Owner"
}, {
fieldName: "Length"
}]
}]
}
});
我找到了在单击创建的点时打开弹出窗口的解决方案。
我想在底图项目上做一些简单的事情。
- 比如创建一个圆
- 点击创建的点时创建一个弹出窗口。
- 将经纬度转换为 x y
我该如何做这些事情?
var pt = new Point({
longitude: 99.909550,
latitude: 99.751906
});
var lineAtt = {
Name: "fill",
Owner: "fill",
Length: "999 km"
};
// Create a graphic and add the geometry and symbol to it
var pointGraphic = new Graphic({
geometry: pt,
symbol: markerSymbol,
attributes: lineAtt,
popupTemplate: { // autocasts as new PopupTemplate()
title: "{Name}",
content: [{
type: "fields",
fieldInfos: [{
fieldName: "Name"
}, {
fieldName: "Owner"
}, {
fieldName: "Length"
}]
}]
}
});
我找到了在单击创建的点时打开弹出窗口的解决方案。