Closed Ramiiyan closed 4 years ago
Hi, How to add a function on marker['onclick'] in my PHP? something like this.. $marker['onclick'] = function () { redirect('google.com'); };
$marker['onclick'] = function () { redirect('google.com'); };
I got my answer. We have to use javaScript as String, not Laravel PHP Functions. So, it will like this. $marker['onclick'] = 'window.location.href = "https://www.google.com";'
$marker['onclick'] = 'window.location.href = "https://www.google.com";'
Hi, How to add a function on marker['onclick'] in my PHP? something like this..
$marker['onclick'] = function () { redirect('google.com'); };