You saw this? https://www.mapbox.com/mapbox-gl-js/api/#marker#remove Instead of map.remove maybe try marker.remove: var marker = new mapboxgl.Marker().
確定! 回上一頁