title: How to re-center a map using jquery-ui-map
body: <p>Using jquery-ui-map.</p>
  
  <p>I am loading data through JSON with some marker and the latitude/longitude of the
  new  center of the map (location finder application). </p>
  
  <pre><code>var origin = new google.maps.LatLng(data.origin.latitude, data.origin.longitude)
  
  // adding the marker for the new origin works
  $('#map_canvas').gmap('addMarker', {'position': origin});
  
  // does not work
  $('#map_canvas').gmap('center', '49, 7');
  
  // does not work
  $('#map_canvas').gmap('center', origin);
  
  // does not work
  $('#map_canvas').gmap('center', {'position': origin});
  </code></pre>
  
  <p>All of the three center calls fail:</p>
  
  <pre><code>Uncaught TypeError: Cannot call method 'apply' of undefined
  $.a.$.fn.(anonymous function)jquery.ui.map.js:46
  b.extend.eachjquery.js:35
  b.fn.b.eachjquery.js:28
  $.a.$.fn.(anonymous function)jquery.ui.map.js:40
  (anonymous function)@@geosearch:477
  c.extend.handleSuccessjquery.js:144
  c.extend.ajax.w.onreadystatechange
  </code></pre>
  
  <p>What is the canonical way here?</p>