Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Pinoxchio
apollo
提交
43e3cc28
A
apollo
项目概览
Pinoxchio
/
apollo
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
apollo
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
43e3cc28
编写于
11月 07, 2019
作者:
U
unacao
提交者:
Xiangquan Xiao
11月 08, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Dreamview: double check BMap is init with content
上级
f5d07794
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
9 addition
and
9 deletion
+9
-9
modules/dreamview/frontend/dist/3.bundle.js
modules/dreamview/frontend/dist/3.bundle.js
+1
-1
modules/dreamview/frontend/dist/3.bundle.js.map
modules/dreamview/frontend/dist/3.bundle.js.map
+1
-1
modules/dreamview/frontend/dist/app.bundle.js
modules/dreamview/frontend/dist/app.bundle.js
+5
-5
modules/dreamview/frontend/dist/app.bundle.js.map
modules/dreamview/frontend/dist/app.bundle.js.map
+1
-1
modules/dreamview/frontend/src/components/Navigation/BaiduMapAdapter.js
...iew/frontend/src/components/Navigation/BaiduMapAdapter.js
+1
-1
未找到文件。
modules/dreamview/frontend/dist/3.bundle.js
浏览文件 @
43e3cc28
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
3
],{
483
:
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
a
=
d
(
n
(
3
)),
o
=
d
(
n
(
4
)),
i
=
d
(
n
(
5
)),
l
=
d
(
n
(
36
)),
r
=
d
(
n
(
1
)),
s
=
d
(
n
(
2
)),
u
=
n
(
177
);
function
d
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
c
=
function
(){
function
e
(){(
0
,
r
.
default
)(
this
,
e
),
this
.
map
=
null
,
this
.
controls
=
[],
this
.
initializedCenter
=!
1
}
return
(
0
,
s
.
default
)(
e
,[{
key
:
"
isInitialized
"
,
value
:
function
(){
return
null
!==
this
.
map
}},{
key
:
"
loadMap
"
,
value
:
function
(
e
,
t
){
this
.
map
=
new
BMap
.
Map
(
t
,{
enableMapClick
:
!
1
}),
this
.
map
.
enableScrollWheelZoom
(),
this
.
map
.
addControl
(
new
BMap
.
MapTypeControl
({
anchor
:
BMAP_ANCHOR_TOP_LEFT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
})),
this
.
map
.
addControl
(
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_RIGHT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
,
enableGeolocation
:
!
1
}))}},{
key
:
"
setCenter
"
,
value
:
function
(
e
){
this
.
initializedCenter
?
this
.
map
.
setCenter
(
e
):(
this
.
map
.
centerAndZoom
(
e
,
19
),
this
.
initializedCenter
=!
0
)}},{
key
:
"
setZoom
"
,
value
:
function
(
e
){
this
.
map
.
setZoom
(
e
)}},{
key
:
"
addEventHandler
"
,
value
:
function
(
e
,
t
){
this
.
map
.
addEventListener
(
e
,(
function
(
e
){
var
n
=
e
.
point
;
t
(
n
)}))}},{
key
:
"
createPoint
"
,
value
:
function
(
e
){
var
t
=
e
.
lat
,
n
=
e
.
lng
;
return
new
BMap
.
Point
(
n
,
t
)}},{
key
:
"
createMarker
"
,
value
:
function
(
e
,
t
){
var
n
=!
(
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
])
||
arguments
[
2
],
a
=
null
;
t
&&
(
a
=
new
BMap
.
Label
(
t
,{
point
:
e
,
offset
:
new
BMap
.
Size
(
15
,
-
15
)}));
var
o
=
new
BMap
.
Marker
(
e
,{
label
:
a
,
enableDragging
:
n
,
rotation
:
5
});
return
o
.
setLabel
(
a
),
this
.
map
.
addOverlay
(
o
),
o
}},{
key
:
"
createPolyline
"
,
value
:
function
(
e
,
t
){
var
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
a
=
arguments
.
length
>
3
&&
void
0
!==
arguments
[
3
]?
arguments
[
3
]:
2
,
o
=
{
geodesic
:
!
0
,
strokeColor
:
t
,
strokeOpacity
:
n
,
strokeWeight
:
a
},
i
=
new
BMap
.
Polyline
(
e
,
o
);
return
this
.
map
.
addOverlay
(
i
),
i
}},{
key
:
"
createControl
"
,
value
:
function
(
e
){
var
t
=
e
.
text
,
n
=
e
.
tip
,
a
=
e
.
color
,
o
=
e
.
offsetX
,
i
=
e
.
offsetY
,
l
=
e
.
onClickHandler
,
r
=
new
p
(
t
,
n
,
a
,
new
BMap
.
Size
(
o
,
i
),
l
);
this
.
map
.
addControl
(
r
),
this
.
controls
.
push
(
r
)}},{
key
:
"
disableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
removeControl
(
t
)}))}},{
key
:
"
enableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
addControl
(
t
)}))}},{
key
:
"
getMarkerPosition
"
,
value
:
function
(
e
){
return
e
.
getPosition
()}},{
key
:
"
updatePolyline
"
,
value
:
function
(
e
,
t
){
e
.
setPath
(
t
)}},{
key
:
"
removePolyline
"
,
value
:
function
(
e
){
this
.
map
.
removeOverlay
(
e
)}},{
key
:
"
applyCoordinateOffset
"
,
value
:
function
(
e
){
var
t
=
(
0
,
l
.
default
)(
e
,
2
),
n
=
t
[
0
],
a
=
t
[
1
];
return
(
0
,
u
.
WGS84ToBD09LL
)(
n
,
a
)}}]),
e
}();
t
.
default
=
c
;
var
p
=
function
(
e
){
function
t
(
e
,
n
,
i
,
l
,
s
){
var
u
;(
0
,
r
.
default
)(
this
,
t
);
for
(
var
d
=
arguments
.
length
,
c
=
Array
(
d
>
5
?
d
-
5
:
0
),
p
=
5
;
p
<
d
;
p
++
)
c
[
p
-
5
]
=
arguments
[
p
];
var
f
=
(
0
,
o
.
default
)(
this
,(
u
=
t
.
__proto__
||
(
0
,
a
.
default
)(
t
)).
call
.
apply
(
u
,[
this
].
concat
(
c
)));
return
f
.
defaultAnchor
=
BMAP_ANCHOR_TOP_LEFT
,
f
.
defaultOffset
=
l
,
f
.
onClickHandler
=
s
,
f
.
title
=
n
,
f
.
text
=
e
,
f
.
backgroundColor
=
i
,
f
}
return
(
0
,
i
.
default
)(
t
,
e
),(
0
,
s
.
default
)(
t
,[{
key
:
"
initialize
"
,
value
:
function
(
e
){
var
t
=
this
,
n
=
document
.
createElement
(
"
div
"
),
a
=
document
.
createElement
(
"
div
"
);
a
.
style
.
backgroundColor
=
this
.
backgroundColor
,
a
.
style
.
border
=
"
2px solid #fff
"
,
a
.
style
.
borderRadius
=
"
3px
"
,
a
.
style
.
boxShadow
=
"
0 2px 6px rgba(0,0,0,.3)
"
,
a
.
style
.
cursor
=
"
pointer
"
,
a
.
style
.
marginBottom
=
"
22px
"
,
a
.
style
.
textAlign
=
"
center
"
,
a
.
title
=
this
.
title
,
n
.
appendChild
(
a
);
var
o
=
document
.
createElement
(
"
div
"
);
return
o
.
style
.
color
=
"
rgb(25,25,25)
"
,
o
.
style
.
fontFamily
=
"
Roboto,Arial,sans-serif
"
,
o
.
style
.
fontSize
=
"
16px
"
,
o
.
style
.
lineHeight
=
"
38px
"
,
o
.
style
.
paddingLeft
=
"
5px
"
,
o
.
style
.
paddingRight
=
"
5px
"
,
o
.
innerHTML
=
this
.
text
,
a
.
appendChild
(
o
),
e
.
getContainer
().
appendChild
(
n
),
a
.
addEventListener
(
"
click
"
,(
function
(){
t
.
onClickHandler
(
o
)})),
n
}}]),
t
}(
BMap
.
Control
)}}]);
(
window
.
webpackJsonp
=
window
.
webpackJsonp
||
[]).
push
([[
3
],{
483
:
function
(
e
,
t
,
n
){
"
use strict
"
;
Object
.
defineProperty
(
t
,
"
__esModule
"
,{
value
:
!
0
}),
t
.
default
=
void
0
;
var
a
=
c
(
n
(
3
)),
o
=
c
(
n
(
4
)),
i
=
c
(
n
(
5
)),
l
=
c
(
n
(
36
)),
r
=
c
(
n
(
23
)),
s
=
c
(
n
(
1
)),
u
=
c
(
n
(
2
)),
d
=
n
(
177
);
function
c
(
e
){
return
e
&&
e
.
__esModule
?
e
:{
default
:
e
}}
var
p
=
function
(){
function
e
(){(
0
,
s
.
default
)(
this
,
e
),
this
.
map
=
null
,
this
.
controls
=
[],
this
.
initializedCenter
=!
1
}
return
(
0
,
u
.
default
)(
e
,[{
key
:
"
isInitialized
"
,
value
:
function
(){
return
null
!==
this
.
map
&&
(
0
,
r
.
default
)(
this
.
map
).
length
>
0
}},{
key
:
"
loadMap
"
,
value
:
function
(
e
,
t
){
this
.
map
=
new
BMap
.
Map
(
t
,{
enableMapClick
:
!
1
}),
this
.
map
.
enableScrollWheelZoom
(),
this
.
map
.
addControl
(
new
BMap
.
MapTypeControl
({
anchor
:
BMAP_ANCHOR_TOP_LEFT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
})),
this
.
map
.
addControl
(
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_RIGHT
,
type
:
BMAP_NAVIGATION_CONTROL_SMALL
,
enableGeolocation
:
!
1
}))}},{
key
:
"
setCenter
"
,
value
:
function
(
e
){
this
.
initializedCenter
?
this
.
map
.
setCenter
(
e
):(
this
.
map
.
centerAndZoom
(
e
,
19
),
this
.
initializedCenter
=!
0
)}},{
key
:
"
setZoom
"
,
value
:
function
(
e
){
this
.
map
.
setZoom
(
e
)}},{
key
:
"
addEventHandler
"
,
value
:
function
(
e
,
t
){
this
.
map
.
addEventListener
(
e
,(
function
(
e
){
var
n
=
e
.
point
;
t
(
n
)}))}},{
key
:
"
createPoint
"
,
value
:
function
(
e
){
var
t
=
e
.
lat
,
n
=
e
.
lng
;
return
new
BMap
.
Point
(
n
,
t
)}},{
key
:
"
createMarker
"
,
value
:
function
(
e
,
t
){
var
n
=!
(
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
])
||
arguments
[
2
],
a
=
null
;
t
&&
(
a
=
new
BMap
.
Label
(
t
,{
point
:
e
,
offset
:
new
BMap
.
Size
(
15
,
-
15
)}));
var
o
=
new
BMap
.
Marker
(
e
,{
label
:
a
,
enableDragging
:
n
,
rotation
:
5
});
return
o
.
setLabel
(
a
),
this
.
map
.
addOverlay
(
o
),
o
}},{
key
:
"
createPolyline
"
,
value
:
function
(
e
,
t
){
var
n
=
arguments
.
length
>
2
&&
void
0
!==
arguments
[
2
]?
arguments
[
2
]:
1
,
a
=
arguments
.
length
>
3
&&
void
0
!==
arguments
[
3
]?
arguments
[
3
]:
2
,
o
=
{
geodesic
:
!
0
,
strokeColor
:
t
,
strokeOpacity
:
n
,
strokeWeight
:
a
},
i
=
new
BMap
.
Polyline
(
e
,
o
);
return
this
.
map
.
addOverlay
(
i
),
i
}},{
key
:
"
createControl
"
,
value
:
function
(
e
){
var
t
=
e
.
text
,
n
=
e
.
tip
,
a
=
e
.
color
,
o
=
e
.
offsetX
,
i
=
e
.
offsetY
,
l
=
e
.
onClickHandler
,
r
=
new
f
(
t
,
n
,
a
,
new
BMap
.
Size
(
o
,
i
),
l
);
this
.
map
.
addControl
(
r
),
this
.
controls
.
push
(
r
)}},{
key
:
"
disableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
removeControl
(
t
)}))}},{
key
:
"
enableControls
"
,
value
:
function
(){
var
e
=
this
;
this
.
controls
.
forEach
((
function
(
t
){
e
.
map
.
addControl
(
t
)}))}},{
key
:
"
getMarkerPosition
"
,
value
:
function
(
e
){
return
e
.
getPosition
()}},{
key
:
"
updatePolyline
"
,
value
:
function
(
e
,
t
){
e
.
setPath
(
t
)}},{
key
:
"
removePolyline
"
,
value
:
function
(
e
){
this
.
map
.
removeOverlay
(
e
)}},{
key
:
"
applyCoordinateOffset
"
,
value
:
function
(
e
){
var
t
=
(
0
,
l
.
default
)(
e
,
2
),
n
=
t
[
0
],
a
=
t
[
1
];
return
(
0
,
d
.
WGS84ToBD09LL
)(
n
,
a
)}}]),
e
}();
t
.
default
=
p
;
var
f
=
function
(
e
){
function
t
(
e
,
n
,
i
,
l
,
r
){
var
u
;(
0
,
s
.
default
)(
this
,
t
);
for
(
var
d
=
arguments
.
length
,
c
=
Array
(
d
>
5
?
d
-
5
:
0
),
p
=
5
;
p
<
d
;
p
++
)
c
[
p
-
5
]
=
arguments
[
p
];
var
f
=
(
0
,
o
.
default
)(
this
,(
u
=
t
.
__proto__
||
(
0
,
a
.
default
)(
t
)).
call
.
apply
(
u
,[
this
].
concat
(
c
)));
return
f
.
defaultAnchor
=
BMAP_ANCHOR_TOP_LEFT
,
f
.
defaultOffset
=
l
,
f
.
onClickHandler
=
r
,
f
.
title
=
n
,
f
.
text
=
e
,
f
.
backgroundColor
=
i
,
f
}
return
(
0
,
i
.
default
)(
t
,
e
),(
0
,
u
.
default
)(
t
,[{
key
:
"
initialize
"
,
value
:
function
(
e
){
var
t
=
this
,
n
=
document
.
createElement
(
"
div
"
),
a
=
document
.
createElement
(
"
div
"
);
a
.
style
.
backgroundColor
=
this
.
backgroundColor
,
a
.
style
.
border
=
"
2px solid #fff
"
,
a
.
style
.
borderRadius
=
"
3px
"
,
a
.
style
.
boxShadow
=
"
0 2px 6px rgba(0,0,0,.3)
"
,
a
.
style
.
cursor
=
"
pointer
"
,
a
.
style
.
marginBottom
=
"
22px
"
,
a
.
style
.
textAlign
=
"
center
"
,
a
.
title
=
this
.
title
,
n
.
appendChild
(
a
);
var
o
=
document
.
createElement
(
"
div
"
);
return
o
.
style
.
color
=
"
rgb(25,25,25)
"
,
o
.
style
.
fontFamily
=
"
Roboto,Arial,sans-serif
"
,
o
.
style
.
fontSize
=
"
16px
"
,
o
.
style
.
lineHeight
=
"
38px
"
,
o
.
style
.
paddingLeft
=
"
5px
"
,
o
.
style
.
paddingRight
=
"
5px
"
,
o
.
innerHTML
=
this
.
text
,
a
.
appendChild
(
o
),
e
.
getContainer
().
appendChild
(
n
),
a
.
addEventListener
(
"
click
"
,(
function
(){
t
.
onClickHandler
(
o
)})),
n
}}]),
t
}(
BMap
.
Control
)}}]);
//# sourceMappingURL=3.bundle.js.map
\ No newline at end of file
modules/dreamview/frontend/dist/3.bundle.js.map
浏览文件 @
43e3cc28
{"version":3,"file":"3.bundle.js","sources":["webpack:///3.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{483:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a=d(n(3)),o=d(n(4)),i=d(n(5)),l=d(n(36)),r=d(n(1)),s=d(n(2)),u=n(177);function d(e){return e&&e.__esModule?e:{default:e}}var c=function(){function e(){(0,r.default)(this,e),this.map=null,this.controls=[],this.initializedCenter=!1}return(0,s.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.map}},{key:\"loadMap\",value:function(e,t){this.map=new BMap.Map(t,{enableMapClick:!1}),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:\"setCenter\",value:function(e){this.initializedCenter?this.map.setCenter(e):(this.map.centerAndZoom(e,19),this.initializedCenter=!0)}},{key:\"setZoom\",value:function(e){this.map.setZoom(e)}},{key:\"addEventHandler\",value:function(e,t){this.map.addEventListener(e,(function(e){var n=e.point;t(n)}))}},{key:\"createPoint\",value:function(e){var t=e.lat,n=e.lng;return new BMap.Point(n,t)}},{key:\"createMarker\",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=null;t&&(a=new BMap.Label(t,{point:e,offset:new BMap.Size(15,-15)}));var o=new BMap.Marker(e,{label:a,enableDragging:n,rotation:5});return o.setLabel(a),this.map.addOverlay(o),o}},{key:\"createPolyline\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o={geodesic:!0,strokeColor:t,strokeOpacity:n,strokeWeight:a},i=new BMap.Polyline(e,o);return this.map.addOverlay(i),i}},{key:\"createControl\",value:function(e){var t=e.text,n=e.tip,a=e.color,o=e.offsetX,i=e.offsetY,l=e.onClickHandler,r=new p(t,n,a,new BMap.Size(o,i),l);this.map.addControl(r),this.controls.push(r)}},{key:\"disableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.removeControl(t)}))}},{key:\"enableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.addControl(t)}))}},{key:\"getMarkerPosition\",value:function(e){return e.getPosition()}},{key:\"updatePolyline\",value:function(e,t){e.setPath(t)}},{key:\"removePolyline\",value:function(e){this.map.removeOverlay(e)}},{key:\"applyCoordinateOffset\",value:function(e){var t=(0,l.default)(e,2),n=t[0],a=t[1];return(0,u.WGS84ToBD09LL)(n,a)}}]),e}();t.default=c;var p=function(e){function t(e,n,i,l,s){var u;(0,r.default)(this,t);for(var d=arguments.length,c=Array(d>5?d-5:0),p=5;p<d;p++)c[p-5]=arguments[p];var f=(0,o.default)(this,(u=t.__proto__||(0,a.default)(t)).call.apply(u,[this].concat(c)));return f.defaultAnchor=BMAP_ANCHOR_TOP_LEFT,f.defaultOffset=l,f.onClickHandler=s,f.title=n,f.text=e,f.backgroundColor=i,f}return(0,i.default)(t,e),(0,s.default)(t,[{key:\"initialize\",value:function(e){var t=this,n=document.createElement(\"div\"),a=document.createElement(\"div\");a.style.backgroundColor=this.backgroundColor,a.style.border=\"2px solid #fff\",a.style.borderRadius=\"3px\",a.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",a.style.cursor=\"pointer\",a.style.marginBottom=\"22px\",a.style.textAlign=\"center\",a.title=this.title,n.appendChild(a);var o=document.createElement(\"div\");return o.style.color=\"rgb(25,25,25)\",o.style.fontFamily=\"Roboto,Arial,sans-serif\",o.style.fontSize=\"16px\",o.style.lineHeight=\"38px\",o.style.paddingLeft=\"5px\",o.style.paddingRight=\"5px\",o.innerHTML=this.text,a.appendChild(o),e.getContainer().appendChild(n),a.addEventListener(\"click\",(function(){t.onClickHandler(o)})),n}}]),t}(BMap.Control)}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
{"version":3,"file":"3.bundle.js","sources":["webpack:///3.bundle.js"],"sourcesContent":["(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{483:function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),t.default=void 0;var a=c(n(3)),o=c(n(4)),i=c(n(5)),l=c(n(36)),r=c(n(23)),s=c(n(1)),u=c(n(2)),d=n(177);function c(e){return e&&e.__esModule?e:{default:e}}var p=function(){function e(){(0,s.default)(this,e),this.map=null,this.controls=[],this.initializedCenter=!1}return(0,u.default)(e,[{key:\"isInitialized\",value:function(){return null!==this.map&&(0,r.default)(this.map).length>0}},{key:\"loadMap\",value:function(e,t){this.map=new BMap.Map(t,{enableMapClick:!1}),this.map.enableScrollWheelZoom(),this.map.addControl(new BMap.MapTypeControl({anchor:BMAP_ANCHOR_TOP_LEFT,type:BMAP_NAVIGATION_CONTROL_SMALL})),this.map.addControl(new BMap.NavigationControl({anchor:BMAP_ANCHOR_BOTTOM_RIGHT,type:BMAP_NAVIGATION_CONTROL_SMALL,enableGeolocation:!1}))}},{key:\"setCenter\",value:function(e){this.initializedCenter?this.map.setCenter(e):(this.map.centerAndZoom(e,19),this.initializedCenter=!0)}},{key:\"setZoom\",value:function(e){this.map.setZoom(e)}},{key:\"addEventHandler\",value:function(e,t){this.map.addEventListener(e,(function(e){var n=e.point;t(n)}))}},{key:\"createPoint\",value:function(e){var t=e.lat,n=e.lng;return new BMap.Point(n,t)}},{key:\"createMarker\",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=null;t&&(a=new BMap.Label(t,{point:e,offset:new BMap.Size(15,-15)}));var o=new BMap.Marker(e,{label:a,enableDragging:n,rotation:5});return o.setLabel(a),this.map.addOverlay(o),o}},{key:\"createPolyline\",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,o={geodesic:!0,strokeColor:t,strokeOpacity:n,strokeWeight:a},i=new BMap.Polyline(e,o);return this.map.addOverlay(i),i}},{key:\"createControl\",value:function(e){var t=e.text,n=e.tip,a=e.color,o=e.offsetX,i=e.offsetY,l=e.onClickHandler,r=new f(t,n,a,new BMap.Size(o,i),l);this.map.addControl(r),this.controls.push(r)}},{key:\"disableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.removeControl(t)}))}},{key:\"enableControls\",value:function(){var e=this;this.controls.forEach((function(t){e.map.addControl(t)}))}},{key:\"getMarkerPosition\",value:function(e){return e.getPosition()}},{key:\"updatePolyline\",value:function(e,t){e.setPath(t)}},{key:\"removePolyline\",value:function(e){this.map.removeOverlay(e)}},{key:\"applyCoordinateOffset\",value:function(e){var t=(0,l.default)(e,2),n=t[0],a=t[1];return(0,d.WGS84ToBD09LL)(n,a)}}]),e}();t.default=p;var f=function(e){function t(e,n,i,l,r){var u;(0,s.default)(this,t);for(var d=arguments.length,c=Array(d>5?d-5:0),p=5;p<d;p++)c[p-5]=arguments[p];var f=(0,o.default)(this,(u=t.__proto__||(0,a.default)(t)).call.apply(u,[this].concat(c)));return f.defaultAnchor=BMAP_ANCHOR_TOP_LEFT,f.defaultOffset=l,f.onClickHandler=r,f.title=n,f.text=e,f.backgroundColor=i,f}return(0,i.default)(t,e),(0,u.default)(t,[{key:\"initialize\",value:function(e){var t=this,n=document.createElement(\"div\"),a=document.createElement(\"div\");a.style.backgroundColor=this.backgroundColor,a.style.border=\"2px solid #fff\",a.style.borderRadius=\"3px\",a.style.boxShadow=\"0 2px 6px rgba(0,0,0,.3)\",a.style.cursor=\"pointer\",a.style.marginBottom=\"22px\",a.style.textAlign=\"center\",a.title=this.title,n.appendChild(a);var o=document.createElement(\"div\");return o.style.color=\"rgb(25,25,25)\",o.style.fontFamily=\"Roboto,Arial,sans-serif\",o.style.fontSize=\"16px\",o.style.lineHeight=\"38px\",o.style.paddingLeft=\"5px\",o.style.paddingRight=\"5px\",o.innerHTML=this.text,a.appendChild(o),e.getContainer().appendChild(n),a.addEventListener(\"click\",(function(){t.onClickHandler(o)})),n}}]),t}(BMap.Control)}}]);"],"mappings":"AAAA","sourceRoot":""}
\ No newline at end of file
modules/dreamview/frontend/dist/app.bundle.js
浏览文件 @
43e3cc28
此差异已折叠。
点击以展开。
modules/dreamview/frontend/dist/app.bundle.js.map
浏览文件 @
43e3cc28
此差异已折叠。
点击以展开。
modules/dreamview/frontend/src/components/Navigation/BaiduMapAdapter.js
浏览文件 @
43e3cc28
...
...
@@ -8,7 +8,7 @@ export default class BaiduMapAdapter {
}
isInitialized
()
{
return
this
.
map
!==
null
;
return
this
.
map
!==
null
&&
Object
.
keys
(
this
.
map
).
length
>
0
;
}
loadMap
(
initPoint
,
divElementName
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录