const map = newMap({ layers: [ // NOTE: Layers from Stadia Maps do not require an API key for localhost development or most production // web deployments. See https://docs.stadiamaps.com/authentication/ for details. //Stadia Maps的图层不需要API密钥来localhost开发或大多数生产网络部署 //详见:https://docs.stadiamaps.com/authentication/ newTileLayer({ source: newStadiaMaps({ layer: 'alidade_smooth_dark', retina: true, // apiKey: 'OPTIONAL' }), }), ], target: 'map', view: newView({ center: fromLonLat([24.750645, 59.444351]), zoom: 14, }), });