Sidebar help

61 views
Skip to first unread message

Gdaniels

unread,
Oct 15, 2011, 7:14:30 PM10/15/11
to google-map...@googlegroups.com
Hi, newbie here seeking help on creating a sidebar.  The map is based on the sample at http://code.google.com/apis/maps/articles/phpsqlajax_v3.html.

To view my map, first go to http://www.askdata.net/propmap/mapdata.php and do the demo.  Property addresses are pasted into the text area.  Upon click, the the data is inserted into a mySQL database, geocoded, then the map page at http://www.askdata.net/propmap/mapinputbody.php is launched displaying the icons.

I want a sidebar that displays the same information shown in the InfoWindows.  This would be similar to the API V2 Store Locator example at  http://code.google.com/apis/maps/articles/phpsqlsearch.html.  The API V3 Store Locator example does not include a sidebar.  I am not sure how to take the API V2 sidebar example and use it in my map which is API V3.


Thanks in advance,

Gary

geoco...@gmail.com

unread,
Oct 15, 2011, 11:48:47 PM10/15/11
to Google Maps JavaScript API v3
On Oct 15, 4:14 pm, Gdaniels <askapprai...@gmail.com> wrote:
> Hi, newbie here seeking help on creating a sidebar.  The map is based on the
> sample athttp://code.google.com/apis/maps/articles/phpsqlajax_v3.html.
>
> To view my map, first go tohttp://www.askdata.net/propmap/mapdata.phpand
> do the demo.  Property addresses are pasted into the text area.  Upon click,
> the the data is inserted into a mySQL database, geocoded, then the map page
> athttp://www.askdata.net/propmap/mapinputbody.phpis launched displaying
> the icons.
>
> I want a sidebar that displays the same information shown in the
> InfoWindows.  This would be similar to the API V2 Store Locator example at  http://code.google.com/apis/maps/articles/phpsqlsearch.html.  The API V3
> Store Locator example does not include a sidebar.  I am not sure how to take
> the API V2 sidebar example and use it in my map which is API V3.

You need to translate it to v3. All the functions used have equivalent
v3 versions. For the most part "G*" translates to "google.maps.*";
"GEvent.*" translates to "google.maps.event.*"

-- Larry

>
> Thanks in advance,
>
> Gary

Gdaniels

unread,
Oct 17, 2011, 7:31:28 AM10/17/11
to google-map...@googlegroups.com
Larry, thanks for the reply.  Your help has gotten me further, but there are 2 problems to solve.  First, the sidebar only shows the last marker information.  I may not have placed some of the sidebar coding in its proper place.  Second, (which may be part of the first problem), all the icons appear when using Firefox, but when using IE8 all the icons except the last icon appears.   To view the map and code, first go to http://www.askdata.net/propmap/mapdata.php and do the demo (paste addresses into text area), then the map page will be displayed.  Thanks again.

Gary  

geoco...@gmail.com

unread,
Oct 17, 2011, 9:10:31 AM10/17/11
to Google Maps JavaScript API v3
I don't see any markers.

http://www.askdata.net/propmap/genxml2.php

returns an empty xml document (<markers></markers>)

-- Larry

>
> Gary  
Reply all
Reply to author
Forward
0 new messages