Adding a sidebar

3,731 views
Skip to first unread message

Ahunter61

unread,
Dec 18, 2009, 8:59:39 AM12/18/09
to Google Maps JavaScript API v3
I am looking to upgrade some of the maps on my site www.conneroutdoors.com
with the new v3 maps, I would like to use the simple code used in this
example, http://code.google.com/apis/maps/articles/phpsqlajax_v3.html
but I need to add a sidebar to the map, can anyone point me to an
example or a tutorial that would show how to do this. Thanks Pete

Esa

unread,
Dec 18, 2009, 2:15:28 PM12/18/09
to Google Maps JavaScript API v3

Ahunter61

unread,
Dec 23, 2009, 9:59:58 AM12/23/09
to Google Maps JavaScript API v3

OK I am getting close, I have managed to get a sidebar using code from
Pamela's example http://code.google.com/apis/maps/articles/phpsqlsearch_v3.html
Creating a store locator.
the page I am working on is www.conneroutdoors.com/alabama.html but I
can't seem to get the click function to open the infowindow to work
from the sidebar
Please bear with me I know this is probably simple but I am no coder.
Just trying to learn as I go Thanks for any help, Pete

Ronny Aerts

unread,
Dec 23, 2009, 10:47:38 AM12/23/09
to google-map...@googlegroups.com
I was interested in your solution and therefore started debugging.

There are a few mistakes in your code:
1. You declared "var markers = [];" which is good but later on you reuse the variable name as "var markers = xml.documentElement.getElementsByTagName("marker");" and that's wrong.
2. You never add elements to initial marker array.

See attachment for the details.
--
vriendelijke groeten,
Ronny Aerts

2009/12/23 Ahunter61 <Ahun...@comcast.net>

--

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-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.





alabama.htm

Ahunter61

unread,
Dec 23, 2009, 10:55:29 AM12/23/09
to Google Maps JavaScript API v3

Thank you very much Ronny it works great...
Reply all
Reply to author
Forward
0 new messages