Skip to content

Releases: jonnitto/Jonnitto.Maps

0.3.1

08 Nov 15:06
c75c7db
Compare
Choose a tag to compare

Full Changelog: 0.3.0...0.3.1

0.3.0

07 Nov 17:45
4bd2eb1
Compare
Choose a tag to compare

Full Changelog: 0.2.2...0.3.0

0.2.2

07 Nov 14:21
04225bd
Compare
Choose a tag to compare

Full Changelog: 0.2.1...0.2.2

0.2.1

07 Feb 15:38
8731e8f
Compare
Choose a tag to compare

Full Changelog: 0.2.0...0.2.1

0.2.0

06 Feb 21:59
8781cba
Compare
Choose a tag to compare

Javascript Event to initalize maps

If you dispatch an event with the name jonnitto-maps:init, the maps will be initalized. This is useful in when you
work with AJAX request. The event listener is attached to the window object.

If you want, for example, use it togheter with turbo

document.addEventListener('turbo:load', ({ detail }) => {
  // It is not the first load
  if (detail.timing?.visitStart) {
    window.dispatchEvent(new Event('jonnitto-maps:init'));
  }
});

or with Alpine AJAX:

window.addEventListener('ajax:success', () => {
  window.dispatchEvent(new Event('jonnitto-maps:init'));
});

Full Changelog: 0.1.4...0.2.0

0.1.5

26 Dec 22:41
6ef3db9
Compare
Choose a tag to compare

Full Changelog: 0.1.4...0.1.5

0.1.4

24 Dec 18:05
a356316
Compare
Choose a tag to compare

Full Changelog: 0.1.3...0.1.4

0.1.3

21 Nov 10:14
05593fa
Compare
Choose a tag to compare

Full Changelog: 0.1.2...0.1.3

0.1.2

14 Nov 11:17
d5b42de
Compare
Choose a tag to compare

Full Changelog: 0.1.1...0.1.2

0.1.1

09 Nov 14:00
0a137c8
Compare
Choose a tag to compare

Full Changelog: 0.1.0...0.1.1