Unverified Commit d4cb4356 authored by Erulan's avatar Erulan Committed by GitHub
Browse files

Update tileLayer.js

Tile layer accepts both a string and a string array for the subdomain
parent 97f0cc37
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -7,8 +7,15 @@ export const props = {
    default: false,
  },
  subdomains: {
    type: String,
    type: [String, Array],
    default: "abc",
    validator: prop => {
      if (typeof prop === 'string') return true;
      if (Array.isArray(prop)) {
        return prop.every(subdomain => typeof subdomain === 'string');
      }
      return false;
    }
  },
  detectRetina: {
    type: Boolean,