Skip to content

Commit

Permalink
更新案例
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoubichuan committed Feb 25, 2024
1 parent b8cb53a commit fdc8b9a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
6 changes: 6 additions & 0 deletions components/boxplot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ export default {
getInstance() {
return mapInstance;
},
getLayer(){
},
getSource(){
}
},
};
</script>
Expand Down
15 changes: 8 additions & 7 deletions components/demo/1-1-2-2-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ export default {
};
},
methods: {
movestart({
evt,
ol: {
extent: { getBottomLeft, getTopRight },
proj: { toLonLat },
},
}) {
movestart(params) {
let {
evt,
ol: {
extent: { getBottomLeft, getTopRight },
proj: { toLonLat },
},
} = params;
function wrapLon(value) {
const worlds = Math.floor((value + 180) / 360);
return value * worlds * 360;
Expand Down
15 changes: 8 additions & 7 deletions components/demo/1-1-2-2-2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ export default {
};
},
methods: {
moveend({
evt,
ol: {
extent: { getBottomLeft, getTopRight },
proj: { toLonLat },
},
}) {
moveend(params) {
let {
evt,
ol: {
extent: { getBottomLeft, getTopRight },
proj: { toLonLat },
},
} = params;
function wrapLon(value) {
const worlds = Math.floor((value + 180) / 360);
return value * worlds * 360;
Expand Down

0 comments on commit fdc8b9a

Please sign in to comment.