EmbedGoogleMapParameters
The Embed Google Map EmbedGoogleMapParameters class.
Defined (1)
The class is defined in the following location(s).
- /embed_google_map.php
- class EmbedGoogleMapParameters {
- private $version = "new";
- private $embedAPIKey = "";
- private $address = "";
- private $mapType = "normal";
- private $zoomLevel = 14;
- private $language = "en";
- private $addLink = 0;
- private $linkLabel = "";
- private $linkFull = 0;
- private $showInfo = 1;
- private $height = 300;
- private $width = 400;
- private $border = 0;
- private $borderStyle = "solid";
- private $borderColor = "#000000";
- private $https = 0;
- private $infoLabel = "";
- public function setVersion($value) {
- $this->version = $value;
- }
- public function getVersion() {
- return $this->version;
- }
- public function setEmbedAPIKey($value) {
- $this->embedAPIKey = $value;
- }
- public function getEmbedAPIKey() {
- return $this->embedAPIKey;
- }
- public function setAddress($value) {
- $this->address = $value;
- }
- public function getAddress() {
- return $this->address;
- }
- public function setMapType($value) {
- $this->mapType = $value;
- }
- public function getMapType() {
- return $this->mapType;
- }
- public function setZoomLevel($value) {
- $this->zoomLevel = $value;
- }
- public function getZoomLevel() {
- return $this->zoomLevel;
- }
- public function setLanguage($value) {
- $this->language = $value;
- }
- public function getLanguage() {
- return $this->language;
- }
- public function setAddLink($value) {
- $this->addLink = $value;
- }
- public function getAddLink() {
- return $this->addLink;
- }
- public function setLinkLabel($value) {
- $this->linkLabel = $value;
- }
- public function getLinkLabel() {
- return $this->linkLabel;
- }
- public function setLinkFull($value) {
- $this->linkFull = $value;
- }
- public function getLinkFull() {
- return $this->linkFull;
- }
- public function setShowInfo($value) {
- $this->showInfo = $value;
- }
- public function getShowInfo() {
- return $this->showInfo ;
- }
- public function setHeight($value) {
- $this->height = $value;
- }
- public function getHeight() {
- return $this->height;
- }
- public function setWidth($value) {
- $this->width = $value;
- }
- public function getWidth() {
- return $this->width;
- }
- public function setBorder($value) {
- $this->border = $value;
- }
- public function getBorder() {
- return $this->border;
- }
- public function setBorderStyle($value) {
- $this->borderStyle = $value;
- }
- public function getBorderStyle() {
- return $this->borderStyle;
- }
- public function setBorderColor($value) {
- $this->borderColor = $value;
- }
- public function getBorderColor() {
- return $this->borderColor;
- }
- public function setHttps($value) {
- $this->https = $value;
- }
- public function getHttps() {
- return $this->https;
- }
- public function setInfoLabel($value) {
- $this->infoLabel = $value;
- }
- public function getInfoLabel() {
- return $this->infoLabel;
- }
- public function setIsGoogleMapsEngine($value) {
- $this->isGoogleMapsEngine = $value;
- }
- public function isGoogleMapsEngine() {
- if(preg_match('/^http(s|):\/\/mapsengine\.google\.com/i', $this->address)) {
- return 1;
- }
- return 0;
- }
- public function isLink() {
- if(preg_match('/^http(s|):\/\//i', $this->address)) {
- return 1;
- }
- return 0;
- }
- }