qinbo
2021-12-23 e1c3d0f9135e9790fe1aa77a0927c29844f78117
js/index.js
@@ -17,7 +17,7 @@
    //有父级
    request = $.extend(request, haoutil.system.getRequest(window.top));
  }
  debugger;
  // debugger;
  try {
    var jwtstr = request.JWT;
    var strs_ = jwtstr.split('.');
@@ -49,7 +49,7 @@
    window.top.location = mars3d.global_variables.un_authorization_url;
  }
  mars3d.global_variables.userid = request?.userid || 2;
  // mars3d.global_variables.userid = request?.userid || 2;
  var configfile = "config/config.json"; //默认地址
  if (request.config) {
@@ -105,6 +105,8 @@
  initLayersByUserid();
  mask_selection(mars3d.global_variables.userid)
  //如果有xyz传参,进行定位
  if (haoutil.isutil.isNotNull(request.x) && haoutil.isutil.isNotNull(request.y)) {
    map.setCameraView(request, { duration: 0, isWgs84: true });