| | |
| | | layer.options.parameters.viewparams = "userid:" + mars3d.global_variables.userid + ";regiontype:" + layer.options.regiontype + ";datetime:" + mars3d.global_variables.queryDataTStartGeo |
| | | layer.options.getFeatureInfoParameters.viewparams = "userid:" + mars3d.global_variables.userid + ";regiontype:" + layer.options.regiontype + ";datetime:" + mars3d.global_variables.queryDataTStartGeo |
| | | layer.reload(); |
| | | } else if ([layer.id] == 1001 && layer.options.show) { |
| | | // } else if ([layer.id] == 1001 && layer.options.show) { |
| | | } else if ([layer.id] == 1001) { |
| | | var tmpguokong = map.getLayerById(1001); |
| | | tmpguokong.clear(true); |
| | | getGuokongPointFromServer(tmpguokong); |
| | |
| | | } |
| | | } |
| | | |
| | | function changeNullAndundefinedToEmpty(json_in) { |
| | | for (var key in json_in) { |
| | | if (json_in[key] == null || json_in[key] == 'null' || json_in[key] == undefined || json_in[key] == 'undefined') { |
| | | json_in[key] = "/"; |
| | | } |
| | | } |
| | | return json_in; |
| | | } |