Unverified Commit f0c0df4f authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera
Browse files

chore: remove commented line

parent d3322c9e
Loading
Loading
Loading
Loading
+60 −0
Original line number Diff line number Diff line
import { props as tileLayerProps, setup as tileLayerSetup } from "./tileLayer";

export const props = {
  ...tileLayerProps,
  baseUrl: {
    type: String,
    default: null,
    required: true,
  },
  layers: {
    type: String,
    default: "",
  },
  styles: {
    type: String,
    default: "",
  },
  format: {
    type: String,
    default: "image/jpeg",
  },
  transparent: {
    type: Boolean,
    custom: false,
  },
  version: {
    type: String,
    default: "1.1.1",
  },
  crs: {
    default: null,
  },
  upperCase: {
    type: Boolean,
    default: false,
  },
};

export const setup = (props, leafletRef) => {
  const {
    options: tileLayerOptions,
    methods: tileLayerMethods,
  } = tileLayerSetup(props, leafletRef);
  const options = {
    ...tileLayerOptions,
    layers: props.layers,
    styles: props.styles,
    format: props.format,
    transparent: props.transparent,
    version: props.version,
    crs: props.crs,
    upperCase: props.upperCase,
  };
  return {
    options,
    methods: {
      ...tileLayerMethods,
    },
  };
};