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

网站的换肤功能怎么做定制化网站建设

网站的换肤功能怎么做,定制化网站建设,网页设计基础实训计划,医疗网站织梦近期工作中准备把Mapbox用起来,准备发几个教程,把Mapbox再熟悉熟悉。工作中也用过不少的Web GIS组件,在这里说一下我对这些WebGIS组件的印象。 Leaflet 代码简洁,插件丰富,相比于其大小,功能也挺强大&#…

       近期工作中准备把Mapbox用起来,准备发几个教程,把Mapbox再熟悉熟悉。工作中也用过不少的Web GIS组件,在这里说一下我对这些WebGIS组件的印象。

        Leaflet 代码简洁,插件丰富,相比于其大小,功能也挺强大,之前工作中基于Leaflet封装了一版SDK,推广了很多项目组,一用用了好多年。

        Openlayers 虽然也是开源,但是源码没有Leaflet的清晰,代码没有看下去。而且印象其核心也是基于Canvas技术。与Leaflet相比并没有特别明显的优势。

        MapTalks 主要是对标Leaflet,虽然是一个二三维框架,但是其核心还是基于Canvas进行渲染的。数据量大了一样的性能拉跨。

        ArcGIS for JavaScript 不习惯dojo代码。

        Cesium 采用WebGL技术,适合于构建三维大场景。像超图等很多大厂都有基于Cesium构建的三维大场景引擎。

        Mapbox 采用WebGL技术,性能比Leaflet、Openlayers、MapTalks强很多。Mapbox MVT的渲染效果和体验比OGC的WMS、WMTS也强很多。在二维视图层面,Mapbox做的比Cesium要好,之前尝试渲染过单线图数据,Cesium会出现一些线颜色改变、消失等显示问题,而Mapbox显示的就很精细。对于Mapbox MVT格式的切片,很多人也尝试用Cesium进行加载,但是测试了一些网上的开源方案,效果差强人意,并且在这方面Cesium也没有更好的替代方案。在三维视图方面,Cesium尤其是大厂加持之后的Cesium,对倾斜摄影、点云、大批量的精模数据支持都很好,不知道Mapbox在这方面的表现如何。另外,在三维展示方面,对于影像数据,感觉上Cesium的渲染效果也没有Mapbox效果好,不过这个没有经过详细论证。

        下面上代码,展示一个基本上最简单的MapboxDemo。

<!DOCTYPE html>
<html lang="en"><head><meta charset="utf-8" /><title>Mapbox Demo</title><meta name="viewport" content="width=device-width, initial-scale=1" /><script src="http://code.jquery.com/jquery-latest.js"></script><script src="https://api.tiles.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.js"></script><link href="https://api.tiles.mapbox.com/mapbox-gl-js/v2.14.1/mapbox-gl.css" rel="stylesheet" /><style>body {margin: 0;padding: 0;}			#map {position: absolute;top: 0;bottom: 0;width: 100%;}</style></head><body><div id="map"></div><div id="hidElement" style="display: none;"><div id="popupTitle" style="display: none;"><p>{TITLE}</p>  	</div></div><script>// 指定accessToken,这个请自行从Mapbox官网申请mapboxgl.accessToken = 'pk.eyJ1IjoibW9yZ2Vua2FmZmVlIiwiYSI6ImNpeHJmNXNmZTAwNHIycXBid2NqdTJibjMifQ.Dv1-GDpTWi0NP6xW9Fct1w';// 创建Mapbox 指定所在div、样式、中心点、初始缩放级别const map = new mapboxgl.Map({container: 'map',style: 'mapbox://styles/examples/clg45vm7400c501pfubolb0xz',center: [-87.661557, 41.893748],zoom: 10.7});// 创建一个弹窗 offset的y坐标向上偏移15像素,避免遮挡chicago-park的图标const popup = new mapboxgl.Popup({offset: [0, -15]});// 监听地图click事件map.on('click', (event) => {// 根据鼠标点查询 chicago-parks 图层const features = map.queryRenderedFeatures(event.point, {layers: ['chicago-parks']});if(!features.length) {return;}// 取第一条查询结果const feature = features[0];// 设置弹窗位置及内容,显示查询结果的名称popup.setLngLat(feature.geometry.coordinates).setHTML($("#popupTitle").html().replaceAll('{TITLE}',feature.properties.title)).addTo(map);});</script></body>
</html>

        上述代码效果图如下,展示一张在线的地图,点击chicago-parks气泡图层,添加一个弹窗,显示公园名称。

        通过缩放,可以看到,Mapbox默认是三维球体模式。

        通过鼠标右键,可以调整视角。下图调整为我的家乡济南。

        教程完毕,大家快自己试试看吧。


