Commit 9f55e1bb authored by Michael Underwood's avatar Michael Underwood
Browse files

Merge branch 'master' into vite-ts

parents 68b7dd9f b72dc18d
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -6,6 +6,27 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [0.8.3] - 2023-02-12

### Fixed

- The marker icon passed to the Leaflet constructor is now only replaced with an empty div when there is
  additional content within the `<LMarker>` component, _and_ at least some of that content is something
  other than a tooltip or popup, resolving
  [#269 Marker with tooltip no longer visible with v0.8.2](https://github.com/vue-leaflet/vue-leaflet/issues/269).
- Tweaked how popups and tooltips are unbound when they unmount, resolving
  [#266 Vue-leaflet LPopup does not update with prop change](https://github.com/vue-leaflet/vue-leaflet/issues/266).

### Changed

- Leaflet objects accessed via the `leafletObject` property of a `ref` are now all marked as raw, so they
  no longer return `Proxy` instances.

### Added

- Ability to style GeoJSON layers through `:options-style` prop.


## [0.8.2] - 2023-02-05

### Fixed
+1 −1
Original line number Diff line number Diff line
{
  "name": "@vue-leaflet/vue-leaflet",
  "author": "Nicolò Maria Mezzopera",
  "version": "0.8.2",
  "version": "0.8.3",
  "license": "MIT",
  "private": false,
  "sideEffects": false,
+2 −2
Original line number Diff line number Diff line
<script>
import { onMounted, ref, inject, nextTick } from "vue";
import { onMounted, ref, inject, nextTick, markRaw } from "vue";
import {
  remapEvents,
  propsBinder,
@@ -29,7 +29,7 @@ export default {
        ? WINDOW_OR_GLOBAL.L
        : await import("leaflet/dist/leaflet-src.esm");

      leafletRef.value = circle(props.latLng, options);
      leafletRef.value = markRaw(circle(props.latLng, options));

      const listeners = remapEvents(context.attrs);
      DomEvent.on(leafletRef.value, listeners);
+2 −2
Original line number Diff line number Diff line
<script>
import { onMounted, ref, inject, nextTick } from "vue";
import { onMounted, ref, inject, nextTick, markRaw } from "vue";
import {
  remapEvents,
  propsBinder,
@@ -32,7 +32,7 @@ export default {
        ? WINDOW_OR_GLOBAL.L
        : await import("leaflet/dist/leaflet-src.esm");

      leafletRef.value = circleMarker(props.latLng, options);
      leafletRef.value = markRaw(circleMarker(props.latLng, options));

      const listeners = remapEvents(context.attrs);
      DomEvent.on(leafletRef.value, listeners);
+2 −2
Original line number Diff line number Diff line
<script>
import { onMounted, ref, inject, nextTick } from "vue";
import { onMounted, ref, inject, markRaw, nextTick } from "vue";
import { controlProps, setupControl, render } from "../functions/control";
import { propsBinder, WINDOW_OR_GLOBAL, GLOBAL_LEAFLET_OPT } from "../utils.js";

@@ -38,7 +38,7 @@ export default {
        },
      });

      leafletRef.value = new LControl(options);
      leafletRef.value = markRaw(new LControl(options));
      propsBinder(methods, leafletRef.value, props);
      registerControl({ leafletObject: leafletRef.value });

Loading