[IOTA Map] Added more info in tooltip
这个提交包含在:
父节点
e1444c2abf
当前提交
84ba8d3e3d
共有 1 个文件被更改,包括 3 次插入 和 1 次删除
|
|
@ -149,12 +149,14 @@ function addMarker(L, D, mapColor, map) {
|
||||||
iconSize: [60, 10]
|
iconSize: [60, 10]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var markerTitle = D['tag'] + ' - ' + D['prefix'] + ' - ' + D['name'];
|
||||||
|
|
||||||
// It seems to me that latitudes have the wrong sign to be drawn correctly in leaflet. That's why they are mulitipled with -1 to be drawn in the correct hemisphere.
|
// It seems to me that latitudes have the wrong sign to be drawn correctly in leaflet. That's why they are mulitipled with -1 to be drawn in the correct hemisphere.
|
||||||
L.marker(
|
L.marker(
|
||||||
[D['lat1']*-1, D['lon1']], {
|
[D['lat1']*-1, D['lon1']], {
|
||||||
icon: myIcon,
|
icon: myIcon,
|
||||||
iota: D['tag'],
|
iota: D['tag'],
|
||||||
title: D['tag'],
|
title: markerTitle,
|
||||||
}
|
}
|
||||||
).addTo(map).on('click', onClick);
|
).addTo(map).on('click', onClick);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用