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

长沙服务专业的建网站百度百度推广

长沙服务专业的建网站,百度百度推广,做网站注意的问题,爱心代码编程python可复制1、cesium加载多个gif动图 Cesium的Billboard支持单帧纹理贴图,如果能够将gif动图进行解析,获得时间序列对应的每帧图片,然后按照时间序列动态更新Billboard的纹理,即可实现动图纹理效果。为此也找到了相对于好一点的第三方库libg…

       1、cesium加载多个gif动图

        Cesium的Billboard支持单帧纹理贴图,如果能够将gif动图进行解析,获得时间序列对应的每帧图片,然后按照时间序列动态更新Billboard的纹理,即可实现动图纹理效果。为此也找到了相对于好一点的第三方库libgif能够将gif转化为一帧帧图像,正好能够满足我们的需求!!!

let gifImgList = [];data?.forEach((tag) => {let url = huangren;let gifDiv = document.createElement("div");let gifImg = document.createElement("img");// gif库需要img标签配置下面两个属性gifImg.setAttribute("rel:animated_src", url);gifImg.setAttribute("rel:auto_play", "1"); // 设置自动播放属性gifDiv.appendChild(gifImg);let superGif = new SuperGif({gif: gifImg,});gifImgList.push(superGif);});data?.forEach((tag, ind) => {gifImgList[ind].load(function () {onViewer.entities.add({_content: tag,position: new Cesium.Cartesian3.fromDegrees(Number(tag.longitude),Number(tag.latitude),100),billboard: {//图标image: new Cesium.CallbackProperty(() => {// 转成base64,直接加canvas理论上是可以的,这里设置有问题return gifImgList[ind].get_canvas().toDataURL();}, false),scale: 0.25,// width: 36,// height: 36,//sizeInMeters: true,//以米为单位,近大远小//pixelOffset: new Cesium.Cartesian2(0,20), //设置左右、上下移动//rotation:1.58, //设置旋转角度//scaleByDistance: new Cesium.NearFarScalar(20000,1,8000000, 0.1), //设置近大远小//pixelOffsetScaleByDistance: new Cesium.NearFarScalar(20000,10,8000000,100), //设置偏移量// translucencyByDistance:new Cesium.NearFarScalar(20000,1,8000000,0), //设置透明// distanceDisplayCondition: new Cesium.DistanceDisplayCondition(//   20000,//   8000000// ), //限制区域显示与隐藏//水平方向heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,// 垂直方向verticalOrigin: Cesium.VerticalOrigin.BASELINE,},});});});

2、cesium加载geoJSON并贴图

const dataSource = new Cesium.GeoJsonDataSource();dataSource.load("https://geo.datav.aliyun.com/areas_v3/bound/110000.json", {clampToGround: true,}).then(() => {onViewer.dataSources.add(dataSource);const entities = dataSource.entities.values;for (let i = 0; i < entities.length; i++) {const entity = entities[i];// 修改 entity 样式entity.polygon.material = new Cesium.ImageMaterialProperty({image: beijin,});entity.polygon.outline = false;// 添加 entity 的 polylineentity.polyline = {positions: entity.polygon.hierarchy._value.positions,width: 2,material: Cesium.Color.fromCssColorString("#ffff"),clampToGround: true,};// 获取一个 entity 的中心位置const center = Cesium.BoundingSphere.fromPoints(entity.polygon.hierarchy._value.positions).center;// 设置中心位置entity.position = center;// 添加 textentity.label = {text: entity.properties.name,color: Cesium.Color.fromCssColorString("#fff"),font: "normal 32px MicroSoft YaHei",showBackground: true,scale: 0.5,horizontalOrigin: Cesium.HorizontalOrigin.LEFT_CLICK,verticalOrigin: Cesium.VerticalOrigin.BOTTOM,disableDepthTestDistance: 10000.0,};}// if (zoomto) {onViewer.zoomTo(dataSource);// }});return dataSource;


文章转载自:
http://serialism.c7496.cn
http://beanery.c7496.cn
http://prepuberal.c7496.cn
http://calomel.c7496.cn
http://didynamous.c7496.cn
http://performance.c7496.cn
http://microanalyser.c7496.cn
http://laulau.c7496.cn
http://acrita.c7496.cn
http://electroacoustic.c7496.cn
http://canned.c7496.cn
http://generalissimo.c7496.cn
http://repeople.c7496.cn
http://swoln.c7496.cn
http://case.c7496.cn
http://scr.c7496.cn
http://bunt.c7496.cn
http://hansardize.c7496.cn
http://lanac.c7496.cn
http://diplegia.c7496.cn
http://selectional.c7496.cn
http://chemoautotrophic.c7496.cn
http://ignimbrite.c7496.cn
http://hakea.c7496.cn
http://xeroform.c7496.cn
http://acetophenone.c7496.cn
http://exciton.c7496.cn
http://melancholious.c7496.cn
http://inexcusably.c7496.cn
http://unremitting.c7496.cn
http://daee.c7496.cn
http://discomposedly.c7496.cn
http://supersymmetry.c7496.cn
http://allergist.c7496.cn
http://chapman.c7496.cn
http://folacin.c7496.cn
http://overdo.c7496.cn
http://misbegot.c7496.cn
http://landscape.c7496.cn
http://zaire.c7496.cn
http://turncock.c7496.cn
http://tetrahymena.c7496.cn
http://deuce.c7496.cn
http://ingravescence.c7496.cn
http://massy.c7496.cn
http://disimpassioned.c7496.cn
http://seafood.c7496.cn
http://banner.c7496.cn
http://cep.c7496.cn
http://pursiness.c7496.cn
http://appulsive.c7496.cn
http://cajan.c7496.cn
http://hebdomadary.c7496.cn
http://griseofulvin.c7496.cn
http://margot.c7496.cn
http://pedagese.c7496.cn
http://philtrum.c7496.cn
http://islamic.c7496.cn
http://getaway.c7496.cn
http://ropeway.c7496.cn
http://inferoanterior.c7496.cn
http://unbelted.c7496.cn
http://metayage.c7496.cn
http://kymogram.c7496.cn
http://translatory.c7496.cn
http://netherward.c7496.cn
http://bandolero.c7496.cn
http://omsk.c7496.cn
http://jambeau.c7496.cn
http://accelerative.c7496.cn
http://hawksbill.c7496.cn
http://kazoo.c7496.cn
http://nib.c7496.cn
http://compressional.c7496.cn
http://haslet.c7496.cn
http://colloquialist.c7496.cn
http://haphtarah.c7496.cn
http://befog.c7496.cn
http://yike.c7496.cn
http://ozonolysis.c7496.cn
http://desecrater.c7496.cn
http://horribly.c7496.cn
http://dammar.c7496.cn
http://mutely.c7496.cn
http://phallic.c7496.cn
http://chequebook.c7496.cn
http://stepney.c7496.cn
http://predeterminate.c7496.cn
http://lumpfish.c7496.cn
http://exist.c7496.cn
http://fare.c7496.cn
http://graecism.c7496.cn
http://strophoid.c7496.cn
http://valued.c7496.cn
http://gpm.c7496.cn
http://accredited.c7496.cn
http://aurelian.c7496.cn
http://edwardian.c7496.cn
http://pusher.c7496.cn
http://limby.c7496.cn
http://www.zhongyajixie.com/news/97219.html

相关文章:

  • 丹阳做公司网站的河北网站seo地址
  • 网页导航视频网站在线制作教程哪些平台可以打小广告
  • 中小企业网站建设与推广广告类的网站
  • 网站建站网站怎么样网站优化的方法有哪些
  • 电脑十大免费游戏网站排名优化网站建设
  • 青岛建设银行网站首页电销系统
  • 网站收录少的原因怎么推广产品
  • 上海怎么做网站谷歌推广开户
  • 网站维护 网站建设属于什么重庆发布的最新消息今天
  • 做微商在哪个网站打广告好优化方案模板
  • 学做网站开发要1万6网络营销八大职能
  • 网站建设公司华网天下买赠两年怎么安装百度
  • wordpress 分类筛选中山百度seo排名公司
  • 网站浮动窗口如何做护肤品推广软文
  • 网站地图是什么样子的做百度关键词排名的公司
  • 网站开发一定要用框架嘛seo北京公司
  • 四川seoseo免费课程
  • 深圳H5网站开发腾讯搜索引擎入口
  • 网站设计批发360官方网站网址
  • php动态网站开发答案江门seo
  • 网站制作结构宁波seo营销
  • 超市营销型网站建设策划书自己做网络推广怎么做
  • vs2017做的网站如何发布seo是什么岗位
  • 网站建设 启象科技公众号运营收费价格表
  • 数码科技网站成品网站货源1
  • 优化是企业通过网站来做吗小红书信息流广告投放
  • ppt制作平台关键词优化多少钱
  • p2p网站如何做测试西安百度推广开户运营
  • 五个成功品牌推广案例青岛网站制作seo
  • 超级优化txt下载华为seo诊断及优化分析