Skip to content

Commit

Permalink
更新代码
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoubichuan committed Dec 24, 2023
1 parent fb35dbc commit 1bb8748
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion components/boxplot.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
</template>

<script>
import "ol/ol.css";
let urls = [
// "http://t0.tianditu.com/DataServer?T=vec_w&x={x}&y={y}&l={z}&tk=d97ee4980a986e7d0c4f0a8c8f103a94",
// "http://t0.tianditu.com/DataServer?T=cva_w&x={x}&y={y}&l={z}&tk=d97ee4980a986e7d0c4f0a8c8f103a94",
Expand Down
2 changes: 1 addition & 1 deletion components/demo/2-1-2-1.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
// 获取轨迹点
let res = await this.$axios({
type: "get",
url: this.$withBase("/data/1.json"),
url: "../data/1.json",
});
let points = res.data.map((i) =>
ol.proj.transform(i, "EPSG:4326", "EPSG:3857")
Expand Down
4 changes: 2 additions & 2 deletions components/demo/2-1-3-2.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
async mounted() {
let chinaLayer = new VectorLayer({
source: new VectorSource({
url: this.$withBase("/data/topojson/province.json"),
url: "../data/topojson/province.json",
format: new TopoJSON(),
}),
style: new Style({
Expand Down Expand Up @@ -71,7 +71,7 @@ export default {
}
let res = await this.$axios({
type: "get",
url: this.$withBase("/data/topojson/province.json"),
url: "../data/topojson/province.json",
});
var features = new ol.format.TopoJSON({
featureProjection: "EPSG:3857",
Expand Down
3 changes: 2 additions & 1 deletion src/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ module.exports = {
base: "/web-openlayers/", // 部署站点的基础路径
port: 3009,
head: [
// ["script", { src: "/dll/vendor.dll.js" }],
["script", { src: "/dll/vendor.dll.js" }],
// ["script", { src: "/js/elm-pep.js" }],
// ["script", { src: "/js/minified.js" }],
// ["script", { src: "/js/gifler.min.js" }],
// ["script", { src: "/js/d3.min.js" }],
["script", { src: "/js/ol.js" }],
// ["script", { src: "/js/mapbox-streets-v6-style.js" }],
// ["script", { src: "/js/jszip.min.js" }],
// ["script", { src: "/js/gyronorm.complete.min.js" }],
Expand Down
2 changes: 0 additions & 2 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import axios from "axios";
import service from "@/util/request.js";
import moment from "moment";
import * as turf from '@turf/turf'
import proj4 from "proj4"
// const jsts = require("jsts/dist/jsts.min.js");

export default {
Expand All @@ -14,7 +13,6 @@ export default {
// window._ = _
// window.$env = process.env
// Vue.prototype.$SliderRight = SliderRight
Vue.prototype.$proj4 = proj4;
Vue.prototype.$turf = turf;
// Vue.prototype.$jsts = jsts;
Vue.prototype.$service = service;
Expand Down

0 comments on commit 1bb8748

Please sign in to comment.