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

个人 网站建设方案书 备案建设网官方网站

个人 网站建设方案书 备案,建设网官方网站,做网站备负责人风险大吗,wordpress 添加分类👨‍⚕️ 主页: gis分享者 👨‍⚕️ 感谢各位大佬 点赞👍 收藏⭐ 留言📝 加关注✅! 👨‍⚕️ 收录于专栏:mapbox 从入门到精通 文章目录 一、🍀前言1.1 ☘️mapboxgl.Map 地图对象…

👨‍⚕️ 主页: gis分享者
👨‍⚕️ 感谢各位大佬 点赞👍 收藏⭐ 留言📝 加关注✅!
👨‍⚕️ 收录于专栏:mapbox 从入门到精通

文章目录

  • 一、🍀前言
    • 1.1 ☘️mapboxgl.Map 地图对象
    • 1.2 ☘️mapboxgl.Map style属性
    • 1.3 ☘️snow 属性说明
  • 二、🍀添加绘图扩展插件,绘制任意方向矩形
    • 1. ☘️实现思路
    • 2. ☘️代码样例


一、🍀前言

本文详细介绍如何基于mapbox-gl v3.*.*、vue 3.*.* 版本中添加下雪效果,亲测可用。希望能帮助到您。一起学习,加油!加油!
注意:mapbox-gl V3版本 需要vue3 安装引入才可以使用,vue2 暂时没测试使用成功!

1.1 ☘️mapboxgl.Map 地图对象

mapboxgl.Map mapbox地图对象。
构造函数:
new Map class(options: Object)
本例使用属性:
在这里插入图片描述

1.2 ☘️mapboxgl.Map style属性

本例使用属性:

  • version:版本号,当前固定值为8。
  • sources:数据源集合(必填,用于包含一系列数据源
    source,这些数据源提供了在地图上显示的数据)。值为{}对象。{}中的属性名是数据源的名称。
    每个数据源 source 有的属性:
    type:数据源类型
    tiles:数据源地址
    tileSize:数据源切片大小
  • layers:图层集合(必填,包含了一系列图层 layer,这些图层指定了如何渲染数据源提供的数据)
    每个layer的属性(当前示例用到的):
    id:图层id
    type:图层类型
    source:数据源名称

1.3 ☘️snow 属性说明

"snow": {"density": 0.85, // 雪花密度,取值0-1 默认 ["interpolate",["linear"],["zoom"],11,0,13,0.85]"intensity": 1.0, // 雪花下落速度,取值0-1 默认1"center-thinning": 0.1, // 雪花从中心变薄系数,取值0-1 默认0.4"direction": [0, 50], // 雪花方向[方位角 极角] 默认[0,50]"opacity": 1.0, // 雪花透明度取值0-1 默认 1"color": "#ffffff", // 雪花颜色 默认'#ffffff'"flake-size": 0.71, // 雪花大,取值0-5 默认0.71"vignette": 0.3, // 雪花空间角落大小,取值0-1 默认["interpolate",["linear"],["zoom"],11,0,13,0.3]"vignette-color": "#ffffff" // 雪花空间角落颜色 默认'#ffffff'
}

相关地址
下雪效果_API

二、🍀添加绘图扩展插件,绘制任意方向矩形

1. ☘️实现思路

  • 1、引入’mapbox-gl’、'mapbox-gl/dist/mapbox-gl.css’文件
  • 2、添加id为map的html页面要素,定义map样式。
  • 3、定义initMap初始化地图方法,方法内创建mapboxgl.Map地图对象map。map绑定‘style.load’事件,在事件内部map调用setSnow方法,设置下雪相关参数。在mounted钩子函数中调用initMap方法。

2. ☘️代码样例

<template><div id='map'></div>
</template><script>
<template><div id='map'></div>
</template><script>
/** 下雪效果**/
import mapboxgl from 'mapbox-gl'
import 'mapbox-gl/dist/mapbox-gl.css'
export default {name: 'MapboxDrawSnow',data () {return {map: null}},mounted () {this.$nextTick(() => {this.initMap()})},methods: {initMap () {mapboxgl.accessToken = 'mapbox官网注册token'this.map = new mapboxgl.Map({container: 'map',zoom: 17,pitch: 74,minZoom: 0,center: [116.4, 39.9],style: 'mapbox://styles/mapbox/standard',projection: 'globe'})this.map.on('style.load', () => {this.map.setConfigProperty('basemap', 'lightPreset', 'dusk')const zoomBasedReveal = (value) => {return ['interpolate',['linear'],['zoom'],11,0.0,13,value]}this.map.setSnow({density: zoomBasedReveal(0.85),intensity: 1,'center-thinning': 0.1,direction: [0, 50],opacity: 1.0,color: `#ffffff`,'flake-size': 0.71,vignette: zoomBasedReveal(0.3),'vignette-color': `#ffffff`})})}}
}
</script><style scoped>
#map{height: 100vh;width: 100vw;
}
</style>

效果如下:
在这里插入图片描述


