0

I'm getting this error when trying to set a new map center using the Geocoder Api from Google Maps.

geocoder.geocode({adress:this.startPosition},
    (results2,status)=>{
      if(status=="OK"){
        this.map.setCenter(results2[0].geometry.location)
        alert(results2[0].geometry.location)
      }else{
        alert("Geocode was not sucessfull" + status)
      }
    });

where "startPosition" is a string with my location

user12792083
  • 23
  • 2
  • 6

1 Answers1

0

Instead of adress, it should be address.

nopassport1
  • 1,821
  • 1
  • 25
  • 53