You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this in my controller which basically will do is to send a pop up telling the latitude and longitude... public function getMap() { $config['center'] = '9.562389, 44.077011'; $config['zoom'] = '14'; $config['map_height'] = '500px'; $config['scrollwheel'] = false; $config['onclick'] = 'alert(\'You just clicked at: \' + event.latLng.lat() + \', \' + event.latLng.lng());'; $gmaps = new GMaps($config); $gmaps->initialize($config); $map = $gmaps->create_map(); return view('admin.mapTest')->with('map', $map); }
so my question is... how to send the latitude and longitude to another controller?
note: forexample i wann create save that clicked map
The text was updated successfully, but these errors were encountered:
Abokorhassan
changed the title
how to get latitude and longitutde when map is clicked?
how to get the clicked latitude and longitude and pass them to another controller
Aug 27, 2019
I have this in my controller which basically will do is to send a pop up telling the latitude and longitude...
public function getMap() { $config['center'] = '9.562389, 44.077011'; $config['zoom'] = '14'; $config['map_height'] = '500px'; $config['scrollwheel'] = false; $config['onclick'] = 'alert(\'You just clicked at: \' + event.latLng.lat() + \', \' + event.latLng.lng());'; $gmaps = new GMaps($config); $gmaps->initialize($config); $map = $gmaps->create_map(); return view('admin.mapTest')->with('map', $map); }
so my question is... how to send the latitude and longitude to another controller?
note: forexample i wann create save that clicked map
The text was updated successfully, but these errors were encountered: