> Thanks for your efforts but I'm just going round in circles! I thought
> you might have a new take on it that I hadn't thought of !
>
> I've gone back full circle round to the point where I get " [object
> HTMLDivElement] " shown in the sidebar when I click a check box and
> hide certain markers.
>
> See:  http://www.trycornwall.co.uk/googlemaps/index2.html

Your function makeSidebar() builds a string called 'html'.
It calls a function createSidebarEntry() which returns a DOM object (a
<div>) and then attempts to add that to the string 'html'.
The javascript inetrpreter does its best to reconcile these two
different types of things, but the fix is for your code to be
consistent.  Either use "real" DOM objects, or use strings (which can
include character sequences like "<div>..." etc)

Hint : note that where you call createSidebarEntry() in the original
search results setting up, you use its returned data like this -
     var sidebarEntry = createSidebarEntry(...);
     sidebar.appendChild(sidebarEntry);         // This is a DOM
operation
whereas in makeSidebar() you use it like this
     html += createSidebarEntry( ....);       // This is a String
operation

Not a maps issue.

cheers, Ross K

--~--~---------~--~----~------------~-------~--~----~
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