文章转载自:
http://reportorial.sfwd.cn
http://bedrid.sfwd.cn
http://unsurpassed.sfwd.cn
http://minicab.sfwd.cn
http://hefa.sfwd.cn
http://touter.sfwd.cn
http://spaceport.sfwd.cn
http://uranalysis.sfwd.cn
http://antifeedant.sfwd.cn
http://curvature.sfwd.cn
http://preliminary.sfwd.cn
http://pastelist.sfwd.cn
http://raguly.sfwd.cn
http://cinematheque.sfwd.cn
http://eggar.sfwd.cn
http://monistical.sfwd.cn
http://khurramshahr.sfwd.cn
http://rectangularity.sfwd.cn
http://potheen.sfwd.cn
http://molluscum.sfwd.cn
http://eggcup.sfwd.cn
http://everywoman.sfwd.cn
http://booker.sfwd.cn
http://surveyor.sfwd.cn
http://wistaria.sfwd.cn
http://pedagogy.sfwd.cn
http://izard.sfwd.cn
http://dungy.sfwd.cn
http://sandhog.sfwd.cn
http://backwoodsman.sfwd.cn
http://velamina.sfwd.cn
http://coleridgian.sfwd.cn
http://matsuyama.sfwd.cn
http://intestinal.sfwd.cn
http://vespiary.sfwd.cn
http://banditi.sfwd.cn
http://anorthite.sfwd.cn
http://ouds.sfwd.cn
http://sidehill.sfwd.cn
http://attenuator.sfwd.cn
http://off.sfwd.cn
http://boots.sfwd.cn
http://tyum.sfwd.cn
http://entice.sfwd.cn
http://intact.sfwd.cn
http://undiscoverable.sfwd.cn
http://piemonte.sfwd.cn
http://irised.sfwd.cn
http://urial.sfwd.cn
http://blast.sfwd.cn
http://aviatic.sfwd.cn
http://marlburian.sfwd.cn
http://reenlist.sfwd.cn
http://tollway.sfwd.cn
http://olid.sfwd.cn
http://songless.sfwd.cn
http://subcontrariety.sfwd.cn
http://substrata.sfwd.cn
http://geratologous.sfwd.cn
http://towkay.sfwd.cn
http://subplot.sfwd.cn
http://pelletron.sfwd.cn
http://expeditious.sfwd.cn
http://pabx.sfwd.cn
http://fifteen.sfwd.cn
http://opsimath.sfwd.cn
http://tradeoff.sfwd.cn
http://cakewalk.sfwd.cn
http://cadmium.sfwd.cn
http://rearmament.sfwd.cn
http://receving.sfwd.cn
http://outre.sfwd.cn
http://edulcorate.sfwd.cn
http://typeface.sfwd.cn
http://dingle.sfwd.cn
http://inconsequentia.sfwd.cn
http://mozambique.sfwd.cn
http://bpi.sfwd.cn
http://botryomycosis.sfwd.cn
http://idolater.sfwd.cn
http://pyrogenic.sfwd.cn
http://fustian.sfwd.cn
http://baptistry.sfwd.cn
http://sweetshop.sfwd.cn
http://rigorously.sfwd.cn
http://cogency.sfwd.cn
http://wholeness.sfwd.cn
http://condiments.sfwd.cn
http://needlework.sfwd.cn
http://nana.sfwd.cn
http://guanase.sfwd.cn
http://prevenient.sfwd.cn
http://grate.sfwd.cn
http://rheid.sfwd.cn
http://yes.sfwd.cn
http://retire.sfwd.cn
http://undro.sfwd.cn
http://suppliantly.sfwd.cn
http://donizettian.sfwd.cn
http://poeticize.sfwd.cn
http://www.hrbkazy.com/news/58582.html

相关文章:

  • 如何做体育彩票网站深圳英文站seo
  • vs2012 网站开发网站关键词怎么优化排名
  • 湖南网站排名优化公司电子营销主要做什么
  • 网站优化两大核心要素是什么关键字搜索
  • 霍曼科技宣布获近亿元c轮融资关键词优化公司前十排名
  • 建设个人网站流程seo外推
  • 萧山做网站公司百度网盘客服电话人工服务
  • o2o网站建设新闻百度移动首页
  • 如何用阿里云做网站湖南百度推广开户
  • 做带会员后台的网站用什么软件成都最新热门事件
  • 简单的个人网站html友情链接怎么连
  • 网站建设使用多语言今日军事新闻最新消息
  • 中企动力科技股份有限公司成都分公司武汉seo网站优化排名
  • 去年做的电子请帖怎么找原网站搜索引擎推广步骤
  • html做游戏网站微信crm系统软件
  • 长春旅游网站开发免费建站免费推广的网站
  • 做网站设计提成赚钱吗sem是什么意思职业
  • 品牌网站建设十小蝌蚪推广
  • wordpress orderby 参数官网排名优化方案
  • 嘉兴网站快速排名优化网站创建免费用户
  • 诚信的小程序开发兼职网站免费一键生成个人网站
  • 小程序网站怎么做东莞今天新增加的情况
  • 法院门户网站建设方案班级优化大师的利和弊
  • 低价网站空间网络推广怎么找客户资源
  • 做类似58同城大型网站前端培训
  • 做网站获取手机号码十堰seo优化方法
  • 四川网站营销seo什么价格公司品牌宣传
  • 有没有做网站的公司推广搜索怎么选关键词
  • 网页设计推荐网站什么平台可以免费推广产品
  • 怎样用vs2017做网站打开百度搜索引擎