Skip to content
This repository was archived by the owner on Dec 6, 2019. It is now read-only.

Commit 9383d98

Browse files
Nabeel Shahzadnabeelio
authored andcommitted
Add note about using a provider that needs an API key
1 parent 2210d6b commit 9383d98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/js/base_map.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ const createMap = (opts) => {
4646
// Want to customizer the basemap? Look at the leaflet-providers page:
4747
// http://leaflet-extras.github.io/leaflet-providers/preview/
4848
// Just set the provider name that you want below, or add additional
49+
//
4950
// Some providers require an API key, so just look out for that
51+
// If you want to use one of those, comment out the line below, and
52+
// put the "Plain JavaScript" code they specify, and then use your API key
5053
L.tileLayer.provider(opts.provider).addTo(map);
5154

5255
return map;

0 commit comments

Comments
 (0)