Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Customize GoogleMapAPI Sidebar?

 
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
dchillman
Smarty n00b


Joined: 26 Feb 2008
Posts: 1

PostPosted: Tue Feb 26, 2008 7:13 pm    Post subject: Customize GoogleMapAPI Sidebar? Reply with quote

I've got GoogleMapAPI 2.5 working and it's great. The only problem is that I would like to change the Sidebar output from the unordered list to sections (either as divs or cells in a table, depending on how cranky IE is going to be with my CSS). I've already stripped off the <ul> and <li> tags, but now I'm stuck in how to make the function "understand" which marker number it is currently processing.

My thinking is that if I can add an external counter I can pass the value to getCreateMarkerJS() and add various tags to sidebar_html. So, for example, I could add the logic

Code:
if ($i == 0)
  $_output .= '<td>';
elseif($i == 6)
  $_output .= '</td><td>';


and at the end:

Code:
if ($i == 11)
 $_output .= '</td>';


Unfortunately, I'm stuck at how to set up an external counter. Any ideas?

Thanks.
Back to top
View user's profile Send private message
eatc7402
Smarty Rookie


Joined: 18 Feb 2008
Posts: 23

PostPosted: Wed Feb 27, 2008 7:37 pm    Post subject: Reply with quote

I would also like to see additions to the sidebar
functions.

It would be nice to have a choice whether or not to
add a placemarks title to the sidebar.

It would be nice to have a scrollable sidebar.

It would be nice to have the concept of 'folders',
and drop down selection boxes, somewhat like
Google Earth.

I am currently working on a 'city size' map that has
about 1500 placemark icons on it, and that makes
the sidebar unusable as EACH title is added to the
sidebar. Of the 1500 icons only about 50 of them
are 'masters' for the rest of the 'sub-icons'.

firebuff55123
Back to top
View user's profile Send private message Send e-mail
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7364
Location: Lincoln Nebraska, USA

PostPosted: Wed Feb 27, 2008 8:44 pm    Post subject: Reply with quote

I believe you can add a scrollbar to the sidebar with CSS. There is some code posted in this forum about it.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP