On Sep 13, 10:43 am, TC_uk <[email protected]> wrote:
>
> The 0.5% of my input includes custom markers and getAttribute
> expansion to reflect my XML, but as far as I can see, all the
> remaining code ought to be the same, but...
>
>         When the map opens and the initial markers appear, the sidebar does
> not populate until the highlighted (already ticked) checkbox is re-
> clicked. What have I done wrong?

You add the markers, and then do this:
hide("info");
but your checkbox isn't called infobox, it's called touristbox. That
will also affect the checkbox's click event:
<input type="checkbox" onclick="boxclick(this,'info')"
id="touristbox">

That error stops the code and the sidebar isn't built. Checking the
box fires the right event and builds the sidebar.

> Secondly, I want to change the sidebar to include different var html,
> but after many hours fiddling I can't see how to do it. I've tried a
> lot of sidebar variations, as demonstrated within this group, but I
> can't get it.
>
>         What I want is something like:
>         side_bar_html += "<a href='javascript:myclick(" + n + ")'>" + date2 +
> " " + city + " &sim; " + type + "</a><br />"
> [...This taken from previously working code on a non-category non-
> selectable basic map]

I have no idea what you're asking here. I suggest getting the sidebar
working -- so we can see what you currently have -- and then say
explicitly what you want the link to look like and do (rather than
give a line of code).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-api?hl=en.

Reply via email to