Add a parameter to a google maps geocoder funcion
Posted
by
kree
on Stack Overflow
See other posts from Stack Overflow
or by kree
Published on 2011-01-10T11:24:07Z
Indexed on
2011/01/10
11:53 UTC
Read the original article
Hit count: 163
I want to create a geocoder function, which write the result to it's parameter.
function geoCode(latlng,div) {
gc.geocode({'latLng': latlng}, function (result, status) {
if (status == google.maps.GeocoderStatus.OK) {
new google.maps.Marker({
position: result[0].geometry.location,
map: map
});
jq(div).html(result[0].formatted_address);
}
});
How can I add the div parameter to the geocoder function?
Any help would be appreciated.
© Stack Overflow or respective owner