Skip to content

jawg/booking-map-example

Repository files navigation

booking-map-example

This project is a part of our use case showcase.

Booking Map Example Screenshot

Run the example locally

Requirements

Installing the example

  1. Clone the repository
git clone git@github.com:jawg/booking-map-example.git
cd booking-map-example
  1. Create a .env file and add your access token.
JAWG_ACCESS_TOKEN=YOUR_ACCESS_TOKEN
  1. Install all required packages and start the server.
npm install
npm start

Go to the URL: http://localhost:8000

Update the example

You will see the precense of the constant named DYNAMIC_DATA_SOURCE, this allows you to switch between two uses cases, the static data source and dynamic one. By default you are using the static one.

The dynamic datasource is useful when you have a webservice that serves your data. You will need to update the function dynamicSourceUpdateCallback and set DYNAMIC_DATA_SOURCE to true.

Releases

No releases published

Packages

No packages published