/**ui
* 引入HGIS的離散js文件this
*/spa
var OpenLayers= {ip
/**rem
* Constant: VERSION_NUMBERget
*/源碼
VERSION_NUMBER: "Release 2.13",it
/**io
* Constant: singleFilefunction
* TODO: remove this in 3.0 when we stop supporting build profiles that
* include OpenLayers.js
*/
singleFile: true,
/**
* Method: _getScriptLocation
* Return the path to this script. This is also implemented in
* OpenLayers.js
*
* Returns:
* {String} Path to this script
*/
_getScriptLocation: (function() {
var r = new RegExp("(^|(.*?\\/))(hgis[^\\/]*?\\.js)(\\?|$)"),
s = document.getElementsByTagName('script'),
src, m, l = "";
for(var i=0, len=s.length; i<len; i++) {
src = s[i].getAttribute('src');
if(src) {
m = src.match(r);
if(m) {
l = m[1];
break;
}
}
}
return (function() { return l; });
})(),
ImgPath : ''
};
function includeBaseJS(){
jsFiles = [
"BaseTypes/Class.js",
"BaseTypes/String.js
]; // etc. var scripts = new Array(myjsFiles.length); for (var i=0, len=myjsFiles.length; i<len; i++) { scripts[i] = "<script src='" + myjsFiles[i] + "'></script>"; } if (scripts.length > 0) { document.write(scripts.join("")); }}
// 引入HGIS源碼的離散js文件includeBaseJS();