fix: BUG修改

This commit is contained in:
kun 2024-03-28 14:21:12 +08:00
parent 9bd67949d0
commit 243c86764c
4 changed files with 5 additions and 2 deletions

View File

@ -104,8 +104,8 @@
</script>
<script type="module" src="/src/main.ts"></script>
<script
src="https://webapi.amap.com/maps?v=2.0&key=8d7b8cd643454bec7737b3423647be21&plugin=AMap.Autocomplete,AMap.PlaceSearch,AMap.MouseTool,AMap.Geocoder,AMap.Driving"
defer="defer"></script>
src="https://webapi.amap.com/maps?v=2.0&key=8d7b8cd643454bec7737b3423647be21&plugin=AMap.Autocomplete,AMap.PlaceSearch,AMap.MouseTool,AMap.Geocoder,AMap.Driving"
defer="defer"></script>
<script src="/jquery-1.12.4.min.js"></script>
<!-- 用于前端与插件交互 -->
<script src="/jsencrypt.min.js"></script>

View File

@ -963,6 +963,7 @@ function initMap() {
map = new AMap.Map("mapContainer", {
resizeEnable: true
});
map.setFeatures(['bg','road','point','building']);
// var geocoder = new AMap.Geocoder({});
// //
// var autoOptions = {

View File

@ -1142,6 +1142,7 @@ function initMap() {
map = new AMap.Map("mapContainer", {
resizeEnable: true
});
map.setFeatures(['bg','road','point','building']);
var geocoder = new AMap.Geocoder({});
//
var autoOptions = {

View File

@ -1404,6 +1404,7 @@ function initMap() {
// center: [116.39, 39.9],
// offset: new AMap.Pixel(-10, -10) //
});
map.setFeatures(['bg','road','point','building']);
var geocoder = new AMap.Geocoder({});
//
var autoOptions = {