Browse Source

commit

master
hhx 3 years ago
parent
commit
25ea51cf85
  1. BIN
      04.系统编码/.vs/BeijingSafeguard/v15/.suo
  2. BIN
      04.系统编码/.vs/BeijingSafeguard/v15/Server/sqlite3/storage.ide-wal
  3. 16
      04.系统编码/App/Content/scripts/beijing/map.js
  4. 8
      04.系统编码/App/Content/styles/index.css
  5. 1
      04.系统编码/App/Views/Beijing/Index.cshtml

BIN
04.系统编码/.vs/BeijingSafeguard/v15/.suo

Binary file not shown.

BIN
04.系统编码/.vs/BeijingSafeguard/v15/Server/sqlite3/storage.ide-wal

Binary file not shown.

16
04.系统编码/App/Content/scripts/beijing/map.js

@ -97,12 +97,28 @@ var Map = function (parent) {
L.tileLayer.gaodeOther().addTo(this.map);
$('.leaflet-control-attribution').hide();
this.map.on('mousemove', this.OnMapMove.bind(this))
};
this.CenterMap = function (lat, lng) {
this.map.setView([lat, lng], 11);
};
this.OnMapMove = function (e) {
$('.latlng').text('当前经纬度:{0}, {1}'.format(this.getLatLng(e.latlng.lng), this.getLatLng(e.latlng.lat)))
};
this.getLatLng = function (value) {
value = value.toString()
let index = value.indexOf('.')
if (index !== -1) {
value = value.substring(0, 6 + index + 1)
} else {
value = value.substring(0)
}
return parseFloat(value).toFixed(6)
}
this.OnParticleButtonClick = function () {
// Toggle switch on/off
var parent = $(event.target).parent();

8
04.系统编码/App/Content/styles/index.css

@ -1304,4 +1304,12 @@
right: 0;
transition: all 0.5s;
background: url("../images/toggle-left.png") no-repeat;
}
.latlng {
position: absolute;
left: 20px;
bottom: 12px;
z-index: 1000;
color: #3a3a3a;
}

1
04.系统编码/App/Views/Beijing/Index.cshtml

@ -21,6 +21,7 @@
<a id="clear-button" class="clear-btn btn">清除...</a>
<a id="capture-button" class="export btn">导出图片...</a>
<a id="download-button" href="~/Content/thirds/niuniu-capture/CaptureInstall.exe" class="export btn" style="display:none;" title="安装成功后,手动刷新本页面">安装插件...</a>
<span class="latlng"></span>
</div>
<div class="right">

Loading…
Cancel
Save