farhanwazir / laravelgooglemaps

Laravel Google Maps Package
MIT License
152 stars 112 forks source link

how to get the clicked latitude and longitude and pass them to another controller #37

Open Abokorhassan opened 5 years ago

Abokorhassan commented 5 years ago

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

AInME93 commented 4 years ago

Hey, did you find a solution for this?