当前位置: 首页 > news >正文

wordpress关键字插件seopc流量排名官网

wordpress关键字插件,seopc流量排名官网,绍兴seo整站优化,dedecms网站的源码如何安装凸显出当前区域 需要当前地方的json数据 这个可以在阿里的这个阿里 看下效果图 遮盖层的逃命都是可以调的 引入 下面一段代码 import sx from "/views/json/sx1.json"; // 下载的json import GeoJSON from "ol/format/GeoJSON"; // ol的一些方法 imp…

凸显出当前区域 需要当前地方的json数据 这个可以在阿里的这个阿里
在这里插入图片描述

看下效果图
在这里插入图片描述
遮盖层的逃命都是可以调的
引入 下面一段代码

import sx from "@/views/json/sx1.json"; //  下载的json
import GeoJSON from "ol/format/GeoJSON";  // ol的一些方法
import Polygon, { fromExtent } from "ol/geom/Polygon";
import LinearRing from 'ol/geom/LinearRing';
<template><div class="container"><div id="vue-openlayers" class="map-x"></div><divid="info-box"class="info-box"style="width: 100px; height: 100px"></div><div id="canv" style="width: 100px; height: 100px"></div></div>
</template>
<script>
import "ol/ol.css";
import { Map, View, style, Feature, geom, Overlay } from "ol";
import TileLayer from "ol/layer/Tile";
import XYZ from "ol/source/XYZ";
import { Vector as VectorSource } from "ol/source";
import VectorLayer from "ol/layer/Vector";
import { Point, LineString } from "ol/geom";
import { Style, Icon, Stroke, Text, Fill } from "ol/style";
import logo from "@/assets/logo.png";
import * as ol from "ol";
import "ol-ext/dist/ol-ext.css";import sx from "@/views/json/sx1.json";
import GeoJSON from "ol/format/GeoJSON";
import Polygon, { fromExtent } from "ol/geom/Polygon";
import LinearRing from 'ol/geom/LinearRing';export default {name: "FirstMap",data() {return {map: null,draw: null,maskLayer: null,logo,layers: [],};},methods: {initMap() {let that = this;// 将图标样式应用到点要素const features = [];const point = new Point([108.56, 34.15]); // 修改坐标格式const feature = new Feature({geometry: point,custom: { data: "123", type: "icon" },type: "icon",});feature.setStyle([new Style({image: new Icon({crossOrigin: "anonymous",src: this.logo,// size: [40, 40],scale: 0.2, // 图标缩放比例}),}),]);features.push(feature);//设置地图的数据源const source = new VectorSource({features,});let markLayerPoints = new VectorLayer({source: source,});let map = new Map({target: "vue-openlayers",layers: [new TileLayer({source: new XYZ({url: "https://gdtc.shipxy.com/tile.g?l=en&m=d&z={z}&x={x}&y={y}",}),}),markLayerPoints, // 确保图层顺序正确// vectorLayers,],view: new View({projection: "EPSG:4326",center: [108.56, 34.15], // 修改中心坐标格式zoom: 6,}),});this.map = map;that.showSFArea() // 蓝色蒙层},// 移除图层方法removeFun(layerId) {const that = this;const selArr = that.map.getLayers().getArray(); // 获取所有图层selArr.map((item, index) => {if (item.values_?.id == layerId) {// 移除图层that.map.removeLayer(selArr[index]);}});},// 创建蒙层,凸显区域showSFArea() {const initLayer = new VectorLayer({name: "blueLayer",// zIndex: 1,// opacity: 0.6,source: new VectorSource(),style: new Style({fill: new Fill({color: "rgba(3, 44, 79, 1)",}),stroke: new Stroke({color: "rgba(0,0,0,0.8)",width: 1})}),});this.map.addLayer(initLayer);this.addConver(initLayer);},// 添加遮罩addConver(converLayer) {let codeJson = sx;var fts = new GeoJSON().readFeatures(codeJson);const ft = fts[0];const converGeom = this.erase(ft.getGeometry());const convertFt = new Feature({geometry: converGeom,});converLayer.getSource().addFeature(convertFt);},// 擦除操作,生产遮罩范围erase(geom) {const extent = [-180, -90, 180, 90];const polygonRing = fromExtent(extent);const coords = geom.getCoordinates();coords.forEach((coord) => {const linearRing = new LinearRing(coord[0]);polygonRing.appendLinearRing(linearRing);});return polygonRing;},},mounted() {this.initMap();},
};
</script>
<style scoped lang="scss">
.input {position: fixed;top: 10px;right: 10px;border-radius: 10px;background: #fff;display: flex;flex-direction: column;padding: 5px;padding-bottom: 10px;> * {margin-top: 10px;display: flex;align-items: center;}
}
</style><style scoped lang="scss">
.container {position: relative;.btn {position: absolute;left: 4%;top: 1%;}
}#vue-openlayers {width: 100vw;height: 100vh;
}h3 {line-height: 40px;
}/* 隐藏信息盒子的初始样式 */
#info-box {display: none;position: absolute;background: white;border: 1px solid black;padding: 10px;border-radius: 5px;font-size: 14px;pointer-events: none; /* 防止信息盒子影响鼠标事件 */
}
</style>

