Mapbox标记符号与三个数字

编程入门 行业动态 更新时间:2024-10-09 09:19:13
本文介绍了Mapbox标记符号与三个数字的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试使用'marker-symbol'标记带有两位和三位数ID的标准Mapbox标记。两位数的标记效果很好,如下所示,但是当我尝试包括三个数字,即112时,标记不会显示在地图上。有没有一种简单的方法可以使用内置标记执行此操作而不创建自定义div标记?

I'm trying to label the standard Mapbox markers with two- and three-digit ids using 'marker-symbol'. The two-digit markers work well, as seen below, but when I try to include three digits, i.e. 112, the markers do not display on the map. Is there an easy way to do this with the built-in marker and not creating a custom div marker?

推荐答案

不好意思说,没有简单的方法做这个。没有内置标记。这些标记只是从Mapbox服务器加载的图像。它们最多存在99号。数字100不存在,你可以自己检查:

Sorry to say, there is no easy way to do this. Not with the built-in marker. Those markers are just images which get loaded from the Mapbox server. They exist up to number 99. Number 100 does not exist, you can check for yourself:

pin-m-99 + AA0000.png: https:// api .tiles.mapbox / v4 / marker / pin-m-99 + AA0000.png?access_token = pk.eyJ1IjoibWFwYm94IiwiYSI6IlhHVkZmaW8ifQ.hAMX5hSW-QnTeRCMAy9A8Q

pin-m-99+AA0000.png: api.tiles.mapbox/v4/marker/pin-m-99+AA0000.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6IlhHVkZmaW8ifQ.hAMX5hSW-QnTeRCMAy9A8Q

pin -m-100 + AA0000.png: api.tiles.mapbox/v4/marker/pin-m-100+AA0000.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6IlhHVkZmaW8ifQ.hAMX5hSW-QnTeRCMAy9A8Q

pin-m-100+AA0000.png: api.tiles.mapbox/v4/marker/pin-m-100+AA0000.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6IlhHVkZmaW8ifQ.hAMX5hSW-QnTeRCMAy9A8Q

更多推荐

Mapbox标记符号与三个数字

本文发布于:2023-11-29 10:00:17,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1646078.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:标记   符号   数字   Mapbox

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!