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
> Vis Mag |
http://vism.ag<
http://vism.ag/inkplay>
> Map<
http://visualisationmagazine.com/blogvisualthinkmap/2011/10/edinburgh...>
> [image: Twitter] <
http://twitter.com/visualthinkmap>tweeted: @CreativeEdin
> thx
> Get a signature like this.
> 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
>
> > [image: Twitter] <
http://twitter.com/visualthinkmap> tweeted: @CreativeEdin
> > thx
> > 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 -