On Jan 29, 4:08 pm, markd <[email protected]> wrote:
> Adding an info window for each marker isn't all that simple since the
> marker's are being called from an external xml file.
>
> How do I code the listener for markers within an array? Do I need to
> have a listener for each marker within the array?


Did you look at the example I posted?
It has unique infoWindows for each marker with a minor change to your
xml.  It could be done with your xml with a minor change to the code.

  -- Larry


>
> I haven't found some great documentation on this yet... still
> searching. I also want to customize the markers and show a rollover
> state and hit state. I also want to customize the infowindow.
>
> I would have been done a while ago if the Flash Google Map API could
> have been able to show liveTraffic.
>
> Please review my code 
> at:http://www.invisionequity.com/htmlpages/howitworks.html
>
> xml code is at:http://www.invisionequity.com/xml/accesspoints.xml
>
> On Jan 29, 1:50 pm, markd <[email protected]> wrote:
>
> > Larry,
>
> > Thanks so much. I have my access points showing up all the time. At
> > first I had named my xml file markers.xml then later renamed it
> > data.xml. From now on I will stay away from naming my xml file like
> > such. Once I named my xml file accesspoints.xml they show up all the
> > time. I will work on adding the GInfoWindow now. :)
>
> > Thanks again!
> > Mark
>
> > On Jan 29, 12:26 pm, "[email protected]" <[email protected]>
> > wrote:
>
> > > On Jan 29, 12:10 pm, markd <[email protected]> wrote:
>
> > > > A couple time it has found my XML file and shown the markers, but most
> > > > of the time it doesn't locate the xml file. :(
>
> > > I don't know what that means.  Either the xml file is there or it
> > > isn't.  If the xml is invalid and you don't have error handling in
> > > your code to tell you what the problem is, that might explain the
> > > "symptom"...
>
> > > You have some sequencing/variable declaration issues in your code.
> > > The initialize function is called when the page onload event fires,
> > > but the GDownloadUrl call is inline, so is called first (which could
> > > be before the map is initialized).
>
> > > IE gives me an error "map" is undefined.
>
> > > Here is a sample with a modified version of your xml, that 
> > > works:http://www.geocodezip.com/GenericMapBrowser.asp?filename=invisionequi...
>
> > >   -- Larry
>
> > > > On Jan 29, 12:07 pm, markd <[email protected]> wrote:
>
> > > > > Thanks so much! I am getting closer...
>
> > > > >http://www.invisionequity.com/htmlpages/howitworks.html
>
> > > > > Mark
>
> > > > > On Jan 29, 11:53 am, "[email protected]" <[email protected]>
> > > > > wrote:
>
> > > > > > On Jan 29, 11:20 am, markd <[email protected]> wrote:
>
> > > > > > > Could you be so kind as to help me complete my GDownloadUrl?
>
> > > > > > Did you compare it to the one in Mike Williams' example that Rossko
> > > > > > refered you to?
>
> > > > > > > In regards to the javascript errors... What are you using to show
> > > > > > > those?
>
> > > > > > In IE you can set it to tell you about script errors.
>
> > > > > > In standards compliant browsers (FF, Opera, Chrome), the error 
> > > > > > console
> > > > > > displays them.
>
> > > > > > See the section on "Problem solving" in Mike Williams' 
> > > > > > tutorial:http://econym.org.uk/gmap/
>
> > > > > > orhttp://code.google.com/apis/maps/documentation/index.html#Troubleshoo...
>
> > > > > >   -- Larry
>
> > > > > > > thanks so much.
> > > > > > > Mark
>
> > > > > > > On Jan 29, 10:14 am, "[email protected]" <[email protected]>
> > > > > > > wrote:
>
> > > > > > > > On Jan 29, 9:55 am, markd <[email protected]> wrote:
>
> > > > > > > > > Mike/Rossko,
>
> > > > > > > > > Thanks so much for your quick reply(s).
>
> > > > > > > > > Mike,
> > > > > > > > > I took out the extra parenthesis but it didn't work.
>
> > > > > > > > > Rossko,
> > > > > > > > > I am now trying to implement the XML technique. I am sure I 
> > > > > > > > > am missing
> > > > > > > > > something?
> > > > > > > > > I have an xml file called "markers" within the same directory 
> > > > > > > > > as my
> > > > > > > > > html page.
>
> > > > > > > > > Map isn't showing up at all. :(
>
> > > > > > > > >http://www.invisionequity.com/htmlpages/howitworks.html
>
> > > > > > > > I get javascript errors on that pages and the GDownloadUrl 
> > > > > > > > callback
> > > > > > > > function is not complete.
>
> > > > > > > > This map (which expects a different xml format than yours), 
> > > > > > > > works with
> > > > > > > > your 
> > > > > > > > xml:http://www.geocodezip.com/GenericMapBrowser.asp?url=http://www.invisi...
>
> > > > > > > >   -- Larry
>
> > > > > > > > > On Jan 29, 1:50 am, Mike Williams <[email protected]> 
> > > > > > > > > wrote:
>
> > > > > > > > > > Each of your newMarker() calls has too many )'s at the end. 
> > > > > > > > > > If you make
> > > > > > > > > > changes like
> > > > > > > > > >    newMarker(33.569085, -117.700267, "Moulton Pkwy."));
> > > > > > > > > > to
> > > > > > > > > >    newMarker(33.569085, -117.700267, "Moulton Pkwy.");
> > > > > > > > > > and remove the /* and */ it should work.
>
> > > > > > > > > > I suspect that AC_RunActiveContent.js might possibly be 
> > > > > > > > > > eating your
> > > > > > > > > > Javascript errors, which you'd normally expect to see in 
> > > > > > > > > > the error log.
>
> > > > > > > > > > --
> > > > > > > > > > Mike Williams- Hide quoted text -
>
> > > > > > > > > - Show quoted text -- 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 [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