Thanks for your reply! Both browser and device support HTML5.
I'm using exactly the same "geolocation" mode as the sample there: http://code.google.com/intl/en-US/apis/maps/documentation/javascript/examples/map-geolocation.html Does it work if you get there with Safari? On Jun 6, 7:42 am, Chris Broadfoot <[email protected]> wrote: > Does your browser and device support HTML5 geolocation? > > Can the device actually locate you? > > > > > > > > > > On Mon, Jun 6, 2011 at 8:14 AM, kfa1983 <[email protected]> wrote: > > I've tried many ways to do it but it doesn't work :/ > > > I've also put an "alert()" in the js and it works before the "localization" > > begins but not after... like the signal got lost or something lol > > > Here's a code snippet of the application: > > > if(navigator.geolocation) {// if I place an alert() here, the alert() > > works > > browserSupportFlag = true; > > navigator.geolocation.getCurrentPosition(function(position) {// if I > > place an alert() here, nothing :( > > initialLocation = new > > google.maps.LatLng(position.coords.latitude,position.coords.longitude); > > marker = new google.maps.Marker({ > > map:map, > > draggable:false, > > position:initialLocation > > }); > > map.setCenter(initialLocation); > > codeLatLng(position.coords.latitude,position.coords.longitude); > > infowindow.setPosition(initialLocation); > > infowindow.open(map,marker); > > }, function() { > > handleNoGeolocation(browserSupportFlag); > > }); > > } > > > Do you have clue?? > > > Thanks a lot!! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Maps JavaScript API v3" group. > > To view this discussion on the web visit > >https://groups.google.com/d/msg/google-maps-js-api-v3/-/S3FlR2lUWVVBeGNK. > > 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=en. > > --http://twitter.com/broady -- 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=en.
