Open gezzeg opened 7 years ago
Hi there,
They are all accessible via a global 'maps' variable. You can access the current map using 'maps[0].map' and the markers using 'maps[0].markers'.
You can also use an after event to tie any custom javascript to the current map instance as folows:
Mapper::map(53.381128999999990000, -1.470085000000040000, ['eventAfterLoad' => 'console.log("after load");']);
Hi,
I would like to create auto suggest base on what user key in on a search box.
But i dont know how to get the existing map and markers render by the package.
It seems i need to put the javascript inside the rendered code.
Is there any way i add an event listener inside the rendered code ?
Thank you.