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. newTileLayer({ source: newStadiaMaps({ layer: 'stamen_watercolor', // apiKey: 'OPTIONAL' }), }), newTileLayer({ source: newStadiaMaps({ layer: 'stamen_terrain_labels', // apiKey: 'OPTIONAL' }), }), ], target: 'map', view: newView({ center: fromLonLat([-122.416667, 37.783333]), zoom: 12, }), });