/** * Loads items from viewstate. * This method is invoked right after control state is loaded. */ public function loadState() { parent::loadState(); if ($this->getPage()->getisCallback() || $this->getPage()->getIsPostBack()) { $this->_apiKey = $this->setViewState('ApiKey', 'ABQIAAAA26Hu8WCmkPWtVuygEWwhHxQ6BiwfRMUYoz7gZiatyH05CpWT4BSo0y96ChNHjUaHszyjaWHeT9DqvQ'); $this->_center = $this->getViewState('Center', array(44.553278, -88.108981)); $this->_mapControls = $this->getViewState('MapControls', array('GSmallMapControl')); echo 'loadState:', $this->_markerID; $this->_markerID = $this->getViewState('MarkerID', null); echo 'after:', $this->_markerID; $this->_scrollWheelZoom = $this->getViewState('ScrollWheelZoom', false); $this->_sentMarkers = $this->getViewState('SentMarkers', null); $this->_zoomLevel = $this->getViewState('ZoomLevel', 11); $this->_bounds = $this->getViewState('Bounds', array()); $this->_stateLoaded = true; } $this->clearState(); }