Leaflet Maps require the usage of a MapBox API key, in order to work properly. To Create Location in Leaflet Map Plugin You need to create the ‘Leaflet Map API key’.

Create a MapBox API key

Follow these steps to get an MapBox API key:

Step1: Go to the MapBox and create your Mapbox account.Now you can see below on your dashboard here your MapBox API is created.

Step2: Copy your generated API key.

Step3: Then Go to WP Leaflet Map > Setting page and paste your Leaflet maps API Key and save.

Congratulations!! Now You can create a location in Leaflet Map.