for (i=0; i < latlngArray.length; i++) {
                                //Distanz zwischen der derzeitigen Position und 
der Position im
Array wird berechnet
                                var d =
google.maps.geometry.spherical.computeDistanceBetween(latlng,latlngArray[0]);
                                //Ist die Distanz geringer als 5km wird ein 
Marker erstellt
                                if (d < circle.radius) {
                                        if (geocoder) {
                                                alert(i); // I mean this alert 
right here
                                                var mp4 = mediaArray[i][0];
                                                var ogv = mediaArray[i][1];
                                                var webm = mediaArray[i][2];
                                                var latlng = latlngArray[i];
                                                var title = titleArray[i];
                                        geocoder.geocode({'latLng': latlng}, 
function(results,
status) {
                                        if (status == 
google.maps.GeocoderStatus.OK) {
                                                if (results[0]) {
                                                var poiMarker = new 
google.maps.Marker({
                                                        position: latlng,
                                                        address: 
results[0].formatted_address,
                                                        map: map,
                                                        title: title,
                                                        mp4: mp4,
                                                                ogv: ogv,
                                                                webm: webm
                                                });
                                                info = new 
google.maps.InfoWindow();
                                                
google.maps.event.addListener(poiMarker, 'click',
function(){
                                                        //bezieht sich auf die 
html Eigenschaft des Markers
                                                        
info.setContent(this.address);
                                                        //Bezieht sich auf die 
Karte und den Marker
                                                        info.open(map, this);
                                                });
                                                }
                                        } else {
                                                alert("Geocoder failed due to: 
" + status);
                                        }
                                        });
                                }
                                };
                        };

-- 
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.

Reply via email to