/** * Saves items into viewstate. * This method is invoked right before control state is to be saved. */ public function saveState() { parent::saveState(); $this->setViewState('ApiKey', $this->getApiKey(), 'ABQIAAAA26Hu8WCmkPWtVuygEWwhHxQ6BiwfRMUYoz7gZiatyH05CpWT4BSo0y96ChNHjUaHszyjaWHeT9DqvQ'); $this->setViewState('Center', $this->getCenter(), array(44.553278, -88.108981)); $this->setViewState('MapControls', $this->getMapControls(), array('GSmallMapControl')); // echo 'saveState:',$this->getMarker(); $this->setViewState('MarkerID', $this->getMarkerID(), null); $this->setViewState('ScrollWheelZoom', $this->getScrollWheelZoom(), false); $this->setViewState('SentMarkers', $this->getSentMarkers(), null); $this->setViewState('ZoomLevel', $this->getZoomLevel(), 11); $this->setViewState('Bounds', $this->getBounds(), array()); }