我在地图上有一个符号标记。我点击符号时想要显示弹出窗口。 我的代码:
map = new Map("map", {
basemap: "satellite",
center: [139.736, 36.045], // longitude, latitude
zoom: 13
});
var symbol = new PictureMarkerSymbol({
"url":"images/marker.png",
"height":32,
"width":32,
"type":"esriPMS",
"yoffset": 16,
});
map.on("load", coordinates);
function coordinates() {
console.log("got here")
var lat, long;
lat="36.045";
long="139.736";
var mp = new Point(long, lat);
var graphic = new Graphic(mp, symbol);
map.graphics.add(graphic);
}
});
如何在符号上添加弹出窗口? 谢谢