I solved it the old way, I put the content of the function in place of
the call, and it works fine, why?
like this
//addmarker_s(latlng2, true); <-- INSTEAD I PUT THE CODE BELOW
var marker = new google.maps.Marker({
position: latlng2,
map: map2,
draggable: true
})
google.maps.event.addListener(marker, 'dragend', function(e) {
updateElevation_s();
});
markers_s.push(marker);
if (1) {
updateElevation_s();
}
Why it didnt let me use the argumentż I printed it and show me it is a
correct latlng type
thanks
mariobi40
--
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.