mapbox gl 测量工具,测量时一个线段内出现多个文本标注

![img]("text-rotate": ["get", "course"],https://img-mid.csdnimg.cn/release/static/image/mid/ask/887638163146126.png "#left")
addlayer的样式设置如下:


let layerConfig = {
                            id: meatureTextLayer,
                            type: "symbol",
                            source: meatureSource,
                            filter: ["==", "$type", "LineString"],
                            layout: {
                                "text-field": "GC: {mile}nm",
                                "text-font": ["arial"],
                                "text-size": 12,
                                "text-padding": 10,
                                "text-offset": [0, 1.5],
                                "text-anchor": "center",
                                "text-rotation-alignment": "map",
                                "symbol-placement": "line-center",
                                "text-ignore-placement": true,
                                "text-allow-overlap": true,
                            },
                            paint: {
                                "text-color": "black",
                                /* , "text-halo-blur": 0 */
                                //"text-halo-color": "rgba(255,255,255,0.8)",
                                "text-halo-color": "rgba(182,235,219,0.8)",
                                "text-halo-width": 1.5,
                            }
                        };

线段长度大一点,或者地图放大时,线段内出现多个文本信息,
怎么设置,一个线段内只显示一个GC和RL信息

你好,我是有问必答小助手,非常抱歉,本次您提出的有问必答问题,技术专家团超时未为您做出解答


本次提问扣除的有问必答次数,将会以问答VIP体验卡(1次有问必答机会、商城购买实体图书享受95折优惠)的形式为您补发到账户。


因为有问必答VIP体验卡有效期仅有1天,您在需要使用的时候【私信】联系我,我会为您补发。