javascript - 如何在 LeafletJs 的弹出窗口中显示情节?
问题描述
我尝试了多种方法将绘图放在绘制多边形的弹出窗口中。
<head>
<script src='https://cdn.plot.ly/plotly-latest.min.js'></script>
</head>
<div id='myDiv'><!-- Plotly chart will be drawn inside this DIV --></div>
<script>
function plot(number)
{
var y = [];
for (var i = 0; i < 500; i ++) {
y[i] = Math.random();
}
var data = [
{
y: y,
type: 'histogram',
marker: {
color: 'deepskyblue',
},
}
];
Plotly.newPlot('myDiv', data);
}
plot(600);
</script>
多边形layer
现在是如何在多边形弹出窗口中显示顶部图bind
?
layer.bindPopup(???)
解决方案
推荐阅读
- java - 将 Java 8 项目编译成 Java 6 jar
- java - java heap dump 显示的保留堆内存比预期的要少
- android - android EditText中的imeActionId是什么?
- javascript - 在 JSP 页面上显示所有 Java 列表项
- inno-setup - Inno Setup 更改自定义选项页面上现有单选按钮的标题
- java - 获取 java.lang.NoClassDefFoundError: com/lowagie/text/pdf/FontMapper
- html - 边框半径仅适用于 div 的一侧
- sql-server - SQL SERVER DB 关闭 PHP 连接
- java - context.getText() 排除 ANTLR4 中的空格
- sql-server - 在分页符上隐藏报表服务器中的空列