Back to Deck Gl

or

examples/get-started/pure-js/google-maps/README.md

9.3.2792 B
Original Source

Example: Use deck.gl with Google Maps

Uses Vite to bundle and serve files.

Usage

To run this example, you need a Google Maps API key and a map id. You can either set an environment variable:

bash
export GoogleMapsAPIKey=<google_maps_api_key>
export GoogleMapsMapId=<google_maps_map_id>

Or set the GOOGLE_MAPS_API_KEY and GOOGLE_MAP_ID variables in app.js.

To install dependencies:

bash
npm install
# or
yarn

Commands:

  • npm start is the development target, to serve the app and hot reload.
  • npm run build is the production target, to create the final bundle and write to disk.