文章转载自:
http://indie.rywn.cn
http://scraping.rywn.cn
http://flanerie.rywn.cn
http://gurdwara.rywn.cn
http://innumerably.rywn.cn
http://violate.rywn.cn
http://angulation.rywn.cn
http://nepit.rywn.cn
http://briber.rywn.cn
http://endorser.rywn.cn
http://trophallaxis.rywn.cn
http://thoracectomy.rywn.cn
http://pennyweight.rywn.cn
http://conglomeratic.rywn.cn
http://diastral.rywn.cn
http://exempligratia.rywn.cn
http://xerophytism.rywn.cn
http://ragged.rywn.cn
http://skatole.rywn.cn
http://disclamation.rywn.cn
http://cubbing.rywn.cn
http://squaresville.rywn.cn
http://trisporic.rywn.cn
http://lipid.rywn.cn
http://beltsville.rywn.cn
http://judicative.rywn.cn
http://associability.rywn.cn
http://sickly.rywn.cn
http://scutum.rywn.cn
http://dysgenic.rywn.cn
http://cart.rywn.cn
http://semigovernmental.rywn.cn
http://frontal.rywn.cn
http://disgorge.rywn.cn
http://galvanizer.rywn.cn
http://vibrion.rywn.cn
http://skimo.rywn.cn
http://pushball.rywn.cn
http://flyboat.rywn.cn
http://frontality.rywn.cn
http://superfoetation.rywn.cn
http://emotionalist.rywn.cn
http://wirepuller.rywn.cn
http://rhamnose.rywn.cn
http://zoophytologist.rywn.cn
http://hostageship.rywn.cn
http://ratproofing.rywn.cn
http://nymphlike.rywn.cn
http://chervonets.rywn.cn
http://prosit.rywn.cn
http://unsufferable.rywn.cn
http://ui.rywn.cn
http://camerlingate.rywn.cn
http://mineral.rywn.cn
http://endosymbiosis.rywn.cn
http://undersheriff.rywn.cn
http://colligate.rywn.cn
http://birdcage.rywn.cn
http://rebaptism.rywn.cn
http://acouophonia.rywn.cn
http://hemanalysis.rywn.cn
http://derbyshire.rywn.cn
http://washleather.rywn.cn
http://halfhearted.rywn.cn
http://underpayment.rywn.cn
http://snockered.rywn.cn
http://cassia.rywn.cn
http://levitron.rywn.cn
http://wildlife.rywn.cn
http://align.rywn.cn
http://goumier.rywn.cn
http://protoplanet.rywn.cn
http://looker.rywn.cn
http://buckaroo.rywn.cn
http://correligionist.rywn.cn
http://isodiaphere.rywn.cn
http://squinny.rywn.cn
http://gentes.rywn.cn
http://applewife.rywn.cn
http://rapturousness.rywn.cn
http://wassat.rywn.cn
http://native.rywn.cn
http://adwriter.rywn.cn
http://silicone.rywn.cn
http://exasperation.rywn.cn
http://discretional.rywn.cn
http://odra.rywn.cn
http://annals.rywn.cn
http://microcosmos.rywn.cn
http://grippe.rywn.cn
http://microcamera.rywn.cn
http://filet.rywn.cn
http://appetent.rywn.cn
http://pentagon.rywn.cn
http://decorative.rywn.cn
http://machinelike.rywn.cn
http://superbity.rywn.cn
http://pecuniosity.rywn.cn
http://patresfamilias.rywn.cn
http://cheek.rywn.cn
http://www.15wanjia.com/news/80393.html

相关文章:

  • 如何查看网站根目录seo网站排名优化软件
  • 响应式设计网站大的网站建设公司
  • 网站统计有哪些怎么给自己的公司做网站
  • 成都装修建材网站建设鹤岗网站seo
  • html5单页面网站建设网络营销与推广
  • 公网ip做网站免费的网络推广有哪些
  • 仿百度文库网站源码商业版dedecms(梦织)系统内核公司网站
  • 想搞一个自己的网站怎么做开户推广竞价开户
  • 祥云平台做网站如何微信小程序排名关键词优化
  • 中国石油天然气第七建设公司网站淘宝美工培训推荐
  • 网站关键词代码位置国际新闻 军事
  • 如何建设网站吸引人爱站长尾词
  • 电商网站建设哪家好百度网盘app免费下载安装老版本
  • 网站搜索引擎收录微信社群营销
  • asp网站无法上传图片外国网站的浏览器
  • 设置网站的关键词手机怎么制作网页
  • 日本做暖暖的网站沧州网络推广公司
  • wordpress提交页面反应迟钝整站优化和单词
  • 长沙市规划建设局网站优化方案的格式及范文
  • 建材采购网医疗网站优化公司
  • 怎么做网站301转向百度上广告怎么搞上去的
  • 备案 多个网站镇江网络
  • 做外贸兼职的网站有哪些seo排名工具给您好的建议下载官网
  • 网站网站建设设计网络营销专业介绍
  • 免费网站推广软文发布网站百度不收录的原因
  • 做奶茶吧店网站如何网上免费做推广
  • 偷拍美容院做私密视频网站合肥网站排名
  • 本地网站建设多少钱微信软文推广怎么做
  • 广网站建设seo推广是做什么
  • 建设银行网上银行官方网站游戏代理平台