On May 13, 5:17 pm, "[email protected]" <[email protected]> wrote: > On May 13, 4:33 pm, Christopher Watson <[email protected]> > wrote: > > > hey all, > > > i have used an exmaple in google maps to detect geolocation of a user and it > > centers the map to their location > > here:http://creativemaps.vism.ag/location.htm > > > works! > > Not for me. > > > > > and i have this geo xml 3 functioning to make markers interactive through > > hiding and linking:http://creativemaps.vism.ag/manchester.htm > > > works! > > > How can i combine the two? i want the second one really to center on the > > users location for its lat lng. > > > if i can do this, i dont have to have lots of individual maps, i can have > > just one and a single xml file full of markers. > > > i had ago at combing it here: > > http://creativemaps.vism.ag/manchesterlocation.htm > > > but my limited ability of just copy pasting to try combine isnt enough and > > am going to really > > struggle. > > > any examples of this working somewhere or help will be really appreciated. > > > many thanks > > I think what you want to do is: > 1. not have geoxml3 set the center of the map (you are already doing > this). > 2. use the geolocation service to set the center of the map if it is > supported and gives a valid location. > > Those two things should not effect each other. You need to make sure > you handle the case where the user either doesn't have geolocation or > declines to share their location. I think that it the problem you are > running into as the first example doesn't work for me.
It did work eventually. It took so long to display a map that I though it wasn't ever going to, when I went back to it it was displaying this: "Error: Your browser isn't supporting us find your geolocation. Have a look at Manchester's Creative Map" Larry > > -- Larry -- 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.
