I know this question has been asked a few times before, but looking through the answers I still can't figure out how to fix the issue, Would someone be able to help?
My map works when I refresh the page, but when I navigate to it from any other page the map doesn't load, as smoothState doesn't reload the page.
I've got the rest of my jS working, it's just the maps that won't load unless I refresh the page.
My jS for smoothState is:
``$(document).ready(function () {
I know this question has been asked a few times before, but looking through the answers I still can't figure out how to fix the issue, Would someone be able to help?
My map works when I refresh the page, but when I navigate to it from any other page the map doesn't load, as smoothState doesn't reload the page.
I've got the rest of my jS working, it's just the maps that won't load unless I refresh the page.
My jS for smoothState is: ``$(document).ready(function () {
var $body = $('body'), $main = $('#main'), $site = $('html, body'), transition = 'fade', smoothState;
});``
and My google map:
``function init_map() { var myOptions = { zoom: 18, backgroundColor: "#212121",