On Feb 6, 5:30 pm, BuckyE <[email protected]> wrote:
> Well, with one tiny exception, it works. I'm flabbergasted and very
> grateful to all who so patiently led me through this. Maybe some of
> you might enjoy looking through the suite 
> (http://lovebunnies.luckypro.biz/01_stuff/roman_holiday/rom_con-1.html
> ).
>
> The tiny exception is that when the map 
> pagehttp://lovebunnies.luckypro.biz/01_stuff/roman_holiday/romanholidayma...
> is opened without any query in the URL, the code
>      if (passedmarkerid) {
>           if (idmarkers[passedmarkerid]) {
>             GEvent.trigger(idmarkers[passedmarkerid],"click");
>           } else {
>             alert("markerid "+markerid+" does not match any marker");
>           }
>         }
> makes the alert appear. The alert always says "id 12 does not match
> any marker." id12 is the last entry in the XML file. I have a global
> variable "var passedmarkerid = [];"  I expected that to suppress or
> prevent the "open the info window" code from activating when no
> argument was present in the URL opening the page. It's a minor
> irritation, and I can live with it, but it would be nice to clean it
> out.

Then test for that case (no query string or no passed marker id) and
don't put up the alert.  No "passed marker id" is different from
"passed marker id" which doesn't exist in the array.

  -- Larry


>
> Thanks so much again and again to all who helped. You are very kind
> folks.
--~--~---------~--~----~------------~-------~--~----~
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