/** * Sets the geotag on the video. * * @see {link:http://geojson.org/} * * @param string $geoTag * * @return $this */ public function withGeoTag($geoTag) { Type::enforce($geoTag, [Type::STRING, GeoTag::getClassName()]); if (Type::is($geoTag, Type::STRING)) { $this->geoTag = GeoTag::create()->withScript($geoTag); } elseif (Type::is($geoTag, GeoTag::getClassName())) { $this->geoTag = $geoTag; } return $this; }
/** * Sets the geoTag on the image. * * @param GeoTag $geo_tag The tag to be set on the map object * * @see {link:http://geojson.org/} * * @return $this */ public function withGeoTag($geo_tag) { Type::enforce($geo_tag, GeoTag::getClassName()); $this->geoTag = $geo_tag; return $this; }