Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Error while doing Geocoding using Google Maps API
- Uncaught Error: Invalid value for property <address>:
- function codeAddress(zipcode){
- var address = zipcode;
- alert("Address is: " +address);
- geocoder.geocode( { 'address': address}, function(results, status) {
- if (status == google.maps.GeocoderStatus.OK) {
- map.setCenter(results[0].geometry.location);
- var marker = new google.maps.Marker({
- map: map,
- position: results[0].geometry.location
- });
- } else {
- alert("Geocode was not successful for the following reason: " + status);
- }
- });
- }
- <input type="button" value="Geocode" onclick="codeAddress(<%=resultset.getString(3)%>)">
Advertisement
Add Comment
Please, Sign In to add comment