我在图层上添加了一个位置(带有“卡车”符号)但想要一个脉动效果,因为它在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
}
});
任何帮助将不胜感激。
谢谢!