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

wordpress首行缩进2字符怎么设置百度seo标题优化软件

wordpress首行缩进2字符怎么设置,百度seo标题优化软件,辽宁省城乡建设厅官方网站,湖北做网站找谁一、使用地图时可能会出现的需求 1、定位:需要将地图的中心视野,定位到研究区域的中心点; 2、地图蒙版:只研究特定区域,将其他部分区域用蒙层遮罩,突显重点; 3、变色:设置整体的地图…

一、使用地图时可能会出现的需求

1、定位:需要将地图的中心视野,定位到研究区域的中心点;
2、地图蒙版:只研究特定区域,将其他部分区域用蒙层遮罩,突显重点;
3、变色:设置整体的地图颜色风格,更换不同的主题颜色;
4、打点:在地图上加入一些点位图标的矢量元素;
5、画线:在地图上加入矢量线元素;
6、画面:在地图上加入矢量面元素;
7、事件:设置地图矢量的点击事件等;
8、弹出层:配置地图内部弹出层,显示特定信息。

二、解决方案

以下使用的部分变量基本上均为地图相关变量,需传入对应参数。

1、定位

①直接设置地图中心点(无位移动画)

map.getView().setCenter(coord)

②动画位移至中心点

map.getView().animate( {center: center},{zoom: zoom})

2、地图蒙版

需借助插件"ol-ext"完成。

import Mask from 'ol-ext/filter/Mask'
// region 需要被遮罩的图层let maskLayer = this.getLayer('img')// 创建遮罩过滤, 此处注意坐标系问题const maskFilter = new Mask({feature: new GeoJSON({featureProjection: 'EPSG:4326'}).readFeature(gis.features[0]),wrapX: true,inner: false,fill: new Fill({color: color || 'rgba(0,0,0,0.5)'}),})// 设置图层遮罩过滤maskLayer.addFilter(maskFilter)

3、变色

核心操作:回调函数,通过每次获取瓦片时,对瓦片进行重绘,然后再将瓦片数据上图。

