[Google Maps API v2] Re: Infowwindow contents in sidebar
On Oct 17, 6:02 am, Rossko <ros...@culzean.clara.co.uk> wrote:
> x = 2;
> x = 4;
> x will take the value 2 very briefly, but the end result will be seen
> as 4. If you wanted x to be the sum of the two, you'd do something
> like
> x = 2;
> x = x + 4;
>
> Compare with
>
> > document.getElementById("topbar").innerHTML="";
> > document.getElementById("topbar").innerHTML=gmarkers[i].html;
> > document.getElementById("topbar").innerHTML=gmarkers[i].name;
>
> You'll want to find out how to "add-on" a string to an existing value
> in javascript.
Like you do here:
var html = "<b>"+name+"<\/b><p style='font-size:smaller'>" + address
+ "<\/p>";
document.getElementById("topbar").innerHTML=gmarkers[i].name
+" "+gmarkers[i].address;
assuming your gmarkers array has name and address properties for each
marker (you can add html tags for formatting if you want).
(BTW - I get a "Website Under Review" message when I try to look at
the link you provided)
-- Larry
> > document.getElementById("topbar").innerHTML=gmarkers[i].name;
--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home