Wednesday, June 23, 2010

Re: Style SideBar categorical menu

On Jun 23, 7:19 pm, GNP <area...@gmail.com> wrote:
> Got it !
> Everything is in place and working.http://www.novoprint.com/GoogleTests/gmap/CurrentMap.html

FYI - I get a javascript error in IE6 (on the else at line 581). It
looks to me like you have two different createMarker functions, that
might confuse some browsers; however, it seems to work OK in the 3
browsers I tried (IE6, Chrome and FF).

-- Larry

>
> Thank you Larry
>
> On Jun 22, 6:32 pm, "geocode...@gmail.com" <geocode...@gmail.com>
> wrote:
>
>
>
> > On Jun 22, 2:26 pm, "geocode...@gmail.com" <geocode...@gmail.com>
> > wrote:
>
> > > On Jun 22, 1:45 pm,GNP<area...@gmail.com> wrote:
>
> > > >http://www.novoprint.com/GoogleTests/gmap/Currentmap.html
>
> > > > I have a sidebar menu that is populated by an XML file.
> > > > The sidebar menu has a categorial structure.
> > > > I want to have the category headings (AUTOMOTIVE, FINANCE, etc.),
> > > > stand out from the other items listed in the menu. I can't figure out
> > > > a way to do this with CSS. As it is now, I'm using CSS to style the
> > > > active and hover states of the links. Is there a way to be selective
> > > > about styling specific items in the menu?
>
> > > You should change the way you do your processing.  Currently each of
> > > your headings cause a "marker" to be created with lat=NaN and lng=NaN,
> > > which IE doesn't like at all.
>
> > > If you create the headings differently, you can style them
> > > differently.  One way would be to store them as a property of the
> > > markers, then when you get a new category as you are processing the
> > > sidebar, emit the category heading with its special style, then
> > > continue on.
>
> > Here is a version of what I am talking about (modified from the
> > original "categories" example in Mike Williams' tutorial, but with a
> > slightly modified version of your xml):http://www.geocodezip.com/MW_example_categories_headings.html
>
> >    -- Larry
>
> > > > Do I need to look into using XLM or XSLT for this or is there a
> > > > simpler method that anyone can suggest?
>
> > > > I don't think Pseudo-classes will work because the menu is not
> > > > developed from a list that I could target.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -

--
You received this message because you are subscribed to the Google Groups "Google Maps API" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate