Mapbox - 如何在图层位置创建脉动效果

问题描述 投票:0回答:0

我在图层上添加了一个位置(带有“卡车”符号)但想要一个脉动效果,因为它在https://codepen.io/FlorinPop17/pen/drJJzK

    mapboxgl.accessToken = "access token here";
    var map = new mapboxgl.Map({
      container: "map",
      zoom: 8,
       center: [-71.4935, 41.5852]
    });

            map.addLayer({
            id:"id",
            type: 'symbol',
            source: [lat/long of the truck],
            layout: {
                'icon-image': truckIcon, // reference the image
            }
        });

任何帮助将不胜感激。

谢谢!

mapbox-gl-js
© www.soinside.com 2019 - 2024. All rights reserved.