简体   繁体   中英

Change size of road label programmatically?

Can I change the size of road label programmatically? In some case, I need to enlarge the road label and restore its original size after a short time. Currently, I can achieve it by loading another map style and the map will be reloaded completely. Can anyone give me a suggestion?

根据您使用的地图样式,您可以使用mapboxMap.getLayer()获取道路标签图层,然后在假设其为符号图层的情况下设置属性

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM