On Sep 19, 7:03 am, DaveGivesPHPaShot <[email protected]> wrote: > I'm new to java
There is no java involved in the Google Maps JavaScript API v3 (the topic of this group). It is javascript. Java and JavaScript are different things. -- Larry > and had a hard time understanding the examples > herehttp://econym.org.uk/gmap/example_categories.htm > and herehttp://www.geocodezip.com/v3_MW_example_categories.html > compared to the google tutorial > herehttp://code.google.com/apis/maps/articles/phpsqlajax_v3.html > > The first point to understand is that two checkbox examples break the > xml download and the marker creation into two separate steps. > > In the google code, you create a bunch of variables and then, right > away, you put them into markers and bind the window with this code > > var marker = new google.maps.Marker({ > map: map, > position: point, > icon: icon.icon, > shadow: icon.shadow > }); > bindInfoWindow(marker, map, infoWindow, html); > > In the checkbox examples, you take a detour over to the createmarker > function. In a way, the creation and binding are still included in the > 'for' section of the xml parsing, but you might not realize that if > you are new to Javascript. Just as in the google tutorial, the 'for' > processes each node of xml; but then instead of creating directly, it > passes all of the details over to function createmarker for final > creation. Then the 'for' attacks the next node. Take a look at the > createmarker function in the two checkbox examples and you'll see code > similar to the above. Hope that saves someone some time. Now I am > about to attack the actual checkboxes. -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
