-
大小: 27.26MB文件类型: .rar金币: 1下载: 0 次发布日期: 2023-07-23
- 语言: JavaScript
- 标签: supermap for JavaScript 8c
资源简介
supermap for JavaScript 8c 2017开发包 含开发的libs、resource等,由于大小限制无api文档和help
代码片段和文件信息
#!/usr/bin/env python
import sys
sys.path.append(“../tools“)
import mergejs
import optparse
def build(config_file = None output_file = None options = None):
have_compressor = []
try:
import jsmin
have_compressor.append(“jsmin“)
except ImportError:
print “No jsmin“
try:
import closure
have_compressor.append(“closure“)
except Exception E:
print “No closure (%s)“ % E
try:
import closure_ws
have_compressor.append(“closure_ws“)
except ImportError:
print “No closure_ws“
try:
import minimize
have_compressor.append(“minimize“)
except ImportError:
print “No minimize“
use_compressor = None
if options.compressor and options.compressor in have_compressor:
use_compressor = options.compressor
sourceDirectory = “../lib“
configFilename = “library.cfg“
filename = “proj4js-compressed.js“
outputFilename = “../lib/“ + filename
if config_file:
configFilename = config_file
extension = configFilename[-4:]
if extension != “.cfg“:
configFilename = config_file + “.cfg“
if output_file:
outputFilename = output_file
print “Merging libraries.“
merged = mergejs.run(sourceDirectory None configFilename)
print “Setting the filename to “+filename
merged = merged.replace(‘scriptName: “proj4js.js“‘‘scriptName: “‘+filename+‘“‘);
print “Compressing using %s“ % use_compressor
if use_compressor == “jsmin“:
minimized = jsmin.jsmin(merged)
elif use_compressor == “minimize“:
minimized = minimize.minimize(merged)
elif use_compressor == “closure_ws“:
if len(merged) > 1000000: # The maximum file size for this web service is 1000 KB.
print “\nPre-compressing using jsmin“
merged = jsmin.jsmin(merged)
print “\nIs being compressed using Closure Compiler Service.“
try:
minimized = closure_ws.minimize(merged)
except Exception E:
print “\nAbnormal termination.“
sys.exit(“ERROR: Closure Compilation using Web service failed!\n%s“ % E)
if len(minimized) <= 2:
print “\nAbnormal termination due to compilation errors.“
sys.exit(“ERROR: Closure Compilation using Web service failed!“)
else:
print ‘\nClosure Compilation using Web service has completed successfully.‘
elif use_compressor == “closure“:
minimized = closure.minimize(merged)
else: # fallback
minimized = merged
print “Adding license file.“
minimized = file(“license.txt“).read() + minimized
print “Writing to %s.“ % outputFilename
file(outputFilename “w“).write(minimized)
print “Done.“
if __name__ == ‘__main__‘:
opt = optparse.OptionParser(usage=“%s [options] [config_file] [output_file]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1733 2016-12-26 17:17 supermap for ja
文件 2926 2016-12-26 17:17 supermap for ja
文件 1313 2016-12-26 17:17 supermap for ja
文件 2237 2016-12-26 17:17 supermap for ja
文件 2033 2016-12-26 17:17 supermap for ja
文件 3142 2016-12-26 17:17 supermap for ja
文件 3190 2016-12-26 17:17 supermap for ja
文件 1660 2016-12-26 17:17 supermap for ja
文件 2582 2016-12-26 17:17 supermap for ja
文件 4646 2016-12-26 17:17 supermap for ja
文件 4615 2016-12-26 17:17 supermap for ja
文件 3952 2016-12-26 17:17 supermap for ja
文件 3952 2016-12-26 17:17 supermap for ja
文件 7215 2016-12-26 17:17 supermap for ja
文件 7566 2016-12-26 17:17 supermap for ja
文件 5219 2016-12-26 17:17 supermap for ja
文件 10634 2016-12-26 17:17 supermap for ja
文件 11605 2016-12-26 17:17 supermap for ja
文件 11708 2016-12-26 17:17 supermap for ja
文件 4489 2016-12-26 17:17 supermap for ja
文件 6002 2016-12-26 17:17 supermap for ja
文件 10167 2016-12-26 17:17 supermap for ja
文件 10065 2016-12-26 17:17 supermap for ja
文件 8791 2016-12-26 17:17 supermap for ja
文件 10561 2016-12-26 17:17 supermap for ja
文件 4753 2016-12-26 17:17 supermap for ja
文件 2093 2016-12-26 17:17 supermap for ja
文件 4039 2016-12-26 17:17 supermap for ja
文件 10641 2016-12-26 17:17 supermap for ja
文件 4620 2016-12-26 17:17 supermap for ja
............此处省略1215个文件信息
相关资源
-
ja
vasc ript高级程序设计第3版带书签 -
单页Web应用:ja
vasc ript前端到后端 -
ja
vasc ript权威指南第六版(中文非 -
ArcGIS API for ja
vasc ript 4.5 API - WebGIS基础实践demo(基于ArcGIS API for
-
ArcGIS API for ja
vasc ript v3.31api + sdk开 -
ja
vasc ript高级程序设计第3版高清完 -
ja
vasc ript学习指南 第3版@www.java -
effective ja
vasc ript中文版 带书签 -
实测PDF:ja
vasc ript设计模式与开发 -
ja
vasc ript权威指南 - 北大青鸟—S2结业项目
-
SuperMap iClient for ja
vasc ript开发教程 -
ja
vasc ript高级程序设计中文版epu -
ja
vasc ript The Definitive Guide 6th Edit -
ja
vasc ript语言精粹带目录+完整版 -
ja
vasc ript函数式编程_PDF电子书 高 -
ja
vasc ript编程精解 完整扫描版 P -
ja
vasc riptDOM编程艺术.pdf - 《WebGIS从基础到开发实践》
-
ja
vasc ript书籍(ja vasc ript从入门 - js+vue手机app租房
-
《ja
vasc ript高级程序设计第3版》中 -
ja
vasc ript从入门到精通第2版完整版 -
ja
vasc ript基础教程第9版代码 -
你不知道的ja
vasc ript(上、中、下 - SpringMvc+POI 导入Excel
-
ja
vasc ript权威指南非扫描高清版 -
精通ja
vasc ript中文清晰优化版.pd -
ja
vasc ript Patterns 模式 中文版 高清
评论
共有 条评论