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
fe32eda0
authored
2020-07-31 09:21:38 +0800
by
jikai
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
111111
1 parent
01758188
Show 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 @
fe32eda
...
...
@@ -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