Add prefecture ID to legend
这个提交包含在:
父节点
8995b44ea3
当前提交
2a6ac0374b
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -150,7 +150,7 @@ info.onAdd = function (map) {
|
||||||
// method that we will use to update the control based on feature properties passed
|
// method that we will use to update the control based on feature properties passed
|
||||||
info.update = function (props) {
|
info.update = function (props) {
|
||||||
this._div.innerHTML = '<h4>Prefecture</h4>' + (props ?
|
this._div.innerHTML = '<h4>Prefecture</h4>' + (props ?
|
||||||
'<b>' + props.name + '</b><br />' : 'Hover over a prefecture');
|
'<b>' + props.id.substring(3,5) + ' - ' + props.name + '</b><br />' : 'Hover over a prefecture');
|
||||||
};
|
};
|
||||||
|
|
||||||
info.addTo(map);
|
info.addTo(map);
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用