1
這是我有:如何每30分鐘在TileLayer(React Leaflet)中申請新的瓷磚?
const RL = require('react-leaflet');
var Map = RL.Map;
var TileLayer = RL.TileLayer;
<Map
zoom={14}
zoomSnap={0}
style={{height: "100%"}}
ref={(map) => { this.map = map; }}
>
<TileLayer url={`https://api.mapbox.com/styles/v1/${process.env.MAPBOX_URL}/tiles/256/{z}/{x}/{y}@2x?fresh=true&access_token=${process.env.MAPBOX_API}`}/>
但我無法弄清楚如何申請新的瓷磚每30分鐘?我需要它來顯示更新的交通信息...