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

徐水网站建设公司做网站 站内搜索引擎

徐水网站建设公司,做网站 站内搜索引擎,凡科手机网站设置问题,免费模型网站前文链接#xff1a;QGraphicsView实现简易地图7『异步加载-多瓦片-无底图』 前7篇的地图加载#xff0c;都采用最少瓦片数量的算法#xff0c;即用最少数量的瓦片覆盖视口#xff0c;以获得最快的加载速度。但是这样会带来一个问题#xff0c;那就是每当移动地图时#…前文链接QGraphicsView实现简易地图7『异步加载-多瓦片-无底图』 前7篇的地图加载都采用最少瓦片数量的算法即用最少数量的瓦片覆盖视口以获得最快的加载速度。但是这样会带来一个问题那就是每当移动地图时视口周边的瓦片才会加载这样会造成地图的延时甚至卡顿而这会令用户感到非常反感。为此需要在之前的算法上进行改进加载覆盖视口的最少瓦片后立即加载视口周边瓦片加载过的瓦片离开视口后不再删除以加快下次进入视口后的渲染。 1、动态演示效果 2、获取视口及周边瓦片代码以视口宽高的一半向四周扩展 QRect CommonUtility::getViewAndAroundTileCoords(int tempTileTop, int tileLeft, int tempTileBottom, int tileRight, int level, vectorTileCoord vecTileCoord) {// 1 视口for (int row tempTileTop; row tempTileBottom; row){for (int col tileLeft; col tileRight; col){vecTileCoord.push_back(TileCoord(col, row));}}int mapSize pow(2, level);int tileW tileRight - tileLeft 1;int tileH tempTileBottom - tempTileTop 1;int tempTileT, tempTileL, tempTileB, tempTileR;int tileT, tileL, tileB, tileR;// 2 上侧tileT tempTileT qMax(tempTileTop - tileH / 2, 0);tempTileB tempTileTop - 1;tempTileL qMax(tileLeft - tileW / 2, 0); tempTileR qMin(tileRight tileW / 2, mapSize - 1);for (int row tempTileT; row tempTileB; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}// 3 下侧tempTileT tempTileBottom 1;tileB tempTileB qMin(tempTileBottom tileH / 2, mapSize - 1);tempTileL qMax(tileLeft - tileW / 2, 0);tempTileR qMin(tileRight tileW / 2, mapSize - 1);for (int row tempTileT; row tempTileB; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}// 4 左侧tileL tempTileL qMax(tileLeft - tileW / 2, 0);tempTileR tileLeft - 1;for (int row tempTileTop; row tempTileBottom; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}// 5 右侧tempTileL tileRight 1;tileR tempTileR qMin(tileRight tileW / 2, mapSize - 1);for (int row tempTileTop; row tempTileBottom; row){for (int col tempTileL; col tempTileR; col){vecTileCoord.push_back(TileCoord(col, row));}}return QRect(tileL, tileT, (tileR - tileL 1), (tileB - tileT 1)); }
http://www.dnsts.com.cn/news/107013.html

相关文章:

  • 可以在几个 网站备案专业外贸网站制作公司
  • 大连企业网站建设公司中美关系最新消息最新进展
  • 公司网站建设的通知购物平台官网
  • 威海网站建设威海曲阜住房城乡建设局网站
  • 网站开发语言有php事业部网站建设方案
  • 心理网站免费建设大理如何做百度的网站
  • 网站推广软件免费观看福田网站建设新闻
  • 网站关键词seo优化公司陕西省住房与建设厅网站
  • 做电影网站 资源怎么存放自己做的网站图片挡住了导航栏
  • 浙江网站怎么做推广chn域名注册网站
  • 丰金网络 做网站网站开发职业类别代码
  • 网站管理教程关键词挖掘查询工具
  • 网站设计命名规范网站开发 访问速度慢
  • 建手机网站要多少钱网站美工色彩搭配
  • 网站对于企业的意义比较好看的wordpress主题
  • 网站制作公司品牌和商标的区别
  • 网站建设需要多少工种wordpress 数据库 缓存6
  • 中山市建设安全监督站网站seo博客
  • 免费制作微信小程序的网站上海企业网页制作
  • 大型企业网站开发如何增加网站流量
  • 网站分页设计网页制作的模板代码
  • 网站建设zvge怎么免费建设个人博客网站
  • 公司网站服务器选择合优人才网合川
  • 免费发软文的网站我国中小企业500强
  • wordpress手机网站模版个人求职网站如何做
  • 做米业的企业网站中国能源建设集团有限公司总部
  • 自己做的网站服务器开了进不去开发工具是什么意思
  • 大气精美网站设计工作室织梦模板wordpress 内网映射
  • 牙科 网站建设方案凯里网络公司建设网站
  • 起飞页做网站步骤wordpress 4.0 慢