Skip to content

Commit

Permalink
fix constructor and update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
joewdavies committed Dec 5, 2024
1 parent 7eb2e90 commit 9865960
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 38 deletions.
4 changes: 2 additions & 2 deletions build/leaflet-gridviz.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/leaflet-gridviz.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions examples/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,15 @@
gridvizLayer.addTo(leafletMap)

// add layer toggle
var baseMaps = {
const baseMaps = {
OpenStreetMap: osm,
Continents: continents,
}

var overlayMaps = {
const overlayMaps = {
gridvizLayer: gridvizLayer,
}
var layerControl = L.control.layers(baseMaps, overlayMaps).addTo(leafletMap)
const layerControl = L.control.layers(baseMaps, overlayMaps).addTo(leafletMap)

// change basemap might require a change in CRS definition
leafletMap.on('baselayerchange', function (e) {
Expand Down
Loading

0 comments on commit 9865960

Please sign in to comment.