Bläddra i källkod

【地图初始哈】

master
chenshengle 3 år sedan
förälder
incheckning
94f16c6e62
2 ändrade filer med 124 tillägg och 9 borttagningar
  1. +122
    -7
      squareMap/css/index.css
  2. +2
    -2
      squareMap/js/index.js

+ 122
- 7
squareMap/css/index.css Visa fil

@@ -1,9 +1,124 @@
#fengmap{
html,
body,
#fengmap {
margin: 0;
padding: 0;
width: 100%;
height: 100vh;
/* background-color: aqua */
height: 100%;
overflow: hidden;
outline:none;
}

#layers {
position: absolute;
width: 100px;
height: 200px;
}

.my-popup {
background: #2c3e50;
color: #fff;
font-size: 16px;
border-radius: 2px;
border: none;
box-shadow: none;
margin: auto;
justify-content: center;
align-items: center;
width: auto;
display: inline-block !important;
padding-left: 2px;
padding-right: 2px;
}

.fm-control-popmarker1 {
box-sizing: border-box;
width: 200px;
height: 100px;
padding: 10px;
background-color: rgb(255, 255, 255);
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px;
position: absolute;
left: -85px;
top: -100px;
}

.fm-control-popmarker-bot1{
width: 0px;
height: 0px;
font-size: 0px;
overflow: hidden;
position: absolute;
border-width: 20px;
border-style: solid dashed dashed;
border-color: rgba(0, 0, 0, 0.2) transparent transparent;
left: 80px;
bottom: -40px;
}

.fm-control-popmarker-top1{
width: 0px;
height: 0px;
font-size: 0px;
overflow: auto;
position: absolute;
border-style: solid dashed dashed;
border-width: 20px;
border-color: rgb(255, 255, 255) transparent transparent;
left: 80px;
bottom: -39px;
}



.fm-control-popmarker2 {
box-sizing: border-box;
width: 200px;
height: 100px;
padding: 10px;
background-color: rgb(255, 255, 255);
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 6px; position: absolute;
left: -85px;
top: -120px;
}

#info{
overflow:auto;
height:80px;
margin-top:0px
}

#bank{
color: #337ab7;
text-decoration: none;
}


.fm-control-popmarker-bot2{
width: 0px;
height: 0px;
font-size: 0px;
overflow: hidden;
position: absolute;
border-width: 20px;
border-style: solid dashed dashed;
border-color: rgba(0, 0, 0, 0.2) transparent transparent;
left: 80px;
bottom: -40px;
}

.fm-control-popmarker-top2{
width: 0px;
height: 0px;
font-size: 0px;
overflow: auto;
position: absolute;
border-style: solid dashed dashed;
border-width: 20px;
border-color: rgb(255, 255, 255) transparent transparent;
left: 80px;
bottom: -39px;
}
body{
margin: 0 ;
padding: 0;
}

+ 2
- 2
squareMap/js/index.js Visa fil

@@ -1,5 +1,6 @@
$(function(){
// let baseUrl='https://ctest.malls.iformall.com/C';
let baseUrl='/C';
// if(window.location.origin=='https://gametest.malls.iformall.com'){
// baseUrl='https://ctest.malls.iformall.com/C'
@@ -55,7 +56,6 @@ $(function(){
let toolbar = new fengmap.FMToolbar(toolbarOptions); //楼层控件
let zoomToolbar = new fengmap.FMZoomControl(zoomOptions); //缩放控件
let compass = new fengmap.FMCompass(compassOptions); //指南针控件
let earch = new fengmap.FMSearchRequest()
toolbar.addTo(map);
zoomToolbar.addTo(map);
compass.addTo(map);
@@ -66,7 +66,7 @@ $(function(){
animate: true,
duration: 0.3,
finish: function() {
console.log("setRotation");
// console.log("setRotation");
}
});
});


Laddar…
Avbryt
Spara