"MyLocation" is a feature of the stand alone Google Maps For Mobile application for mobile phones. There the native GMM application on the phone gathers all physical positioning information available at the device (e.g. the GPS position, the IP address, cell information, WiFi networks around) and looks that up against a database at Google.
Because javascript runs "sandboxed", it has per default no access to those kind of information without any helper around. There are currently two ways to achieve something like "MyLocation" in a web based scenario a) use the IP address positioning available currently as pointed out by Rossko. This does work on more or less "direct" internet connection only (i.e. it doesn't produce valid results in tunneled connections, BTW) b) use a client based control to assemble the information required (e.g. Google Gears Plugin, Firefox Geode Plugin, Skyhook Wireless Loki control) and some Javascript around to located the client browsing your site. This of course requires the separate installation of the mentioned control Probably there will be some enhancements available in future version of the JS API (which is discussed in this forums); the new required parameter "sensor=..." is an indication, but those kind of functionality isn't available yet and I doubt, that a plain javascript based approach will ever be able to scan the devices available for positioning information (at least I HOPE THAT truly :)) Hope that helps. For further information this isn't the right group. Regards ocoletto schrieb: > Can I get MyLocation feature in a map placed in my webpage ( to show > and get lat and lng in a mobile phone ) ? > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" 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-API?hl=en -~----------~----~----~----~------~----~------~--~---
