Skip to content

Commit

Permalink
Merge pull request #1094 from Ranecodes/1086MapMixins
Browse files Browse the repository at this point in the history
replaced var keyword with const
  • Loading branch information
TildaDares authored Oct 11, 2022
2 parents 9c169e6 + 59619b4 commit 0495753
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mapmixins/MapMixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ L.Map.include({
_clicked: 0,

addGoogleMutant(opts) {
var url = 'http://mt0.google.com/vt/lyrs=s&x={x}&y={y}&z={z}';
const url = 'http://mt0.google.com/vt/lyrs=s&x={x}&y={y}&z={z}';

opts = this.mutantOptions = L.extend({
mutantOpacity: 0.8,
Expand Down Expand Up @@ -40,7 +40,7 @@ L.Map.include({
},

_addLabels(opts) {
var url = 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner-labels/{z}/{x}/{y}{r}.{ext}';
const url = 'https://stamen-tiles-{s}.a.ssl.fastly.net/toner-labels/{z}/{x}/{y}{r}.{ext}';

if (opts.labelOpacity !== 0 && opts.labelOpacity !== 1) {
opts.labelOpacity = 1;
Expand Down

0 comments on commit 0495753

Please sign in to comment.