Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
刘远
/
3d_dc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5184130d
authored
2020-08-01 17:04:20 +0800
by
刘远
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
2 parents
ed63bf9f
562b792a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/assets/js/map/tool.js
src/assets/js/map/tool.js
View file @
5184130
...
...
@@ -70,7 +70,7 @@ export default {
get
positions
()
{
return
this
.
_positions
;
}
startCreate
()
{
startCreate
(
func
)
{
var
$this
=
this
;
this
.
handler
.
setInputAction
(
function
(
evt
)
{
//单机开始绘制
var
cartesian
=
$this
.
getCatesian3FromPX
(
evt
.
position
);
...
...
@@ -106,6 +106,7 @@ export default {
$this
.
handler
.
destroy
();
$this
.
_positions
.
pop
();
$this
.
_positions
.
push
(
cartesian
);
func
(
$this
.
_positions
);
},
Cesium
.
ScreenSpaceEventType
.
RIGHT_CLICK
);
}
createPolygon
(
obj
)
{
...
...
@@ -192,7 +193,8 @@ export default {
var
billboard
=
this
.
viewer
.
entities
.
add
({
position
:
cartesian
,
billboard
:
{
image
:
'img/mark4.png'
,
// image: '../Apicture/icon_标注.png',
image
:
'http://localhost:8080/assets/Apicture/icon_标注.png'
,
scale
:
1
,
horizontalOrigin
:
Cesium
.
HorizontalOrigin
.
CENTER
,
verticalOrigin
:
Cesium
.
VerticalOrigin
.
BOTTOM
,
...
...
Please
register
or
sign in
to post a comment