| | |
| | | public static string GetReleaseUrl(string dircode) |
| | | { |
| | | //return "http://{host}/LFData/3d/terrain/" + dircode; |
| | | return "http://{host}/ExportMap/terra0?path=3d\\terrain\\" + dircode; |
| | | return "http://{host}/ExportMap/terra0?path=3d/terrain/" + dircode; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 获取发布地址 |
| | | /// 获取发布地址:http://localhost/ExportMap/tile0/{z}/{x}/{y}.png?path=2d\tiles\0102 |
| | | /// </summary> |
| | | public static string GetReleaseUrl(string dircode) |
| | | { |
| | | return "http://{host}/LFData/2d/tiles/" + dircode + "/{z}/{x}/{y}.png"; |
| | | //return "http://{host}/ExportMap/tile0/{z}/{x}/{y}.png?path=2d/tiles/" + dircode; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | |
| | | // 测试切图 |
| | | function convertXYZ() { |
| | | var data = { token: token, ids: [1217], id: 1, min: 8, max: 18, depcode: "000305", dircode: "0102", userId: 1, name: "DOM_0.2m" }; |
| | | var data = { token: token, ids: [1217], id: 1, min: 4, max: 17, depcode: "00", dircode: "0B", userId: 1, name: "5_A1", noData: 255 }; |
| | | ajax("Convert/ToTiles", "POST", JSON.stringify(data), null, null, function (rs) { |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | console.log(rs); |