Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current location Issue #64

Open
jadoonfarrukh opened this issue Apr 4, 2018 · 2 comments
Open

Current location Issue #64

jadoonfarrukh opened this issue Apr 4, 2018 · 2 comments

Comments

@jadoonfarrukh
Copy link

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();
@jadoonfarrukh
Copy link
Author

Is anyone here to help out?

@bachtiaradiguna
Copy link

you mean the geolocation wont work or else? please more specified, mine works perfectly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants