前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >mapboxGL3新特性介绍

mapboxGL3新特性介绍

作者头像
lzugis
发布2023-09-06 13:51:01
4200
发布2023-09-06 13:51:01
举报

概述

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

新特新

新版本
新版本

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

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

演示DEMO截图如下。

image.png
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
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2023-09-03,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • 概述
  • 新特新
    • 1. Mapbox标注样式(The Mapbox Standard style)
      • 2. 灯光API(Lighting API)
        • 3. 样式API和表达式改进(Style API and expressions improvements)
        领券
        问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档