Commit ff7a96fc authored by 张释方's avatar 张释方

Merge branch 'dev_1.0.1' of http://gitlab.mints-id.com/android/android_street into branch_zsf_2

parents a35a846e 044c435b
...@@ -38,29 +38,6 @@ ...@@ -38,29 +38,6 @@
margin-left: -35px; margin-left: -35px;
} }
#bmap {
width: 100%;
height: 100%;
overflow: hidden;
margin: 0;
position: absolute;
font-family: "微软雅黑";
}
.anchorBL,
a {
display: none !important;
}
#map .gmnoprint {
display: none !important;
}
.zsmaker {
margin-top: 35px;
}
.scale { .scale {
position: fixed; position: fixed;
left: 20px; left: 20px;
......
...@@ -58,7 +58,7 @@ var vm = new Vue({ ...@@ -58,7 +58,7 @@ var vm = new Vue({
scenics: [], scenics: [],
markes: [], markes: [],
pxValue: 50, pxValue: 50,
gdcenter:null gdcenter: null
}, },
created: function () { created: function () {
...@@ -148,6 +148,10 @@ var vm = new Vue({ ...@@ -148,6 +148,10 @@ var vm = new Vue({
if (params != null) { if (params != null) {
console.log(params); console.log(params);
openScenicsFrame(params); openScenicsFrame(params);
G_MAP.setCenter({
lat:params.lat,
lng:params.lng
})
} }
}); });
vm.markes.push(marker); vm.markes.push(marker);
...@@ -200,6 +204,7 @@ var vm = new Vue({ ...@@ -200,6 +204,7 @@ var vm = new Vue({
} }
}, },
G_initMap: function (point, zoomLevel) { G_initMap: function (point, zoomLevel) {
if (zoomLevel == undefined || zoomLevel == null) if (zoomLevel == undefined || zoomLevel == null)
zoomLevel = 15; zoomLevel = 15;
...@@ -221,6 +226,9 @@ var vm = new Vue({ ...@@ -221,6 +226,9 @@ var vm = new Vue({
rotateControl: false, rotateControl: false,
fullscreenControl: false, fullscreenControl: false,
clickableIcons: false, clickableIcons: false,
disableDoubleClickZoom: true,
keyboardShortcuts: false,
// gestureHandling: "auto"
// gestureHandling:"none", // gestureHandling:"none",
// gestureHandling: "greedy", // gestureHandling: "greedy",
...@@ -238,35 +246,26 @@ var vm = new Vue({ ...@@ -238,35 +246,26 @@ var vm = new Vue({
vm.mapScale = getScaleInfos(zoomLevel, lat, vm); vm.mapScale = getScaleInfos(zoomLevel, lat, vm);
}); });
G_MAP.addListener('zoom_changed', function () {
console.log("拖动",vm.gdcenter)
if(vm.gdcenter!=null){
console.log("++++>")
// G_MAP.panTo(vm.gdcenter) //第二次初始化
}
});
G_MAP.addListener("dragend", () => { G_MAP.addListener("dragend", () => {
centerChanged(); centerChanged();
}); });
document.addEventListener("touchstart", function (e) { // document.addEventListener("touchstart", function (e) {
console.log(e.touches); // console.log(e.touches);
if (e.touches.length > 1) { // if (e.touches.length > 1) {
vm.gdcenter= // vm.gdcenter =
{ // {
lat:G_MAP.getCenter().lat(), // lat: G_MAP.getCenter().lat(),
lng:G_MAP.getCenter().lng() // lng: G_MAP.getCenter().lng()
}; // };
console.log("两指",vm.gdcenter) // console.log("两指")
} else { // } else {
vm.gdcenter=null; // vm.gdcenter = null;
console.log("一指",vm.gdcenter) // console.log("一指")
// }
} // }, false);
}, false);
// G_MAP.addListener('zoom_changed', () => { // G_MAP.addListener('zoom_changed', () => {
// console.log(G_MAP.getCenter().lat()) // console.log(G_MAP.getCenter().lat())
...@@ -284,75 +283,75 @@ var vm = new Vue({ ...@@ -284,75 +283,75 @@ var vm = new Vue({
window.onload = function () { window.onload = function () {
allIsOk(); allIsOk();
// init(); // init();
} }
function init() { function init() {
vm.initZsMap({"lng": 0, "lat": 0}) vm.initZsMap({"lng": 0, "lat": 0})
//
setTimeout(function () { // setTimeout(function () {
vm.doShowScenics([ // vm.doShowScenics([
{ // {
"name": "故宫", // "name": "故宫",
"img": "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_camera/img/ui/homepage/1628578695759.jpeg", // "img": "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_camera/img/ui/homepage/1628578695759.jpeg",
"desc": "北京故宫呀", // "desc": "北京故宫呀",
"lng": "116.313355", // "lng": "116.313355",
"lat": "39.983856", // "lat": "39.983856",
"blng": "116.32222419295384", // "blng": "116.32222419295384",
"blat": "39.99602192441332", // "blat": "39.99602192441332",
"bvid": "01002200001309200841046795L" // "bvid": "01002200001309200841046795L"
} // }
]); // ]);
}, 3000) // }, 3000)
//
setTimeout(function () { // setTimeout(function () {
vm.showVrButton = true; // vm.showVrButton = true;
}, 5000) // }, 5000)
//
setTimeout(function () { // setTimeout(function () {
vm.showVrButton = false; // vm.showVrButton = false;
}, 7000) // }, 7000)
//
setTimeout(function () { // setTimeout(function () {
vm.showVrButton = true; // vm.showVrButton = true;
}, 8000) // }, 8000)
//
setTimeout(function () { // setTimeout(function () {
vm.doCloseScenics(); // vm.doCloseScenics();
}, 6000) // }, 6000)
//
setTimeout(function () { // setTimeout(function () {
G_MAP.setMapTypeId('roadmap'); // G_MAP.setMapTypeId('roadmap');
//
}, 7000) // }, 7000)
setTimeout(function () { // setTimeout(function () {
G_MAP.setMapTypeId('terrain'); // G_MAP.setMapTypeId('terrain');
//
}, 11000) // }, 11000)
//
setTimeout(function () { // setTimeout(function () {
G_MAP.setMapTypeId('satellite'); // G_MAP.setMapTypeId('satellite');
//
}, 13000) // }, 13000)
setTimeout(function () { // setTimeout(function () {
G_MAP.setMapTypeId('hybrid'); // G_MAP.setMapTypeId('hybrid');
//
}, 15000) // }, 15000)
//
setTimeout(function () { // setTimeout(function () {
vm.doShowScenics([ // vm.doShowScenics([
{ // {
"name": "故宫", // "name": "故宫",
"img": "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_camera/img/ui/homepage/1628578695759.jpeg", // "img": "https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg_camera/img/ui/homepage/1628578695759.jpeg",
"desc": "北京故宫呀", // "desc": "北京故宫呀",
"lng": "116.313355", // "lng": "116.313355",
"lat": "39.983856", // "lat": "39.983856",
"blng": "116.32222419295384", // "blng": "116.32222419295384",
"blat": "39.99602192441332", // "blat": "39.99602192441332",
"bvid": "01002200001309200841046795L" // "bvid": "01002200001309200841046795L"
} // }
]); // ]);
}, 9000) // }, 9000)
} }
...@@ -19,7 +19,13 @@ c?"a":_.Ir.satellite,null,null,"satellite",a.N,a.j,a.H,b,a.i)},jja=function(a,b) ...@@ -19,7 +19,13 @@ c?"a":_.Ir.satellite,null,null,"satellite",a.N,a.j,a.H,b,a.i)},jja=function(a,b)
_.Ir.roadmap,"m@"+a.O,{type:68,params:{set:"Roadmap"}},"roadmap",a.N,a.j,a.H,void 0,a.i):"terrain"==b?new us(jja(a,"terrain"),a.g,a.o,21,"\u5730\u5f62","\u663e\u793a\u5e26\u5730\u5f62\u7684\u8857\u9053\u5730\u56fe",_.Ir.terrain,"r@"+a.O,{type:68,params:{set:"Terrain"}},"terrain",a.N,a.j,a.H,void 0,a.i):new us(jja(a,"roadmap"),a.g,a.o,22,"\u5730\u56fe","\u663e\u793a\u8857\u9053\u5730\u56fe",_.Ir.roadmap,"m@"+a.O,{type:68,params:{set:"Roadmap"}},"roadmap",a.N,a.j,a.H,void 0,a.i);return b},lja=function(a){if(!b){var b= _.Ir.roadmap,"m@"+a.O,{type:68,params:{set:"Roadmap"}},"roadmap",a.N,a.j,a.H,void 0,a.i):"terrain"==b?new us(jja(a,"terrain"),a.g,a.o,21,"\u5730\u5f62","\u663e\u793a\u5e26\u5730\u5f62\u7684\u8857\u9053\u5730\u56fe",_.Ir.terrain,"r@"+a.O,{type:68,params:{set:"Terrain"}},"terrain",a.N,a.j,a.H,void 0,a.i):new us(jja(a,"roadmap"),a.g,a.o,22,"\u5730\u56fe","\u663e\u793a\u8857\u9053\u5730\u56fe",_.Ir.roadmap,"m@"+a.O,{type:68,params:{set:"Roadmap"}},"roadmap",a.N,a.j,a.H,void 0,a.i);return b},lja=function(a){if(!b){var b=
document.createElement("div");b.style.pointerEvents="none";b.style.width="100%";b.style.height="100%";b.style.boxSizing="border-box";b.style.position="absolute";b.style.zIndex=1000002;b.style.opacity=0;b.style.border="2px solid #1a73e8"}new _.Dn(a,"focus",function(){b.style.opacity=_.Sr?_.tr(a,":focus-visible")?1:0:!1===_.Rr?0:1});new _.Dn(a,"blur",function(){b.style.opacity=0});return b},mja=function(a){_.G(this,a,2)},As=function(a){_.G(this,a,14)},nja=function(a){Bs||(Bs={oa:"mu4sesbebbeesb"},Bs.Da= document.createElement("div");b.style.pointerEvents="none";b.style.width="100%";b.style.height="100%";b.style.boxSizing="border-box";b.style.position="absolute";b.style.zIndex=1000002;b.style.opacity=0;b.style.border="2px solid #1a73e8"}new _.Dn(a,"focus",function(){b.style.opacity=_.Sr?_.tr(a,":focus-visible")?1:0:!1===_.Rr?0:1});new _.Dn(a,"blur",function(){b.style.opacity=0});return b},mja=function(a){_.G(this,a,2)},As=function(a){_.G(this,a,14)},nja=function(a){Bs||(Bs={oa:"mu4sesbebbeesb"},Bs.Da=
[_.Jl()]);var b=Bs;return _.wi.g(a.Kb(),b)},Cs=function(a){_.G(this,a,2)},Ds=function(a){_.G(this,a,2)},Es=function(a){_.G(this,a,4)},Fs=function(a){_.G(this,a,1)},Gs=function(a){_.G(this,a,8)},pja=function(a){this.g=a;this.i=_.nn("p",a);this.o=0;_.Mm(a,"gm-style-pbc");_.Mm(this.i,"gm-style-pbt");_.im(oja,a);a.style.transitionDuration="0";a.style.opacity=0;_.wn(a)},qja=function(a,b){var c=_.qk.V?"\u6309\u4f4f \u2318 \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe":"\u6309\u4f4f Ctrl \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe"; [_.Jl()]);var b=Bs;return _.wi.g(a.Kb(),b)},Cs=function(a){_.G(this,a,2)},Ds=function(a){_.G(this,a,2)},Es=function(a){_.G(this,a,4)},Fs=function(a){_.G(this,a,1)},Gs=function(a){_.G(this,a,8)},pja=function(a){this.g=a;this.i=_.nn("p",a);this.o=0;_.Mm(a,"gm-style-pbc");_.Mm(this.i,"gm-style-pbt");_.im(oja,a);a.style.transitionDuration="0";a.style.opacity=0;_.wn(a)},qja=function(a,b){var c=_.qk.V?"\u6309\u4f4f \u2318 \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe":"\u6309\u4f4f Ctrl \u5e76\u6eda\u52a8\u9f20\u6807\u6eda\u8f6e\u624d\u53ef\u7f29\u653e\u5730\u56fe";
a.i.textContent=(void 0===b?0:b)?c:"\u4f7f\u7528\u53cc\u6307\u79fb\u52a8\u5730\u56fe";a.g.style.transitionDuration="0.3s";a.g.style.opacity=1},rja=function(a){a.g.style.transitionDuration="0.8s";a.g.style.opacity=0},sja=function(){var a=window.innerWidth/(document.body.scrollWidth+1);return.95>window.innerHeight/(document.body.scrollHeight+1)||.95>a||_.Aga()},tja=function(a,b,c,d){return 0==b?"none":"none"==c||"greedy"==c||"zoomaroundcenter"==c?c:d?"greedy":"cooperative"==c||a()?"cooperative":"greedy"}, a.i.textContent=(void 0===b?0:b)?c:"\u4f7f\u7528\u53cc\u6307\u79fb\u52a8\u5730\u56fe";a.g.style.transitionDuration="0.3s";a.g.style.opacity=1},rja=function(a){a.g.style.transitionDuration="0.8s";a.g.style.opacity=0},sja=function(){var a=window.innerWidth/(document.body.scrollWidth+1);return.95>window.innerHeight/(document.body.scrollHeight+1)||.95>a||_.Aga()},tja=function(a,b,c,d){
var x= 0==b?"none":"none"==c||"greedy"==c||"zoomaroundcenter"==c?c:d?"greedy":"cooperative"==c||a()?"cooperative":"greedy"
if(x='cooperative')
x='zoomaroundcenter';
return x;
},
uja=function(a){return new _.Cn([a.draggable,a.av,a.hm],_.zk(tja,sja))},wja=function(a,b,c,d){var e=this;this.g=a;this.o=b;this.N=c.Bf;this.O=d;this.H=0;this.j=null;this.i=!1;_.ho(c.Gh,{Sd:function(f){Hs(e,"mousedown",f.coords,f.Ib)},ii:function(f){e.o.Zl()||(e.j=f,5<Date.now()-e.H&&vja(e))},be:function(f){Hs(e,"mouseup",f.coords,f.Ib)},onClick:function(f){var g=f.coords,h=f.event;f=f.Ni;3===h.button?f||Hs(e,"rightclick",g,h.Ib):f?Hs(e,"dblclick",g,h.Ib,_.Gn("dblclick",g,h.Ib)):Hs(e,"click",g,h.Ib, uja=function(a){return new _.Cn([a.draggable,a.av,a.hm],_.zk(tja,sja))},wja=function(a,b,c,d){var e=this;this.g=a;this.o=b;this.N=c.Bf;this.O=d;this.H=0;this.j=null;this.i=!1;_.ho(c.Gh,{Sd:function(f){Hs(e,"mousedown",f.coords,f.Ib)},ii:function(f){e.o.Zl()||(e.j=f,5<Date.now()-e.H&&vja(e))},be:function(f){Hs(e,"mouseup",f.coords,f.Ib)},onClick:function(f){var g=f.coords,h=f.event;f=f.Ni;3===h.button?f||Hs(e,"rightclick",g,h.Ib):f?Hs(e,"dblclick",g,h.Ib,_.Gn("dblclick",g,h.Ib)):Hs(e,"click",g,h.Ib,
_.Gn("click",g,h.Ib))},Ei:{hi:function(f,g){e.i||(e.i=!0,Hs(e,"dragstart",f.Jd,g.Ib))},Gj:function(f,g){var h=e.i?"drag":"mousemove";Hs(e,h,f.Jd,g.Ib,_.Gn(h,f.Jd,g.Ib))},Ti:function(f,g){e.i&&(e.i=!1,Hs(e,"dragend",f,g.Ib))}},Fj:function(f){_.On(f);Hs(e,"contextmenu",f.coords,f.Ib)}}).Zi(!0);new _.En(c.Bf,c.Gh,{Fk:function(f){return Hs(e,"mouseout",f,f)},Gk:function(f){return Hs(e,"mouseover",f,f)}})},vja=function(a){if(a.j){var b=a.j;xja(a,"mousemove",b.coords,b.Ib);a.j=null;a.H=Date.now()}},Hs= _.Gn("click",g,h.Ib))},Ei:{hi:function(f,g){e.i||(e.i=!0,Hs(e,"dragstart",f.Jd,g.Ib))},Gj:function(f,g){var h=e.i?"drag":"mousemove";Hs(e,h,f.Jd,g.Ib,_.Gn(h,f.Jd,g.Ib))},Ti:function(f,g){e.i&&(e.i=!1,Hs(e,"dragend",f,g.Ib))}},Fj:function(f){_.On(f);Hs(e,"contextmenu",f.coords,f.Ib)}}).Zi(!0);new _.En(c.Bf,c.Gh,{Fk:function(f){return Hs(e,"mouseout",f,f)},Gk:function(f){return Hs(e,"mouseover",f,f)}})},vja=function(a){if(a.j){var b=a.j;xja(a,"mousemove",b.coords,b.Ib);a.j=null;a.H=Date.now()}},Hs=
function(a,b,c,d,e){vja(a);xja(a,b,c,d,e)},xja=function(a,b,c,d,e){var f=e||d,g=a.o.Pf(c),h=_.Tl(g,a.g.getProjection()),k=a.N.getBoundingClientRect();c=new _.Fn(h,f,new _.M(c.clientX-k.left,c.clientY-k.top),new _.M(g.g,g.i));var l=!!d&&!!d.touches,m=!!d&&"touch"===d.pointerType,p=!!d&&!!window.MSPointerEvent&&d.pointerType===window.MSPointerEvent.MSPOINTER_TYPE_TOUCH;f=a.g.__gm.o;g=b;h=f.j;var q=c.domEvent&&_.Tk(c.domEvent);if(f.g){k=f.g;var r=f.o}else if("mouseout"==g||q)r=k=null;else{for(var t= function(a,b,c,d,e){vja(a);xja(a,b,c,d,e)},xja=function(a,b,c,d,e){var f=e||d,g=a.o.Pf(c),h=_.Tl(g,a.g.getProjection()),k=a.N.getBoundingClientRect();c=new _.Fn(h,f,new _.M(c.clientX-k.left,c.clientY-k.top),new _.M(g.g,g.i));var l=!!d&&!!d.touches,m=!!d&&"touch"===d.pointerType,p=!!d&&!!window.MSPointerEvent&&d.pointerType===window.MSPointerEvent.MSPOINTER_TYPE_TOUCH;f=a.g.__gm.o;g=b;h=f.j;var q=c.domEvent&&_.Tk(c.domEvent);if(f.g){k=f.g;var r=f.o}else if("mouseout"==g||q)r=k=null;else{for(var t=
......
...@@ -280,9 +280,9 @@ class GoogleMapFragment() : BaseFragment<ActivityGoogleMapBinding, HomeViewModel ...@@ -280,9 +280,9 @@ class GoogleMapFragment() : BaseFragment<ActivityGoogleMapBinding, HomeViewModel
var mutualBean=MutualBean() var mutualBean=MutualBean()
when(type){ when(type){
1->mutualBean.type="hybrid" 1->mutualBean.type="hybrid"
2->mutualBean.type="roadmap" 2->mutualBean.type="satellite"
3->mutualBean.type="satellite" 3->mutualBean.type="terrain"
4->mutualBean.type="terrain" 4->mutualBean.type="roadmap"
} }
binding.webview.callHandler("changeMapType" binding.webview.callHandler("changeMapType"
,Gson().toJson(mutualBean) ) { ,Gson().toJson(mutualBean) ) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment