hi larry, was hoping that the two wouldnt interfere with each other, so pleased that they should work together. it was pretty slow to load finding the users location. think i'd just made a mess merging the codes.
redone 'cleaner' merge as it were and its pretty quick asking for the users location to share. http://creativemaps.vism.ag/locationdev1.htm the geolocation is fine, but in my error messages from testing on comp, not sure how to fix these errors? are they simple? i edited out where it was using latlng to get location, do i need to do it elsewhere? Message: 'bmi_load' is undefined Line: 882 Char: 1 Code: 0 URI: http://creativemaps.vism.ag/locationdev1.htm Message: 'lat' is undefined Line: 256 Char: 7 Code: 0 URI: http://creativemaps.vism.ag/locationdev1.htm Message: 'Bg[...]' is null or not an object Line: 40 Char: 995 Code: 0 URI: http://maps.gstatic.com/intl/en_gb/mapfiles/api-3/4/9/main.js Message: Object doesn't support this property or method Line: 855 Char: 1 Code: 0 URI: http://creativemaps.vism.ag/locationdev1.htm I went searching for a map center link, used a span that i found in the forum, but not working, might be one of these error messages. I know there are many little differences between the merging of the pages that could be causing the problems. like i think the working geoxml3 uses var map = null and it isnt here in the geolocation. would geolocation be fine if i used the null? is this causing problems? hope you can help. VTM blog: Future Everything<http://visualisationmagazine.com/blogvisualthinkmap/2011/04/future-everything.html> [image: Twitter] <http://twitter.com/visualthinkmap>Latest tweet: The Visual Think Map Daily is out! http://bit.ly/b8a7pV ▸ Top stories today via @coleran @aaronkoblin Follow @visualthinkmap <http://twitter.com/visualthinkmap> <http://twitter.com/?status=@visualthinkmap%20&in_reply_to_status_id=70919072304467970&in_reply_to=visualthinkmap> Reply<http://twitter.com/?status=@visualthinkmap%20&in_reply_to_status_id=70919072304467970&in_reply_to=visualthinkmap> <http://twitter.com/?status=RT%20%40visualthinkmap%3A%20The%20Visual%20Think%20Map%20Daily%20is%20out%21%20http%3A%2F%2Fbit.ly%2Fb8a7pV%20%E2%96%B8%20Top%20stories%20today%20via%20%40coleran%20%40aaronkoblin> Retweet<http://twitter.com/?status=RT%20%40visualthinkmap%3A%20The%20Visual%20Think%20Map%20Daily%20is%20out%21%20http%3A%2F%2Fbit.ly%2Fb8a7pV%20%E2%96%B8%20Top%20stories%20today%20via%20%40coleran%20%40aaronkoblin> 19:29 May-18<http://twitter.com/visualthinkmap/statuses/70919072304467970> Get this email app! <http://www.wisestamp.com/apps/twitter?utm_source=extension&utm_medium=email&utm_term=twitter&utm_campaign=apps> Signature powered by <http://www.wisestamp.com/email-install?utm_source=extension&utm_medium=email&utm_campaign=footer> WiseStamp<http://www.wisestamp.com/email-install?utm_source=extension&utm_medium=email&utm_campaign=footer> On Sat, May 14, 2011 at 1:25 AM, [email protected] <[email protected]>wrote: > 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. > > -- 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.
