code: function(geometry){
        if (geometry.viewport){
          this.map.fitBounds(geometry.viewport);
          if (this.map.getZoom() > this.options.maxZoom){
            this.map.setZoom(this.options.maxZoom);
          }
        } else {
          this.map.setZoom(this.options.maxZoom);
          this.map.setCenter(geometry.location);
        }
  
        if (this.marker){
          this.marker.setPosition(geometry.location);
          this.marker.setAnimation(this.options.markerOptions.animation);
        }
      }
docs: Set the map to a new center by passing a `geometry`. If the geometry has a viewport, the map zooms out to fit the bounds. Additionally it updates the marker position.