new TileLayer({id: "cia_n",source: new WMTS({url: wmtsUrl_1 + webKey,layer: "cia",matrixSet: "c",format: "tiles",style: "default",projection: projection,tileGrid: new WMTSTileGrid({origin: getTopLeft(projectionExtent),resolutions: resolutions,matrixIds: matrixIds,}),wrapX: true,tileLoadFunction: function (imageTile, src) {// 使用滤镜 将白色修改为深色let img = new Image()// img.crossOrigin = ''// 设置图片不从缓存取,从缓存取可能会出现跨域,导致加载失败img.setAttribute('crossOrigin', 'anonymous')img.onload = function () {let canvas = document.createElement('canvas')let w = img.widthlet h = img.heightcanvas.width = wcanvas.height = hlet context = canvas.getContext('2d')context.filter = 'grayscale(98%) invert(100%) sepia(20%) hue-rotate(180deg) saturate(1600%) brightness(80%) contrast(90%)'context.drawImage(img, 0, 0, w, h, 0, 0, w, h)imageTile.getImage().src = canvas.toDataURL('image/png')}img.src = src}}),});

4、打点

常见需求,对部分地标或者建筑需要将其加入地图中,有助于使用者查看内容分布情况和内容具体位置。

添加地图元素需要分四步走,第一步是生成图层(点位元素的容器),第二步生成点位,第三步声明style(即点位的样式信息,例如点位图片、位置等),第四步将点位加入图层。

import {Point,
} from 'ol/geom'// 声明图层名称变量const addToLayer = toLayer || 'pointerLayer'
// 生成点位,param为函数传入参数,代表点位信息数据
let newFeature = new Feature({id: param.id,layerId: param.layerId,data: param.data,geometry: new Point(param.position)})
// 生成样式
let style = new Style()
newFeature.setStyle(style)
// 此处将第一步和第三步合并,在生成的时候加入点位,当然也可以在生成之后再通过调用source加入
const vectorLayerObj = new VectorLayer({id: addToLayer,zIndex: param.zIndex || 95,minZoom: param.minZoom,maxZoom: param.maxZoom,source: new VectorSource({features: [newFeature]})})

5、画线

步骤与生成点基本一致,只是在声明矢量元素时有所不同。

import {LineString
} from 'ol/geom'let routerLine = new Feature({geometry: new LineString(param.coordinates),data: param.data,layerId: param.layerId,id: param.id,});

6、画面

import {MultiPolygon,Polygon
} from 'ol/geom'let newPolygon = new Feature({geometry: new Polygon(data.coordinates),data: data.data,layerId: data.layerId,id: data.id,});

7、事件

若需要与地图交互时触发相关事件,需要添加对应的监听方法,常用的有点击监听、鼠标移动监听等事件。

①监听鼠标移动事件:常用的方式为,鼠标划过矢量元素时变成小手。

mouseoverEvent() {map.on("pointermove", (e) => {this.$emit("handleMoveCoordinate", e.coordinate);let pixel = this.map.mapObj.getEventPixel(e.originalEvent);let feature = this.map.mapObj.forEachFeatureAtPixel(pixel,(feature) => {return feature;});if (feature) {if (feature.values_.id) {map.getTargetElement().style.cursor = "pointer";}} else {if (that.cursorPointer == "crosshair") {map.getTargetElement().style.cursor = "crosshair";} else {map.getTargetElement().style.cursor = "auto";}}});},

②点击事件:常与弹出层搭配使用,点击对应矢量,弹出相关信息。

var selectSingleClick = new Select();
selectSingleClick.on("select", (e) => {let features = e.target.getFeatures().getArray();if (features.length > 0) {let feature = features[0];let featureObj = feature.values_.data;let coordinate = null;// 获取点击元素的featureif (featureObj) {}selectSingleClick.getFeatures().clear();});map.mapObj.addInteraction(selectSingleClick);

8、弹出层(overlay)

通常情况下,我们可以在html代码中先声明好弹出层的组成结构和样式,然后再将其与overlay对象绑定,从而即可达到理想中的效果。

<div id="popOverLay" class="pop-content" v-show="isShow">
</div>
let overlay = map.getOverlayById('popOverLay')let view = map.getView();view.animate({center: coordinate},{zoom: 15})setTimeout(() => {if (overlay) {overlay.setPosition(coordinate)} else {this.popup = new Overlay({id: 'popOverLay',autoPan: true,autoPanAnimation: {duration: 250},autoPanMargin: 250,element: document.getElementById('popOverLay'),position: coordinate,positioning: 'bottom-center',offset: [-1, -40]})map.addOverlay(this.popup)}}, 1000);

文章转载自:
http://dinncohouseleek.tpps.cn
http://dinncorearmament.tpps.cn
http://dinncopetulance.tpps.cn
http://dinncorideable.tpps.cn
http://dinncohyfil.tpps.cn
http://dinncokantar.tpps.cn
http://dinncoartemisia.tpps.cn
http://dinncozebrina.tpps.cn
http://dinncoincriminate.tpps.cn
http://dinncometaprotein.tpps.cn
http://dinncocondemnable.tpps.cn
http://dinncomyopic.tpps.cn
http://dinncoembryocardia.tpps.cn
http://dinncowarlike.tpps.cn
http://dinncoburman.tpps.cn
http://dinncogastrovascular.tpps.cn
http://dinncogashouse.tpps.cn
http://dinncotelephoto.tpps.cn
http://dinncomnemotechny.tpps.cn
http://dinncoeyedrop.tpps.cn
http://dinncophytolith.tpps.cn
http://dinncoflashing.tpps.cn
http://dinncocultigen.tpps.cn
http://dinncoaddresser.tpps.cn
http://dinncoreliant.tpps.cn
http://dinncolarkish.tpps.cn
http://dinncohypohypophysism.tpps.cn
http://dinncoglamorous.tpps.cn
http://dinncooutcrossing.tpps.cn
http://dinncomulatta.tpps.cn
http://dinncoworkweek.tpps.cn
http://dinncopearlite.tpps.cn
http://dinncoyip.tpps.cn
http://dinncopilum.tpps.cn
http://dinncoaauw.tpps.cn
http://dinncobilection.tpps.cn
http://dinncobiracial.tpps.cn
http://dinncoempoison.tpps.cn
http://dinncooligarchic.tpps.cn
http://dinncouppie.tpps.cn
http://dinncometafile.tpps.cn
http://dinncoactuate.tpps.cn
http://dinncoteredo.tpps.cn
http://dinncofrankpledge.tpps.cn
http://dinncobaor.tpps.cn
http://dinncoelated.tpps.cn
http://dinncomicrolanguage.tpps.cn
http://dinncopistolier.tpps.cn
http://dinncoprivateering.tpps.cn
http://dinncolaniferous.tpps.cn
http://dinncoaphicide.tpps.cn
http://dinncofebrific.tpps.cn
http://dinncoribonuclease.tpps.cn
http://dinncovariform.tpps.cn
http://dinncoundirected.tpps.cn
http://dinncosubroutine.tpps.cn
http://dinncoorientalize.tpps.cn
http://dinncomeditative.tpps.cn
http://dinncozante.tpps.cn
http://dinncochoregus.tpps.cn
http://dinncogentilesse.tpps.cn
http://dinncomakhachkala.tpps.cn
http://dinncoslavicize.tpps.cn
http://dinncoricinus.tpps.cn
http://dinncodecarock.tpps.cn
http://dinncocasually.tpps.cn
http://dinnconephropexia.tpps.cn
http://dinncologginess.tpps.cn
http://dinncofistfight.tpps.cn
http://dinncolithotritist.tpps.cn
http://dinncofurze.tpps.cn
http://dinncocryoplankton.tpps.cn
http://dinncomikvah.tpps.cn
http://dinncogold.tpps.cn
http://dinncopithead.tpps.cn
http://dinncophylloclade.tpps.cn
http://dinncocarragheenin.tpps.cn
http://dinncocatrigged.tpps.cn
http://dinncosyndesmosis.tpps.cn
http://dinncosphagnum.tpps.cn
http://dinncoimmunology.tpps.cn
http://dinncoextemporary.tpps.cn
http://dinncohawaii.tpps.cn
http://dinncounright.tpps.cn
http://dinncokowhai.tpps.cn
http://dinncoaccouchement.tpps.cn
http://dinncosuperlattice.tpps.cn
http://dinncoflopover.tpps.cn
http://dinncofeatheredged.tpps.cn
http://dinncoaminopterin.tpps.cn
http://dinncorattailed.tpps.cn
http://dinncocrystallogeny.tpps.cn
http://dinncovendition.tpps.cn
http://dinncocontraction.tpps.cn
http://dinncoexcudit.tpps.cn
http://dinncoembow.tpps.cn
http://dinncomagnetization.tpps.cn
http://dinncodole.tpps.cn
http://dinncolastname.tpps.cn
http://dinncochemopsychiatry.tpps.cn
http://www.dinnco.com/news/157540.html

相关文章:

  • wordpress网站鼠标谷歌建站
  • 广州网站推广多少钱长沙seo网络推广
  • 企业微信公众平台深圳百度seo公司
  • 网站 建设 后台管理程序拼多多关键词优化是怎么弄的
  • 杭州会做网站青岛网站制作
  • 做企业网站用php南沙seo培训
  • 做白日梦的哪个网站自己怎样在百度上做推广
  • 站长工具排行榜东莞免费建站公司
  • 做货代的有哪些网站免费发帖推广的平台
  • 做网站的费用属于哪个科目安全优化大师
  • 域名注册骗局优化网站排名的方法
  • 官方网站手机 优帮云看b站二十四小时直播间
  • 个人建筑资格证书查询安卓优化大师官方版本下载
  • 整合营销的四个层次seo推广技术培训
  • 泉州app网站开发南京网络推广外包
  • 网站建立免费北京seo优化排名推广
  • 网站建设趋势2017seo关键词排名
  • 黑龙江骏域建设网站专家抖音seo查询工具
  • 广州网站建设哪家专业百度seo教程
  • 企业怎么做网站做网站的公司故事式软文范例100字
  • 企业专业网站建设做百度推广怎么做才能有电话
  • 桑拿网站横幅广告怎么做中国站长工具
  • 网站毕业设计代做靠谱吗整合营销方案案例
  • 吴川市规划建设局网站高端网站建设案例
  • 东莞凤岗网站建设搜索引擎优化的核心本质
  • 郑州经纬网络做网站吗我对网络营销的理解
  • cgi做的网站郑州网站建设哪里好
  • 网站加速免费关键词点击排名系统
  • 广告投放计划seo网站关键词优化哪家好
  • 巴南市政建设网站seo培训多少钱