Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
map-property-screen
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhangzhaohui
map-property-screen
Commits
afbbdc4a
Commit
afbbdc4a
authored
Jun 26, 2024
by
zhangzhaohui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签高度修改
parent
c3a1989d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
index.vue
src/view/index.vue
+6
-5
vite.config.js
vite.config.js
+5
-0
No files found.
src/view/index.vue
View file @
afbbdc4a
...
@@ -107,8 +107,9 @@ function drawCommunityMarker(arr) {
...
@@ -107,8 +107,9 @@ function drawCommunityMarker(arr) {
// 绘制小区标记
// 绘制小区标记
function
drawHouseMarker
(
arr
)
{
function
drawHouseMarker
(
arr
)
{
arr
.
forEach
((
item
)
=>
{
arr
.
forEach
((
item
)
=>
{
let
position
=
JSON
.
parse
(
item
.
solid
);
let
position
=
cartesianToDegrees
(
JSON
.
parse
(
item
.
solid
));
console
.
log
(
"position"
,
position
);
position
=
degreesToCartesian
(
position
)
console
.
log
(
position
)
drawLabel
(
position
,
item
.
name
,
"#003860"
,
"blue_dw_icon"
,
{
drawLabel
(
position
,
item
.
name
,
"#003860"
,
"blue_dw_icon"
,
{
...
item
,
...
item
,
type
:
"house"
,
type
:
"house"
,
...
@@ -144,13 +145,13 @@ function cartesianToDegrees(cartesian) {
...
@@ -144,13 +145,13 @@ function cartesianToDegrees(cartesian) {
let
longitude
=
Cesium
.
Math
.
toDegrees
(
cartographic
.
longitude
);
let
longitude
=
Cesium
.
Math
.
toDegrees
(
cartographic
.
longitude
);
let
latitude
=
Cesium
.
Math
.
toDegrees
(
cartographic
.
latitude
);
let
latitude
=
Cesium
.
Math
.
toDegrees
(
cartographic
.
latitude
);
return
{
return
{
longitude
,
x
:
longitude
,
latitude
,
y
:
latitude
,
};
};
}
}
// cesium 经纬度转笛卡尔坐标
// cesium 经纬度转笛卡尔坐标
function
degreesToCartesian
(
position
)
{
function
degreesToCartesian
(
position
)
{
let
cartesian3
=
Cesium
.
Cartesian3
.
fromDegrees
(
position
.
x
,
position
.
y
);
let
cartesian3
=
Cesium
.
Cartesian3
.
fromDegrees
(
position
.
x
,
position
.
y
,
0
);
return
cartesian3
;
return
cartesian3
;
}
}
// 镜头飞到某个位置
// 镜头飞到某个位置
...
...
vite.config.js
View file @
afbbdc4a
...
@@ -27,6 +27,11 @@ export default defineConfig({
...
@@ -27,6 +27,11 @@ export default defineConfig({
changeOrigin
:
true
,
changeOrigin
:
true
,
// rewrite: (path) => path.replace(/^\/prod-api/, ""),
// rewrite: (path) => path.replace(/^\/prod-api/, ""),
},
},
"/wcjd"
:
{
target
:
"http://10.35.66.214:8080/"
,
changeOrigin
:
true
,
rewrite
:
(
path
)
=>
path
.
replace
(
/^
\/
wcjd/
,
""
),
},
},
},
},
},
resolve
:
{
resolve
:
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment