<template>
<div id="map" style=" width:1080px;height:700px; background-color: gray;"></div>
<div id="info"> </div>
</template>
<script>
import GeoJSON from "ol/format/GeoJSON";
import Map from "ol/Map";
import VectorLayer from "ol/layer/Vector";
import VectorSource from "ol/source/Vector";
import View from "ol/View";
import { Fill, Stroke, Style } from "ol/style";
import XYZ from "ol/source/XYZ";
import TileLayer from "ol/layer/Tile";
import { useMessage } from 'naive-ui';
export default {
components: {},
data() {
return {
map: null,
featureOverlay: null,
selFeature: null,
url:
"http://wprd0{1-4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x={x}&y={y}&z={z}",
};
},
mounted() {
let style = new Style({
fill: new Fill({
color: "#eeeeee",
}),
});
//数据图层:
let vectorLayer = new VectorL
ol叠加矢量图层
于 2022-12-18 07:16:04 首次发布

最低0.47元/天 解锁文章
3019

被折叠的 条评论
为什么被折叠?



