This commit is contained in:
Bob 2019-11-27 11:23:28 +08:00
parent dcbbf932e6
commit 99f15d67e6
1 changed files with 1 additions and 12 deletions

View File

@ -131,18 +131,7 @@ $(function () {
//-----------------结束-----------------------------------------------------------------------------
var viewport = map.getViewport();
$(viewport).append('<div class="share" ><a href="vector/mode/" style="color: black"><button>矢量</button></a><a href="/" style="color: black"><button>影像</button></a><button id="c">厂区</button><button id="m">煤场</button></div>');
$("#m").click(function () {
var view = map.getView();
view.setCenter([107.54264, 34.89438], 'EPSG:4326', 'EPSG:3857');
});
$("#c").click(function () {
var view = map.getView();
view.setCenter([107.55375, 34.91028], 'EPSG:4326', 'EPSG:3857');
});
$(viewport).append('<div class="share" ><a href="vector/mode/" style="color: black"><button>矢量</button></a><a href="/" style="color: black"><button>影像</button></a></div>');
$('.main-search input').focus(function (e) {
e.preventDefault();
var width = $(this).width();