There's no such functionality built into the Maps API (of any version), probably because there's no standardized way to access that data via the browser. The ClientLocation property works server-side, guessing at your location from your IP address.
To do it client-side, you'd need to sniff out the browser and use different code based on that. For example, iPhone's Mobile Safari does have a built-in geolocation API. So does Opera Mobile, though I don't know if they use the *same* API. Android's "Chrome Lite" has Gears built in. And so on. FYI, the "sensor=true" parameter only informs Google that you're using geolocation (per the terms of the API), it doesn't invoke any functionality. String On Nov 17, 3:48 pm, emorgen <[email protected]> wrote: > I've worked with v2 and a little of v3 of the Google Maps API and I've > used the ClientLocation property to get the approximate longitude and > latitude values of the user. Whenever I view the site from a mobile > device, it returns null/undefined values. I've used a few different > phones including a nokia n97 which has a built in gps. > > The Google Maps application works perfectly on my phone in determining > my current location; however, I'm trying to build a website that is > able to determine the user's mobile location. > > I've set the sensor=true but this has no affect. Please let me know > if this functionality is not capable or if I am making a mistake. > > The code I'm using right now is the "Google Maps JavaScript API v3 > Example: Common Loader" found here: > > http://code.google.com/p/gmaps-samples-v3/source/browse/trunk/commonl... > > Thanks, in advance, for your help! -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=.
