-
Notifications
You must be signed in to change notification settings - Fork 195
Open
Description
I cant get current location.
$this->load->library('googlemaps');
$config = array();
$config['center'] = 'auto';
$config['onboundschanged'] = 'if (!centreGot)
{
var mapCentre = map.getCenter();
marker_0.setOptions({
position: new google.maps.LatLng(mapCentre.lat(), mapCentre.lng())
});
}
centreGot = true;';
$this->googlemaps->initialize($config);
// set up the marker ready for positioning
// once we know the users location
$marker = array();
$this->googlemaps->add_marker($marker);
$data['map'] = $this->googlemaps->create_map();
Metadata
Metadata
Assignees
Labels
No labels