当前位置:网站首页>How does mapbox switch markup languages?
How does mapbox switch markup languages?
2022-07-07 05:31:00 【ONEGISER(ZPC)】


Preface
Someone asked how to make mapbox Support Chinese annotation ? The first thing that came to my mind mapbox Chinese net , His address is 《mapbox Chinese map address 》, Style is mapbox://styles/mapbox/streets-zh-v1. Later, it's not like this , Want to set it to Chinese , After inquiry , eureka Language setting plug-in , As for usage, see the documentation . Here is a brief introduction
import MapboxLanguage from '@mapbox/mapbox-gl-language';
const control = new MapboxLanguage({
defaultLanguage: 'en'// default language
})
map.addControl(control)
setTimeout(() => {
// switch language
const style = map.getStyle()
const style2 = control.setLanguage(style, 'zh-Hans')
map.setStyle(style2)
}, 20000);
边栏推荐
- Is the human body sensor easy to use? How to use it? Which do you buy between aqara green rice and Xiaomi
- 论文阅读【Semantic Tag Augmented XlanV Model for Video Captioning】
- JHOK-ZBG2漏电继电器
- 漏电继电器JOLX-GS62零序孔径Φ100
- 2039: [Bluebridge cup 2022 preliminaries] Li Bai's enhanced version (dynamic planning)
- Leakage relay jd1-100
- Design, configuration and points for attention of network arbitrary source multicast (ASM) simulation using OPNET
- DOM-节点对象+时间节点 综合案例
- [question] Compilation Principle
- 《2》 Label
猜你喜欢
![[binary tree] binary tree path finding](/img/34/1798111e9a294b025806a4d2d5abf8.png)
[binary tree] binary tree path finding

Window scheduled tasks

数字化如何影响工作流程自动化
![[PM products] what is cognitive load? How to adjust cognitive load reasonably?](/img/75/2277e0c413be561ec963b44679eb75.jpg)
[PM products] what is cognitive load? How to adjust cognitive load reasonably?

DOM node object + time node comprehensive case

JVM(二十) -- 性能监控与调优(一) -- 概述

Flink SQL 实现读写redis,并动态生成Hset key

K6el-100 leakage relay

京东商品详情页API接口、京东商品销量API接口、京东商品列表API接口、京东APP详情API接口、京东详情API接口,京东SKU信息接口

JSP setting header information export to excel
随机推荐
AIDL 与Service
Jhok-zbl1 leakage relay
Lombok插件
Two methods of thread synchronization
高级程序员必知必会,一文详解MySQL主从同步原理,推荐收藏
Window scheduled tasks
阿里云的神龙架构是怎么工作的 | 科普图解
Digital innovation driven guide
[opencv] image morphological operation opencv marks the positions of different connected domains
MySQL数据库学习(7) -- pymysql简单介绍
Talk about mvcc multi version concurrency controller?
Disk monitoring related commands
【oracle】简单的日期时间的格式化与排序问题
sql优化常用技巧及理解
JVM (19) -- bytecode and class loading (4) -- talk about class loader again
Leetcode 1189 maximum number of "balloons" [map] the leetcode road of heroding
“多模态”概念
照片选择器CollectionView
Annotation初体验
利用OPNET进行网络任意源组播(ASM)仿真的设计、配置及注意点