Class: ShareComponentController controller:GmfShareController

gmf.permalink.module:shareComponent.ShareComponentController

new ShareComponentController($scope, ngeoLocation, gmfShareService, $q, $attrs)

The controller for the share component

Parameters:
Name Type Description
$scope angular.Scope

Scope.

ngeoLocation ngeo.statemanager.Location

ngeo Location service.

gmfShareService gmf.permalink.ShareService

service for sharing map.

$q angular.$q

Angular q service

$attrs angular.Attributes

Attributes.

Members

email: string

enableEmail: boolean

errorOnGetShortUrl: boolean

errorOnsend: boolean

message: string

showLengthWarning: boolean

successfullySent: boolean

Methods

getShortUrl()

Get the short version of the permalink if the email is not provided

sendShortUrl()

Send the short version of the permalink if the email is provided