/**
  * Sets the center of the map.
  * 
  * @param Map $map
  * @return string The html 
  */
 protected function setMapCenter(Map $map)
 {
     return sprintf('%s.setView(new L.LatLng(%s, %s), %u);', $map->getVarName(), $map->getCenter()->getLat(), $map->getCenter()->getLng(), $map->getZoom());
 }
 /**
  * Sets the center of the map.
  * 
  * @param Map $map
  * @return string The html 
  */
 protected function setMapCenter(Map $map)
 {
     return sprintf('%s.setCenter(new google.maps.LatLng(%s, %s));', $map->getVarName(), $map->getCenter()->getLat(), $map->getCenter()->getLng());
 }
 /**
  * Gets the pins variable name for the map.
  * 
  * @param Map $map The map
  * @return string The var name
  */
 protected function getMapPinsVarName(Map $map)
 {
     return $map->getVarName() . 'Pins';
 }