Commit e310b031 authored by Michael Underwood's avatar Michael Underwood
Browse files

Merge branch 'master' of github.com:vue-leaflet/vue-leaflet

parents 84af6912 839ef5ea
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -41,9 +41,12 @@ export const setupLayer = (props, leafletRef, context) => {

  const methods = {
    ...componentMethods,
    setAttribution(val, old) {
      const attributionControl = this.$parent.leafletObject.attributionControl;
      attributionControl.removeAttribution(old).addAttribution(val);
    setAttribution(val) {
      removeThisLayer();
      leafletRef.value.options.attribution = val;
      if (props.visible) {
        addThisLayer();
      }
    },
    setName() {
      removeThisLayer();