Chris: Have you checked Firebug errors? Yoo can try following
----- google.maps.event.addListener(marker, 'click', function() { infowindow.setContent( contentString + "<div id='custom-tweet-button'>" + "<a href='http://twitter.com/share' class='twitter-share-button' data-url='" + base + escape(marker.title) + "' data-counturl=' " + base+escape(marker.title) + "' data-count='vertical' data- via='visualthinkmap'>Tweet</a></div>" ); infowindow.open(map,marker); }); --- and then add remaining three span lines On Nov 1, 9:08 am, Christopher Watson <chris.watso...@googlemail.com> wrote: > without all the wading of codehttp://creativemaps.vism.ag/infowindowurldev.htm > > Chris Watson > > Portfolio |http://vism.ag/inkplay > Vis Mag |http://vism.ag<http://vism.ag/inkplay> > Creative Maps |http://vism.ag/maps > Blog | Edinburgh Creative > Map<http://visualisationmagazine.com/blogvisualthinkmap/2011/10/edinburgh...> > [image: Twitter] <http://twitter.com/visualthinkmap>tweeted: @CreativeEdin > thx > Follow @visualthinkmap <http://twitter.com/visualthinkmap> Reply > <http://twitter.com/?status=@visualthinkmap%20&in_reply_to_status_id=1...> > Retweet > <http://twitter.com/?status=RT%20%40visualthinkmap%3A%20%40CreativeEdi...> > 17:48 Oct-30<http://twitter.com/visualthinkmap/statuses/130702704514314240> > Get this email app! > <http://www.wisestamp.com/apps/twitter?utm_source=extension&utm_medium...> > > Get a signature like this. > <http://r1.wisestamp.com/r/landing?promo=19&dest=http%3A%2F%2Fwww.wise...> > CLICK > HERE.<http://r1.wisestamp.com/r/landing?promo=19&dest=http%3A%2F%2Fwww.wise...> > > On Tue, Nov 1, 2011 at 3:48 PM, Christopher Watson < > > > > chris.watso...@googlemail.com> wrote: > > hi xela, > > > yeah, i just come back to it now and was figuring out how to try it > > without the need to wade through code. i did it in the 'wades' of code as i > > load makers from an xml, not as seperate points like in your examples. > > > Thanks for the new example i'm looking at it and i see this... > > > infowindow.setContent(contentString+"<br>"+base+escape(marker.title)); > > > ...is it this thats putting it into the infowindow? > > > i'm trying to add the url to the sharethis widget. > > > so the url you put int the info window... > > > but inside here... > > > <div id="custom-tweet-button"> > > <a href="http://twitter.com/share" class="twitter-share-button" > > data-url="*the url inside here*" > > data-counturl="*the url inside here*" > > data-count="vertical" > > data-via="visualthinkmap">Tweet</a> > > </div> > > > <span class="st_facebook_vcount" st_url="*the url inside here*' + name + > > '<\/a>" displayText="Share"></span> > > <span class="st_email_vcount" st_url="*the url inside here*" > > displayText="Email"></span> > > <span class="st_sharethis_vcount" st_url="*the url inside here*" > > displayText="Share"></span> > > > so... (he says just typing and not sure of coding format or errors)... > > > something like this: > > > infowindow.setContent( > > <div id="custom-tweet-button"> > > <a href="http://twitter.com/share" class="twitter-share-button" > > data-url="*contentString+"<br>"+base+escape(marker.title));*" > > data-counturl="*contentString+"<br>"+base+escape(marker.title));*" > > data-count="vertical" > > data-via="visualthinkmap">Tweet</a> > > </div> > > > <span class="st_facebook_vcount" st_url="*contentString+"<br>"+base+ > > escape(marker.title));*' + name + '<\/a>" displayText="Share"></span> > > <span class="st_email_vcount" st_url="*contentString+"<br>"+base+ > > escape(marker.title));*" displayText="Email"></span> > > <span class="st_sharethis_vcount" st_url="*contentString+"<br>"+base+ > > escape(marker.title));*" displayText="Share"></span> > > > Would this be ok and does it make it bit clearer what i want to put in the > > infowindow, jsut love that a unique url is generated for a marker and > > wanted to utilise it in social sharing buttons. > > > again, all help greatly appreciated > > > thanks xela for the url in the window example. > > > chris > > > Chris Watson > > > Portfolio |http://vism.ag/inkplay > > Vis Mag |http://vism.ag<http://vism.ag/inkplay> > > Creative Maps |http://vism.ag/maps > > > Blog | Edinburgh Creative > > Map<http://visualisationmagazine.com/blogvisualthinkmap/2011/10/edinburgh...> > > [image: Twitter] <http://twitter.com/visualthinkmap> tweeted: @CreativeEdin > > thx > > Follow @visualthinkmap <http://twitter.com/visualthinkmap> Reply > > <http://twitter.com/?status=@visualthinkmap%20&in_reply_to_status_id=1...> > > Retweet > > > <http://twitter.com/?status=RT%20%40visualthinkmap%3A%20%40CreativeEdi...> > > 17:48 Oct-30<http://twitter.com/visualthinkmap/statuses/130702704514314240> > > Get this email app! > > <http://www.wisestamp.com/apps/twitter?utm_source=extension&utm_medium...> > > > Get a signature like this. > > <http://r1.wisestamp.com/r/landing?promo=19&dest=http%3A%2F%2Fwww.wise...> > > CLICK > > HERE.<http://r1.wisestamp.com/r/landing?promo=19&dest=http%3A%2F%2Fwww.wise...>- > > Hide quoted text - > > - Show quoted text - -- 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 google-maps-js-api-v3@googlegroups.com. To unsubscribe from this group, send email to google-maps-js-api-v3+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.