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

mapboxGL3新特性介绍

概述

8月7日,mapboxGL发布了3版本的更新,本文带大家一起来看看mapboxGL3有哪些新的特性。

新特新

新版本

如上图所示,是mapboxGL官网关于新版的介绍,大致翻译如下:

增强了web渲染的质量、便捷程度以及开发人员体验,同时也为mapbox未来的地图奠定了基础。升级允许使用最新的特性,包括新的mapbox 3D样式标准

  • 体验地址:https://labs.mapbox.com/standard-style/#16.2/48.859605/2.293506/-20/62

演示DEMO截图如下。
image.png

Github有关新版本的特性介绍如下:

1. Mapbox标注样式(The Mapbox Standard style)

The new Mapbox Standard core style enables a highly performant and elegant 3D mapping experience with powerful dynamic lighting capabilities, and an expertly crafted symbolic aesthetic.

通过强大的动态光照能力和符号库提供高性能、高体验的3D地图。

2. 灯光API(Lighting API)

In GL JS v3 we’ve introduced new experimental lighting APIs to give you control of lighting and shadows in your map when using 3D objects: AmbientLight and DirectionalLight. We’ve also added new APIs on FillExtrusionLayer and LineLayer to support this 3D lighting styling.

引入新的实验性光照API来控制地图的光照和阴影。

3. 样式API和表达式改进(Style API and expressions improvements)

We have introduced a new set of expressions to enhance your styling capabilities.
Mapbox GL JS v3 also introduces a new set of style properties:

引入新的表达式和样式属性来增强样式,新的样式属性包括:

  • background:
    • background-emissive-strength
  • circle:
    • circle-emissive-strength
  • fill:
    • fill-emissive-strength
  • fill-extrusion:
    • fill-extrusion-ambient-occlusion-ground-attenuation
    • fill-extrusion-ambient-occlusion-ground-radius
    • fill-extrusion-ambient-occlusion-intensity
    • fill-extrusion-ambient-occlusion-radius
    • fill-extrusion-ambient-occlusion-wall-radius
    • fill-extrusion-edge-radius
    • fill-extrusion-flood-light-color
    • fill-extrusion-flood-light-ground-attenuation
    • fill-extrusion-flood-light-ground-radius
    • fill-extrusion-flood-light-intensity
    • fill-extrusion-flood-light-wall-radius
    • fill-extrusion-rounded-roof
    • fill-extrusion-vertical-scale
  • icon:
    • icon-emissive-strength
    • icon-image-cross-fade
  • line:
    • line-emissive-strength
  • raster:
    • raster-color-mix
    • raster-color-range
    • raster-color
  • text:
    • text-emissive-strength
http://www.lryc.cn/news/152537.html

相关文章:

  • 类ChatGPT大模型LLaMA及其微调模型
  • 50个简洁的提示提高代码可读性和效率(0-10)
  • Linux —— 进程信号
  • Android笔记 自定义控件时drawText字符串宽度的3种计算方式
  • ChatRWKV 学习笔记和使用指南
  • Particle Life粒子生命演化的MATLAB模拟
  • golang中byte和rune的区别?
  • AI图像行为分析算法 opencv
  • MATLAB制图代码【第二版】
  • 5.0: Dubbo服务导出源码解析
  • python自动化测试-自动化基本技术原理
  • lodash 之 _.isEmpty
  • layui数据表格实现表格中嵌套表格,并且可以折叠展开
  • 云端笔记系统-自动化测试
  • 将帅要避免五个方面的弱点:蛮干、怕死、好名、冲动、溺爱民众
  • 2023开学礼《乡村振兴战略下传统村落文化旅游设计》许少辉八一新书成都理工大学图书馆
  • vue的第3篇 第一个vue程序
  • 线性求逆元
  • 第一章 USB应用笔记之USB初步了解
  • 小白入门python
  • 《Kubernetes部署篇:Ubuntu20.04基于containerd部署kubernetes1.24.17集群(多主多从)》
  • Adobe Illustrator 2023 for mac安装教程,可用。
  • ElasticSearch(一)数据类型
  • Spark-Core核心算子
  • Linux和Windows下防火墙、端口和进程相关命令
  • 2021年09月 C/C++(六级)真题解析#中国电子学会#全国青少年软件编程等级考试
  • 【算法】滑动窗口
  • JS获取Beego渲染模板Temple时传递的数据
  • 代码随想录训练营第五十二天|300.最长递增子序列、674. 最长连续递增序列、718. 最长重复子数组
  • 前端三大Css处理器之Less