mapbox-gl-js README

The project's README from github.com/mapbox/mapbox-gl-js. As one markdown file: README.md.

Mapbox logo

Mapbox GL JS is a JavaScript library for interactive, customizable vector maps on the web. It takes map styles that conform to the Mapbox Style Specification, applies them to vector tiles that conform to the Mapbox Vector Tile Specification, and renders them using WebGL.

Mapbox GL JS is part of the cross-platform Mapbox GL ecosystem, which also includes compatible native SDKs for applications on Android, iOS, macOS, and React Native. Mapbox provides building blocks to add location features like maps, search, and navigation into any experience you create. To get started with GL JS or any of our other building blocks, sign up for a Mapbox account.

In addition to GL JS, this repository contains code, issues, and test fixtures that are common to both GL JS and the native SDKs. For code and issues specific to the native SDKs, see the mapbox/mapbox-gl-native repository.

Mapbox GL JS gallery of map images

Caption: (Mapbox GL JS maps, left-to-right, top-to-bottom): Custom styled point clusters, custom style with points, hexbin visualization on a Dark style map with Popups, data-driven circles over a raster layer with satellite imagery, 3D terrain with custom Markers, Mapbox Movement data visualization.

License

Mapbox Web SDK

Copyright © 2021 - 2023 Mapbox, Inc. All rights reserved.

The software and files in this repository (collectively, “Software”) are licensed under the Mapbox TOS for use only with the relevant Mapbox product(s) listed at www.mapbox.com/pricing. This license allows developers with a current active Mapbox account to use and modify the authorized portions of the Software as needed for use only with the relevant Mapbox product(s) through their Mapbox account in accordance with the Mapbox TOS. This license terminates automatically if a developer no longer has a Mapbox account in good standing or breaches the Mapbox TOS. For the license terms, please see the Mapbox TOS at https://www.mapbox.com/legal/tos/ which incorporates the Mapbox Product Terms at www.mapbox.com/legal/service-terms. If this Software is a SDK, modifications that change or interfere with marked portions of the code related to billing, accounting, or data collection are not authorized and the SDK sends limited de-identified location and usage data which is used in accordance with the Mapbox TOS. [Updated 2023-01]

mapbox-gl-js (mapbox/mapbox-gl-js)

Searching Database…

这是什么?Mapbox GL JS 是一个 JavaScript 库,借助 WebGL 在浏览器中渲染可交互、可自定义的矢量地图。
这是独立的应用,还是可以嵌入我自己网站的库?它是一个客户端 JavaScript 库,嵌入网页使用;它将 Mapbox Style Specification 样式应用于 Mapbox 矢量瓦片,并通过 WebGL 进行渲染。
我该如何开始使用?注册一个 Mapbox 账户,然后按照 'Getting started with Mapbox GL JS' 指南操作,再通过库的 API 加载你已设置样式的瓦片。
使用它需要 Mapbox 账户吗?需要,你必须拥有一个处于良好状态的有效 Mapbox 账户;许可证与通过该账户的使用绑定。
我可以随意修改代码的任何部分吗?不可以——与计费、会计或数据收集相关的标记代码部分,你不能更改或干扰;此外,该 SDK 还会将有限的去标识化使用数据发送回 Mapbox。
它只能在网页上运行,还是也能用于原生移动应用?GL JS 本身面向网页浏览器;Android、iOS、macOS 和 React Native 的对应原生 SDK 则作为同属 Mapbox GL 生态的独立但相关的项目存在。
这个库会从我的应用中收集任何数据吗?会的,作为其计费/会计机制的一部分,它会将有限的去标识化位置和使用数据发送回 Mapbox。
开箱即用,我能用它做出哪些地图功能?展示库中提供了自定义样式的点聚合、带弹出窗口的六边形分箱可视化、叠加在卫星影像上的数据驱动圆形图层、带自定义标记的 3D 地形,以及移动数据可视化。
我在哪里可以找到可用的地图样式?README 链接到了开源样式和 Style Specification/文档,还有 Mapbox 托管的样式示例,你可以将其应用于矢量瓦片。
这个仓库也用于原生 SDK 吗?是的,该仓库同时存放 GL JS 与原生 SDK 共享的代码、议题和测试数据,但原生 SDK 专属代码位于 mapbox-gl-native 仓库中。
Creator
mapbox
Size
757.4 MB
Stars
12.4K
Age
13y
Commits · 90 Days