Releases: jonnitto/Jonnitto.Maps
Releases · jonnitto/Jonnitto.Maps
0.3.1
0.3.0
Full Changelog: 0.2.2...0.3.0
0.2.2
Full Changelog: 0.2.1...0.2.2
0.2.1
Full Changelog: 0.2.0...0.2.1
0.2.0
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
Full Changelog: 0.1.4...0.1.5
0.1.4
Full Changelog: 0.1.3...0.1.4
0.1.3
Full Changelog: 0.1.2...0.1.3
0.1.2
Full Changelog: 0.1.1...0.1.2
0.1.1
Full Changelog: 0.1.0...0.1.1