I used the code from this link https://developers.google.com/maps/articles/phpsqlajax_v3?hl=nl
I want to display the user current position so the user can see what markers are near them. Instead of displaying the user location the tutorial use coordinates center: new google.maps.LatLng(47.6145, -122.3418)
I tried: center: new google.maps.LatLng(position.coords.latitude, position.coords.longitude);
but it didn't work.
Any idea what i'm doing wrong?