Commit 6ee83c51 by 白杨

初始

0 parents
Showing with 800 additions and 0 deletions
/*!
* Datetimepicker for Bootstrap 3
* version : 4.17.47
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/.bootstrap-datetimepicker-widget{list-style:none}.bootstrap-datetimepicker-widget.dropdown-menu{display:block;margin:2px 0;padding:4px;width:19em}@media (min-width:768px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}@media (min-width:992px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}@media (min-width:1200px){.bootstrap-datetimepicker-widget.dropdown-menu.timepicker-sbs{width:38em}}.bootstrap-datetimepicker-widget.dropdown-menu:before,.bootstrap-datetimepicker-widget.dropdown-menu:after{content:'';display:inline-block;position:absolute}.bootstrap-datetimepicker-widget.dropdown-menu.bottom:before{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-bottom-color:rgba(0,0,0,0.2);top:-7px;left:7px}.bootstrap-datetimepicker-widget.dropdown-menu.bottom:after{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid white;top:-6px;left:8px}.bootstrap-datetimepicker-widget.dropdown-menu.top:before{border-left:7px solid transparent;border-right:7px solid transparent;border-top:7px solid #ccc;border-top-color:rgba(0,0,0,0.2);bottom:-7px;left:6px}.bootstrap-datetimepicker-widget.dropdown-menu.top:after{border-left:6px solid transparent;border-right:6px solid transparent;border-top:6px solid white;bottom:-6px;left:7px}.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:before{left:auto;right:6px}.bootstrap-datetimepicker-widget.dropdown-menu.pull-right:after{left:auto;right:7px}.bootstrap-datetimepicker-widget .list-unstyled{margin:0}.bootstrap-datetimepicker-widget a[data-action]{padding:6px 0}.bootstrap-datetimepicker-widget a[data-action]:active{box-shadow:none}.bootstrap-datetimepicker-widget .timepicker-hour,.bootstrap-datetimepicker-widget .timepicker-minute,.bootstrap-datetimepicker-widget .timepicker-second{width:54px;font-weight:bold;font-size:1.2em;margin:0}.bootstrap-datetimepicker-widget button[data-action]{padding:6px}.bootstrap-datetimepicker-widget .btn[data-action="incrementHours"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Increment Hours"}.bootstrap-datetimepicker-widget .btn[data-action="incrementMinutes"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Increment Minutes"}.bootstrap-datetimepicker-widget .btn[data-action="decrementHours"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Decrement Hours"}.bootstrap-datetimepicker-widget .btn[data-action="decrementMinutes"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Decrement Minutes"}.bootstrap-datetimepicker-widget .btn[data-action="showHours"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Show Hours"}.bootstrap-datetimepicker-widget .btn[data-action="showMinutes"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Show Minutes"}.bootstrap-datetimepicker-widget .btn[data-action="togglePeriod"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Toggle AM/PM"}.bootstrap-datetimepicker-widget .btn[data-action="clear"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Clear the picker"}.bootstrap-datetimepicker-widget .btn[data-action="today"]::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Set the date to today"}.bootstrap-datetimepicker-widget .picker-switch{text-align:center}.bootstrap-datetimepicker-widget .picker-switch::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Toggle Date and Time Screens"}.bootstrap-datetimepicker-widget .picker-switch td{padding:0;margin:0;height:auto;width:auto;line-height:inherit}.bootstrap-datetimepicker-widget .picker-switch td span{line-height:2.5;height:2.5em;width:100%}.bootstrap-datetimepicker-widget table{width:100%;margin:0}.bootstrap-datetimepicker-widget table td,.bootstrap-datetimepicker-widget table th{text-align:center;border-radius:4px}.bootstrap-datetimepicker-widget table th{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget table th.picker-switch{width:145px}.bootstrap-datetimepicker-widget table th.disabled,.bootstrap-datetimepicker-widget table th.disabled:hover{background:none;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget table th.prev::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Previous Month"}.bootstrap-datetimepicker-widget table th.next::after{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0;content:"Next Month"}.bootstrap-datetimepicker-widget table thead tr:first-child th{cursor:pointer}.bootstrap-datetimepicker-widget table thead tr:first-child th:hover{background:#eee}.bootstrap-datetimepicker-widget table td{height:54px;line-height:54px;width:54px}.bootstrap-datetimepicker-widget table td.cw{font-size:.8em;height:20px;line-height:20px;color:#777}.bootstrap-datetimepicker-widget table td.day{height:20px;line-height:20px;width:20px}.bootstrap-datetimepicker-widget table td.day:hover,.bootstrap-datetimepicker-widget table td.hour:hover,.bootstrap-datetimepicker-widget table td.minute:hover,.bootstrap-datetimepicker-widget table td.second:hover{background:#eee;cursor:pointer}.bootstrap-datetimepicker-widget table td.old,.bootstrap-datetimepicker-widget table td.new{color:#777}.bootstrap-datetimepicker-widget table td.today{position:relative}.bootstrap-datetimepicker-widget table td.today:before{content:'';display:inline-block;border:solid transparent;border-width:0 0 7px 7px;border-bottom-color:#337ab7;border-top-color:rgba(0,0,0,0.2);position:absolute;bottom:4px;right:4px}.bootstrap-datetimepicker-widget table td.active,.bootstrap-datetimepicker-widget table td.active:hover{background-color:#337ab7;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget table td.active.today:before{border-bottom-color:#fff}.bootstrap-datetimepicker-widget table td.disabled,.bootstrap-datetimepicker-widget table td.disabled:hover{background:none;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget table td span{display:inline-block;width:54px;height:54px;line-height:54px;margin:2px 1.5px;cursor:pointer;border-radius:4px}.bootstrap-datetimepicker-widget table td span:hover{background:#eee}.bootstrap-datetimepicker-widget table td span.active{background-color:#337ab7;color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,0.25)}.bootstrap-datetimepicker-widget table td span.old{color:#777}.bootstrap-datetimepicker-widget table td span.disabled,.bootstrap-datetimepicker-widget table td span.disabled:hover{background:none;color:#777;cursor:not-allowed}.bootstrap-datetimepicker-widget.usetwentyfour td.hour{height:27px;line-height:27px}.bootstrap-datetimepicker-widget.wider{width:21em}.bootstrap-datetimepicker-widget .datepicker-decades .decade{line-height:1.8em !important}.input-group.date .input-group-addon{cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);border:0}
\ No newline at end of file
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
require('../../js/carousel.js')
require('../../js/collapse.js')
require('../../js/dropdown.js')
require('../../js/modal.js')
require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
\ No newline at end of file
/* COPYRIGHT 2012 SUPERMAP
* 本程序只能在有效的授权许可下使用。
* 未经许可,不得以任何手段擅自使用或传播。*/
/**
* @requires SuperMap/Util.js
* @requires SuperMap/BaseTypes/Bounds.js
* @requires SuperMap/CanvasLayer.js
*/
/**
* Class: SuperMap.Layer.CloudLayer
* 云服务图层类。
* 通过向SuperMap 云服务器发送请求得到 SuperMap 云服务发布的图层。
*
* Inherits from:
* - <SuperMap.CanvasLayer>
*/
SuperMap.Layer.CloudLayer = SuperMap.Class(SuperMap.CanvasLayer, {
/**
* APIProperty: name
* {String} 图层标识名称,默认为:CloudLayer。
*/
name: "CloudLayer",
/**
* APIProperty: url
* {String} 地图资源地址。默认为:http://t0.supermapcloud.com/FileService/image
*/
url: 'http://${num}.t2.supermapcloud.com/FileService/image?&x=${x}&y=${y}&z=${z}',
//行政区划,s=1是省界,s=2是市界, s=3是区县界
// url: 'http://xzqh.supermapcloud.com/MapService/getGdp?&x=${x}&y=${y}&z=${z}&s=1',
dpi: 300,
/**
* Constructor: SuperMap.Layer.CloudLayer
* 云服务图层类。
*
* Parameters:
* options - {Object} 附加到图层属性上的可选项。
*/
initialize: function (options) {
var me = this;
if( options && options.url ) {
me.url = options.url + "?&x=${x}&y=${y}&z=${z}";
if(options.s) {
me.url += '&s=' + options.s;
}
}
//超图云只有一个开放的出图地址,投影为墨卡托投影,所以maxExtent和resolutions可以直接设置好
options = SuperMap.Util.extend({
dpi: 300,
maxExtent: new SuperMap.Bounds(
-20037508.3427892440,
-20037508.3427891,
20037508.3427892440,
20037508.3427891
),
//第19级分辨率为0.298817952474,但由于绝大部分城市和地区在此级别都无图,所以暂不增加
// resolutions: [156605.46875, 78302.734375, 39151.3671875, 19575.68359375, 9787.841796875, 4893.9208984375, 2446.96044921875, 1223.48022460937, 611.740112304687, 305.870056152344, 152.935028076172, 76.4675140380859, 38.233757019043, 19.1168785095215, 9.55843925476074, 4.77921962738037, 2.38960981369019, 1.19480490684509, 0.597402453422546]
/*
resolutions: [
19575.68359375, 9787.841796875, 4893.9208984375, 2446.96044921875,
1223.48022460937, 611.740112304687, 305.870056152344, 152.935028076172,
76.4675140380859, 38.233757019043, 19.1168785095215, 9.55843925476074, 4.77921962738037,
2.38960981369019, 1.19480490684509, 0.597402453422546]
*/
resolutions: [156543.033928041, 78271.5169640203, 39135.7584820102,
19567.8792410051, 9783.93962050254, 4891.96981025127, 2445.98490512563,
1222.99245256282, 611.496226281409, 305.748113140704, 152.874056570352,
76.4370282851761, 38.218514142588, 19.109257071294, 9.55462853564701,
4.77731426782351, 2.38865713391175, 1.19432856695588, 0.597164283477938]
}, options);
SuperMap.CanvasLayer.prototype.initialize.apply(me, [me.name, me.url, null, options]);
me.units = "meter";
},
/**
* APIMethod: destroy
* 解构CloudLayer类,释放资源。
*/
destroy: function () {
var me = this;
SuperMap.CanvasLayer.prototype.destroy.apply(me, arguments);
me.name = null;
me.url = null;
},
/**
* APIMethod: clone
* 创建当前图层的副本。
*
* Parameters:
* obj - {Object}
*
* Returns:
* {<SuperMap.Layer.CloudLayer>}新的图层。
*/
clone: function (obj) {
var me = this;
if (obj == null) {
obj = new SuperMap.Layer.CloudLayer(
me.name, me.url, me.layerName, me.getOptions());
}
obj = SuperMap.CanvasLayer.prototype.clone.apply(me, [obj]);
return obj;
},
/**
* Method: getTileUrl
* 获取瓦片的URL。
*
* Parameters:
* xyz - {Object} 一组键值对,表示瓦片X, Y, Z方向上的索引。
*
* Returns
* {String} 瓦片的 URL。
*/
getTileUrl: function (xyz) {
var me = this,
url = me.url;
var num = Math.abs((xyz.x) % 3);
// var num = parseInt(Math.random()*3);
return SuperMap.String.format(url, {
num: num,
x: xyz.x,
y: xyz.y,
z: xyz.z
});
},
CLASS_NAME: "SuperMap.Layer.CloudLayer"
});
/**
* @requires SuperMap/Lang.js
*/
/**
* Namespace: SuperMap.Lang["en"]
* Dictionary for English. Keys for entries are used in calls to
* <SuperMap.Lang.translate>. Entry bodies are normal strings or
* strings formatted for use with <SuperMap.String.format> calls.
*/
SuperMap.Lang.en = {
'unhandledRequest': "Unhandled request return ${statusText}",
'Permalink': "Permalink",
'Overlays': "Overlays",
'Base Layer': "Base Layer",
'LayerSwitcher': "LayerSwitcher",
'noFID': "Can't update a feature for which there is no FID.",
'browserNotSupported':
"Your browser does not support vector rendering. Currently supported renderers are:\n${renderers}",
// console message
'minZoomLevelError':
"The minZoomLevel property is only intended for use " +
"with the FixedZoomLevels-descendent layers. That this " +
"wfs layer checks for minZoomLevel is a relic of the" +
"past. We cannot, however, remove it without possibly " +
" breaking OL based applications that may depend on it." +
"Therefore we are deprecating it -- the minZoomLevel." +
"Please instead use min/max resolution setting.",
'commitSuccess': "WFS Transaction: SUCCESS ${response}",
'commitFailed': "WFS Transaction: FAILED ${response}",
'googleWarning':
"The Google Layer was unable to load correctly.<br><br>" +
"To get rid of this message, select a new BaseLayer " +
"in the layer switcher in the upper-right corner.<br><br>" +
"Most likely, this is because the Google Maps library " +
"script was either not included, or does not contain the " +
"correct API key for your site.<br><br>",
'getLayerWarning':
"The ${layerType} Layer was unable to load correctly.<br><br>" +
"To get rid of this message, select a new BaseLayer " +
"in the layer switcher in the upper-right corner.<br><br>" +
"Most likely, this is because the ${layerLib} library " +
"script was not correctly included.<br><br>",
'Scale = 1 : ${scaleDenom}': "Scale = 1 : ${scaleDenom}",
//labels for the graticule control
'W': 'W',
'E': 'E',
'N': 'N',
'S': 'S',
'Graticule': 'Graticule',
// console message
'reprojectDeprecated':
"You are using the 'reproject' option " +
"on the ${layerName} layer. This option is deprecated: " +
"its use was designed to support displaying data over commercial " +
"basemaps, but that functionality should now be achieved by using " +
"Spherical Mercator support.",
// console message
'methodDeprecated':
"This method has been deprecated and will be removed. " +
"Please use ${newMethod} instead.",
'proxyNeeded': "You probably need to set SuperMap.ProxyHost to access ${url}.",
// **** end ****
'end': '',
'mi': "mi",
'km': "km",
'm': "m",
'ft': "ft",
//SuperMap Cloud Attribution
'supermap_cloud_map': '&copy;2016 AMap GS(2015)2681',
//Tencent Map Attribution
'tencent_map':'&copy;2017 Tencent - GS(2016)930 - Data&copy; NavInfo',
//VectorMapEditor
'editorName':"VectorMapEditor",
'layerList':"LayerList",
'point':"PointLayer",
'line':"LineLayer",
'region':"PolygonLayer",
'text':"TextLayer",
'advanceSetting':"advanceSetting",
'expandingPointContent':"Expanding",
'volleyPointContent':"Volley",
'rendezvousPointContent':"Rendezvous",
'supplyPointContent':"Supply",
//symbolAlgo
'symbolAlgo_17703':"Add",
'symbolAlgo_17704':"Emergency",
'symbolAlgo_21600':"Punching",
'symbolAlgo_28000_1':"Danger",
'symbolAlgo_28000_2':"Middle",
'symbolAlgo_28000_3':"light",
'symbolAlgo_31304':"Electric resistance",
'symbolAlgo_3010301':"Adjustment",
'symbolAlgo_3010303':"StartOff",
'symbolAlgo_3010304':"Coordinate",
'symbolAlgo_2121505':"Fire",
'symbolAlgo_2121506':"mound",
'symbolAlgo_2121507':"compound",
'symbolAlgo_2121601':"far",
'symbolAlgo_2121602':"barrier",
'symbolAlgo_30010':"?",
'symbolAlgo_3001101':"collection",
'symbolAlgo_3001102':"expose",
'symbolAlgo_3001103':"disturb",
'symbolAlgo_3001104':"private",
'symbolAlgo_3001105':"robber",
'symbolAlgo_30020':"Water",
'symbolAlgo_3002001':"earthquake",
'symbolAlgo_3002004':"Fire",
'symbolAlgo_30025':"stay",
'symbolAlgo_5010301':"Adjustment",
'symbolAlgo_5010303':"StartOff",
'symbolAlgo_5010304':"Coordinate",
'symbolAlgo_5010401':"JZ",
'symbolAlgo_5022001':"ZD0",
'symbolAlgo_5034801':"hurry",
"symbolAlgo_60203":"avoid",
'symbolAlgo_60301':"expose",
'symbolAlgo_6030101':"dug",
'symbolAlgo_6030102':"water",
'symbolAlgo_6030103':"step",
'symbolAlgo_6030104':"outfit",
'symbolAlgo_6030105':"stone",
'symbolAlgo_6030106':"sand",
'symbolAlgo_6030107':"practice",
'symbolAlgo_60304':"tunnel",
'symbolAlgo_3002501':"tread",
'symbolAlgo_30026':"disaster",
'symbolAlgo_40104':"arrest",
'symbolAlgo_4030301':"symptom",
'symbolAlgo_4030302':"advise",
'symbolAlgo_4030303':"dredge",
'symbolAlgo_40304':"police",
'symbolAlgo_4030401':"police",
//basic symbol
'polyLine':"polyLine",
'parallelogram':"parallelogram",
'circle':"circle",
'ellipse':"ellipse",
'annotation':"annotation",
'regularPolygon':"regular polygon",
'polygon':"polygon",
'bezier':"bezier",
'closedBesselCurve':"closed bessel curve",
'kidney':"kidney",
'brace':"brace",
'trapezoid':"trapezoid",
'rectangle':"rectangle",
'chord':"chord",
'sector':"sector",
'arc':"arc",
'parallel':"parallel",
'annoFrame':"annoframe",
'tooltipBoxM':"tooltip BoxM",
'runway':"runway",
'curveEight':"curveEight",
'arrowLine':"ArrowLine",
'pathText':"pathText",
'concentricCircle':"ConcentricCircle",
'combinedCircle':"combinedCircle",
'freeCurve':"freeCurve",
'nodeChain':"nodeChain",
'lineMarking':"line marking",
'symbolTextBox':"symbolText box",
//generation Symbol
'parallelFlatArrow':"parallel flat arrow",
'multipleArrow':"multiple Arrow",
'trapezoidalFlatArrow':"trapezoidal flat arrow",
'besselPointArrow':"bessel point arrow",
'besselArrow':"bassel arrow",
'doubleArrow':"double arrow",
'brokenSpaceTriangleArrow':"broken_space_triangle_arrow",
'besselDovetailArrow':"bessel dovetail arrow",
'ordinaryLineArrow':"ordinary line arrow",
'besselPointedEarsTailArrow':"bessel pointed ears tail arrow",
'besselTipArrow':"bessel_tip_arrow",
'besselArrowNoGraph':"bessel arrow no graph",
'brokenSpaceTriangleArrowNoGraph':"broken space triangle arrow no graph",
'besselPointedEarsTailArrowNoGraph':"bessel pointed ears tail arrow no graph",
'ordinaryLineArrowNoGraph':"ordinary line arrow no graph",
'combianationArrow':"combianation arrow",
'airDeployment':"airDeployment",
'airRoute':"airRoute",
'arcRegion':"arcRegion",
'flagGroup':"flagGroup",
'lineRelation':"lineRelation",
'polygonRegion':"polygonRegion",
'navyRoute':"navyRoute",
'missileRoute':"missileRoute",
'navyDeployment':"navyDeployment",
'satelliteTimeWindows':"satelliteTimeWindows",
'satellite':"satellite",
'symbolText':"symbolText",
'symbolText1':"symbolText1",
'interferenceBeam':"interferenceBeam",
'groupObject':"groupObject",
//routeNodeTypeName
'RENDEZVOUS': "RENDEZVOUS",
'EXPANDING': "EXPANDING",
'VOLLEY': "VOLLEY",
'STANDBY': "STANDBY",
'SUPPLY': "SUPPLY",
'TAKEOFF': "TAKEOFF",
'INITIAL': "INITIAL",
'VISUALINITAL': "VISUALINITAL",
'LANCH': "LANCH",
'TURNING': "TURNING",
'AIMING': "AIMING",
'COMMONROUTE': "COMMONROUTE",
'WEAPONLAUNCH': "WEAPONLAUNCH",
'TARGET': "TARGET",
'ATTACK':"ATTACK",
'SUPPRESS':"SUPPRESS",
'EIGHTSPIRAL':"EIGHTSPIRAL",
'HAPPYVALLEY':"HAPPYVALLEY",
'LITERATESIGN':"LITERATESIGN",
'undoStackOverflow': 'undo stack overflow',
//Mapviewer
'noContent':'None',
'lableTitle': '_Lable Layer'
};
This diff could not be displayed because it is too large.
(function() {
var isWinRT = (typeof Windows === "undefined") ? false : true;
var r = new RegExp("(^|(.*?\\/))(SuperMap.Include\.js)(\\?|$)"),
s = document.getElementsByTagName('script'),
src, m, baseurl = "";
for(var i=0, len=s.length; i<len; i++) {
src = s[i].getAttribute('src');
if(src) {
var m = src.match(r);
if(m) {
baseurl = m[1];
break;
}
}
}
function inputScript(inc){
if (!isWinRT) {
var script = '<' + 'script type="text/javascript" src="' + inc + '"' + '><' + '/script>';
document.writeln(script);
} else {
var script = document.createElement("script");
script.src = inc;
document.getElementsByTagName("HEAD")[0].appendChild(script);
}
}
function inputCSS(style){
if (!isWinRT) {
var css = '<' + 'link rel="stylesheet" href="' + baseurl + '../theme/default/' + style + '"' + '><' + '/>';
document.writeln(css);
} else {
var link = document.createElement("link");
link.rel = "stylesheet";
link.href = "/theme/default/" + style;
document.getElementsByTagName("HEAD")[0].appendChild(link);
}
}
function inputMyCSS(style){
if (!isWinRT) {
var css = '<' + 'link rel="stylesheet" href="' + style + '"' + '><' + '/>';
document.writeln(css);
} else {
var link = document.createElement("link");
link.rel = "stylesheet";
link.href = style;
document.getElementsByTagName("HEAD")[0].appendChild(link);
}
}
//加载类库资源文件
function loadSMLibs() {
inputCSS('style.css');
inputCSS('google.css');
// inputScript(baseurl+'SuperMap_Basic-8.1.1-15216.js');
// inputScript(baseurl+'SuperMap_Visualization-8.1.1-15216.js');
inputScript(baseurl+"/SuperMap-8.1.0-14126.js");
// inputScript(baseurl+"/SuperMap_Basic-8.1.1-15216.js");
// inputScript(baseurl+"/SuperMap_Visualization-8.1.1-15216.js");
// inputScript(baseurl+'SuperMap-8.0.2-13626.js');
// inputScript(baseurl+'SelectFeature.js');
// inputScript(baseurl+'Feature.js');
inputScript(baseurl+'CloudLayer.js');
inputScript(baseurl+'jquery.min.js');
inputScript(baseurl+'layer/Baidu.js');
/*inputScript(baseurl+'Class.js');
inputScript(baseurl+'Snap.js');*/
// inputScript("http://api.map.baidu.com/api?v=2.0&ak=214c94f370aa31822201489ae44e4018");
// inputScript(baseurl+'baidu/bmap.min.js');
// inputScript(baseurl+'baidu/mapv.min.js');
// inputScript(baseurl+'baidu/dat.gui.js');
}
//引入汉化资源文件
function loadLocalization() {
inputScript(baseurl + 'Lang/zh-CN.js');
}
loadSMLibs();loadLocalization();
})();
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
/**
* @requires SuperMap/Util.js
* @requires SuperMap/Layer/CanvasLayer.js
*/
/**
* Class: SuperMap.Layer.Amap
* 此图层可以访问 Amap 的地图服务。
*
* Inherits from:
* - <SuperMap.Layer.CanvasLayer>
*/
SuperMap.Layer.Amap = SuperMap.Class(SuperMap.CanvasLayer, {
/**
* APIProperty: name
* {String}图层名称,默认为“Amap”,防止初始化时未设置图层名
*
*/
name: "Amap",
/**
* APIProperty: url
* {String}默认的MapABC的服务器地址,不需要要用户设置
*/
// url: "http://webrd01.is.autonavi.com/appmaptile?lang=zh_cn&x=${x}&y=${y}&z=${z}",
url: "http://webrd0${s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x=${x}&y=${y}&z=${z}",
/**
* Constructor: SuperMap.Layer.MapABC
* 创建MapABC图层,可以浏览MapABC地图
* Example:
* (code)
*
* var layer = new SuperMap.Layer.MapABC("MyName");
* //将Layer图层加载到Map对象上
* map.addLayer(layer);
* //出图,map.setCenter函数显示地图
* //MapABC图层默认为墨卡托投影,所以定位需要转换
* map.setCenter(
* new SuperMap.LonLat(110,39.5 ).transform(
* new SuperMap.Projection("EPSG:4326"),
* map.getProjectionObject()
* ), 4
* );
*
* (end)
*
*
* Parameters:
* name - {String} 图层名称
*/
initialize: function(name) {
this.name = name;
//设置为墨卡托投影
var options = {
projection: "EPSG:900913",
numZoomLevels: 19
};
SuperMap.CanvasLayer.prototype.initialize.apply(this,[name,this.url,{},options] );
},
/**
* APIMethod: clone
* 复制一份MapABC图层
*
* Returns
* {<SuperMap.Layer.MapABC>} 返回复制后的MapABC图层。
*/
clone: function(obj) {
if (obj == null) {
obj = new SuperMap.Layer.MapABC(
this.name);
}
obj = SuperMap.CanvasLayer.prototype.clone.apply(this, [obj]);
return obj;
},
/**
* APIMethod: destroy
* 解构MapABC类,释放资源。
*/
destroy: function () {
var me = this;
me.name = null;
me.url = null;
SuperMap.CanvasLayer.prototype.destroy.apply(me, arguments);
},
/**
* Method: getTileUrl
* 获取瓦片的URL。
*
* Parameters:
* xyz - {Object} 一组键值对,表示瓦片X, Y, Z方向上的索引。
*
* Returns
* {String} 瓦片的 URL 。
*/
getTileUrl: function (xyz) {
var s = Math.ceil(Math.random()*4);
var me = this, url;
url = me.url;
url= SuperMap.String.format(url, {
a: xyz.x%4,
x: xyz.x,
y: xyz.y,
z: xyz.z,
s: s
});
return url;
},
CLASS_NAME: "SuperMap.Layer.Amap"
});
/**
* @requires SuperMap/Layer/CanvasLayer.js
* @requires SuperMap/Layer/Grid.js
* @requires SuperMap/Tile/Image.js
*/
/**
* Class: SuperMap.Layer.Baidu
* Baidu服务图层类。
* 用于显示Baidu的地图,使用<SuperMap.Layer.Baidu>的
* 构造函数可以创建Baidu图层,更多信息查看:
*
*
*
* Inherits from:
* - <SuperMap.Layer.CanvasLayer>
*/
SuperMap.Layer.Baidu = SuperMap.Class(SuperMap.CanvasLayer, {
offsetXY:null,
/**
* Property: attribution
* {String} The layer attribution.
*/
attribution: "Data by <a style='white-space: nowrap' target='_blank' href='http://map.baidu.com/'>Baidu</a>",
/**
* Constructor: SuperMap.Layer.Baidu
* 创建Baidu图层
*
* Example:
* (code)
*
* var baiduLayer = new SuperMap.Layer.Baidu();
* (end)
*/
initialize: function (options) {
var me = this;
me.name = "Baidu";
me.url = "http://online${num}.map.bdimg.com/onlinelabel/?qt=tile&x=${x}&y=${y}&z=${z}&styles=pl&udt=20150815&scaler=1";
// me.url = "http://shangetu${num}.map.bdimg.com/it/u=x=${x};y=${y};z=${z};v=017;type=web&fm=44&udt=20130712";
/*
offsetXY = [];
offsetXY.push({x:-3,y:1});//3
offsetXY.push({x:-6,y:3});//4
offsetXY.push({x:-12,y:7});//5
offsetXY.push({x:-24,y:15});//6
offsetXY.push({x:-48,y:31});//7
offsetXY.push({x:-96,y:63});//8
offsetXY.push({x:-192,y:127});//9
offsetXY.push({x:-384,y:255});//10
offsetXY.push({x:-768,y:511});//11
offsetXY.push({x:-1536,y:1023});//12
offsetXY.push({x:-3072,y:2047});//13
offsetXY.push({x:-6144,y:4095});//14
offsetXY.push({x:-12288,y:8191});//15
offsetXY.push({x:-24576,y:16383});//16
offsetXY.push({x:-49152,y:32767});//17
offsetXY.push({x:-98304,y:65535});//18
offsetXY.push({x:-196608,y:131071});//19
*/
/*
var minX = 6291456;
var minY = 0;
var maxX= minX + Math.pow(2, 14) * 256 * 5;
var maxY= minY + Math.pow(2, 14) * 256 * 4;
*/
// console.log(Math.pow(2, 15) * 256 * 4); // bounds 3 16 2 4 1 1 19-3=16 0.5 15
var minX = -33554432;
var minY = -33554432;
var maxX= 33554432;
var maxY= 33554432;
var res = Math.pow(2,15);
var resAry= [];
for (var i = 0; i < 17; i++) //百度 3-19
{
resAry[i] = res;
res *= 0.5; //每次二分之一
}
//计算比例尺数组
var scaAry = [];
for(var i = 0;i<17;i++)
{
scaAry[i] = 0.0254/(96*resAry[i]); //0.0254 为英寸和米的转换常数 //PPI 每英寸的像素点数
}
options = SuperMap.Util.extend({
maxExtent: new SuperMap.Bounds(
minX, minY, maxX, maxY
),
tileOrigin:new SuperMap.LonLat(minX, maxY),
resolutions:resAry
}, options);
SuperMap.CanvasLayer.prototype.initialize.apply(me, [me.name, me.url, null, options]);
me.units = "m";
me.projection = "EPSG:900913";
},
getTileUrl:function(xyz){
var me = this,
url = me.url;
/*
var x = xyz.x + offsetXY[xyz.z].x;
var y = offsetXY[xyz.z].y - xyz.y;
var z = xyz.z + 3;
var num = Math.abs((xyz.x + xyz.y) % 8);
num++;
*/
var zoom = xyz.z - 1;
var offsetX = Math.pow(2, zoom+3);
var offsetY = offsetX - 1;
var numX = xyz.x - offsetX;
var numY = -xyz.y + offsetY;
zoom = xyz.z + 3;
var num = Math.abs((xyz.x + xyz.y) % 8)+1;
url = SuperMap.String.format(url, {
num: num,
x: numX,
y: numY,
z: zoom
});
url = url.replace(/-/g,"M");
return url;
},
CLASS_NAME: 'SuperMap.Layer.Baidu'
});
\ No newline at end of file
.smLayerGoogleCopyright {
right: 3px;
bottom: 2px;
left: auto;
}
.smLayerGoogleV3.smLayerGoogleCopyright {
bottom: 0px;
right: 0px !important;
}
.smLayerGooglePoweredBy {
left: 2px;
bottom: 2px;
}
.smLayerGoogleV3.smLayerGooglePoweredBy {
bottom: 0px !important;
}
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>网点信息</title>
</head>
<body>
<label>照相机</label>
<input type="file" id='image' accept="image/*" capture='camera'>
<br>
<label>图片</label>
<input type="file" id="file" multiple>
</body>
</html>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!