Well, that was odd. I hope Ross was right. I'd hate to think I was
spamming.

I've added two marvelous bits of stuff to my map (
http://lovebunnies.luckypro.biz/01_stuff/roman_holiday/romanholidaymap.html
): a rollover icon switch from the sidebar, and category headers!
Neato. Now there's just one little problem, and before I try to fix
it, may I ask one more question?

I've written myself into a corner. I used all lowercase shorthand for
my marker categories. Now I'd like to get headers in my sidebar that
match the "full versions" of the categories shown in the checkboxes
that appear above the map. Figured I'd write some kind of Find&Replace
routine, similar to the "header = header.replace(/^./, header.charAt
(0).toUpperCase());: line in the header creating code I cribbed from
now-I-don't-remember-where.

Well, I can't find a way to make javascript do more than one
replacement at a time. Either JS is completely lame or I'm an idiot. I
thought I'd be able to write someting like header.replace
('citynight','City Night','end','The End'); but nope. How then can I
"replace" a couple of strings with other strings? Or is there some
other simple function? Hours of googling have left me reeling, not
rocking.

And I sure hope this is the end! Really!
--~--~---------~--~----~------------~-------~--~----~
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