Commit fdefc12c by niuxiaolin

latest ui 08/09/2019 17:15:01

parent 85e30543
...@@ -136,12 +136,6 @@ export class MainComponent implements OnInit { ...@@ -136,12 +136,6 @@ export class MainComponent implements OnInit {
} }
}); });
this.setBound(); this.setBound();
this.route.queryParamMap.subscribe(queryParams => {
this.debug = Boolean(queryParams.get("debug"))
if (this.debug) {
this.dynamicScriptLoader.load('drawing').then(data => { this.dynamicScriptLoader.load('drawing').then(data => {
// Script Loaded Successfully // Script Loaded Successfully
...@@ -195,6 +189,12 @@ export class MainComponent implements OnInit { ...@@ -195,6 +189,12 @@ export class MainComponent implements OnInit {
}); });
}).catch(error => console.log(error)); }).catch(error => console.log(error));
this.route.queryParamMap.subscribe(queryParams => {
this.debug = Boolean(queryParams.get("debug"))
if(this.debug){
var node = document.getElementsByClassName('BMapLib_Drawing')[0];
(node as any).style.display = 'block';
} }
}) })
......
...@@ -11494,11 +11494,11 @@ function httpGetAsync(theUrl, callback) ...@@ -11494,11 +11494,11 @@ function httpGetAsync(theUrl, callback)
window.onmousewheel=function(e){ // window.onmousewheel=function(e){
var curZoom = map.getZoom(); // var curZoom = map.getZoom();
if(e.deltaY>0){ // if(e.deltaY>0){
map.setZoom(curZoom-1); // map.setZoom(curZoom-1);
}else{ // }else{
map.setZoom(curZoom+1); // map.setZoom(curZoom+1);
} // }
} // }
\ No newline at end of file \ No newline at end of file
...@@ -266,7 +266,7 @@ body.jw-modal-open { ...@@ -266,7 +266,7 @@ body.jw-modal-open {
width: 4em; width: 4em;
line-break: strict; line-break: strict;
white-space: initial; white-space: initial;
margin-top:0.3em; // margin-top:0.3em;
} }
legend{ legend{
...@@ -280,3 +280,6 @@ legend{ ...@@ -280,3 +280,6 @@ legend{
font-size: 22px; font-size: 22px;
color:white; color:white;
} }
.BMapLib_Drawing{
display: none;
}
\ No newline at end of file
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