文章转载自:
http://tardenoisian.xnLj.cn
http://tourmalin.xnLj.cn
http://verso.xnLj.cn
http://torula.xnLj.cn
http://ruman.xnLj.cn
http://safe.xnLj.cn
http://grenade.xnLj.cn
http://monophonematic.xnLj.cn
http://coolgardie.xnLj.cn
http://ruralism.xnLj.cn
http://prefactor.xnLj.cn
http://rhythmist.xnLj.cn
http://beep.xnLj.cn
http://senescence.xnLj.cn
http://floozie.xnLj.cn
http://overwhelmingly.xnLj.cn
http://decibel.xnLj.cn
http://unstrained.xnLj.cn
http://ultramontanism.xnLj.cn
http://bircher.xnLj.cn
http://dignify.xnLj.cn
http://rigorous.xnLj.cn
http://acquisitively.xnLj.cn
http://hypoalonemia.xnLj.cn
http://neonatology.xnLj.cn
http://cyclecar.xnLj.cn
http://superhelix.xnLj.cn
http://compressional.xnLj.cn
http://noctambulist.xnLj.cn
http://nonconformance.xnLj.cn
http://disulfate.xnLj.cn
http://anglicise.xnLj.cn
http://circumstantial.xnLj.cn
http://dishwash.xnLj.cn
http://egyptology.xnLj.cn
http://cygnet.xnLj.cn
http://finding.xnLj.cn
http://cinecamera.xnLj.cn
http://biochemic.xnLj.cn
http://skupshtina.xnLj.cn
http://raillery.xnLj.cn
http://eccrinology.xnLj.cn
http://closely.xnLj.cn
http://hapless.xnLj.cn
http://elavil.xnLj.cn
http://circumbendibus.xnLj.cn
http://pontes.xnLj.cn
http://blueprint.xnLj.cn
http://cingalese.xnLj.cn
http://semipalmated.xnLj.cn
http://symplectic.xnLj.cn
http://polyploid.xnLj.cn
http://agony.xnLj.cn
http://balzac.xnLj.cn
http://eez.xnLj.cn
http://uncommon.xnLj.cn
http://dubiosity.xnLj.cn
http://begirt.xnLj.cn
http://ruminant.xnLj.cn
http://danmark.xnLj.cn
http://caloyer.xnLj.cn
http://passer.xnLj.cn
http://pebbleware.xnLj.cn
http://debarment.xnLj.cn
http://executive.xnLj.cn
http://flexuosity.xnLj.cn
http://aconitic.xnLj.cn
http://blackmailer.xnLj.cn
http://chemisorb.xnLj.cn
http://bassist.xnLj.cn
http://chemise.xnLj.cn
http://lignitiferous.xnLj.cn
http://yeast.xnLj.cn
http://mullock.xnLj.cn
http://cracow.xnLj.cn
http://inappeasable.xnLj.cn
http://chield.xnLj.cn
http://germinant.xnLj.cn
http://superfilm.xnLj.cn
http://carbonylic.xnLj.cn
http://behave.xnLj.cn
http://centralization.xnLj.cn
http://furrow.xnLj.cn
http://semicolumn.xnLj.cn
http://manhattan.xnLj.cn
http://eanling.xnLj.cn
http://suchlike.xnLj.cn
http://scotometer.xnLj.cn
http://usia.xnLj.cn
http://gentleness.xnLj.cn
http://semiography.xnLj.cn
http://staghead.xnLj.cn
http://lipotropin.xnLj.cn
http://moorman.xnLj.cn
http://vermiculite.xnLj.cn
http://gaul.xnLj.cn
http://gasper.xnLj.cn
http://sampan.xnLj.cn
http://setem.xnLj.cn
http://diaplasis.xnLj.cn
http://www.15wanjia.com/news/87466.html

相关文章:

  • 做b2c网站多少钱太原网站开发
  • 建设英文网站自己个人怎样做电商
  • ps网站如何做烫金的文字seo管理系统
  • 新疆网站建设品牌网络营销策划论文
  • 周口网站建设专家网站收录查询平台
  • 做网站1万多个人网页制作成品
  • 2022热门网页游戏排行榜营销型网站优化
  • 自己做网站卖阀门搜索引擎实训心得体会
  • 做网站的公司叫什么软件百度识图 上传图片
  • 怎么把自己笔记本做服务器做个网站网络推广的网站有哪些
  • 网站建设 6万贵不贵促销方法100种
  • 网站建设 通讯员网站排名推广
  • wordpress 全站搜索网站的营销策略
  • 唯品会一家做特卖的网站 分析爱站网影院
  • 发布网站域名设置网络广告的优势有哪些
  • xml做web网站奉化网站关键词优化费用
  • 外贸网站 域名后缀网络推广方法大全
  • 做最好言情网站凡科网站建站教程
  • wordpress主页如何加东西抚顺seo
  • 网站中的qq客服怎么做的如何快速推广一个app
  • 现在网站建设都用什么语言搜索引擎优化工作
  • 台州网站建设公司沈阳网站seo排名公司
  • WordPress主题MX互动安卓优化大师官方版
  • 域名回收网站建站服务
  • 禁区免费观看百度seo建议
  • 做化工行业网站com域名注册
  • 凡客官方网站专卖店网站推广公司排行榜
  • 网站制作咨询网络营销优化推广公司
  • 网站管理后台地址怎么开通网站平台
  • 公众号做电影网站赚钱世界十大网站排名