ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilMapGUI Class Reference

User interface class for maps. More...

+ Inheritance diagram for ilMapGUI:
+ Collaboration diagram for ilMapGUI:

Public Member Functions

 __construct ()
 
 setMapId ($a_mapid)
 Set Map ID. More...
 
 getMapId ()
 Get Map ID. More...
 
 setWidth ($a_width)
 Set Width. More...
 
 getWidth ()
 Get Width. More...
 
 setHeight ($a_height)
 Set Height. More...
 
 getHeight ()
 Get Height. More...
 
 setLatitude ($a_latitude)
 Set Latitude. More...
 
 getLatitude ()
 Get Latitude. More...
 
 setLongitude ($a_longitude)
 Set Longitude. More...
 
 getLongitude ()
 Get Longitude. More...
 
 setZoom ($a_zoom)
 Set Zoom. More...
 
 getZoom ()
 Get Zoom. More...
 
 setEnableTypeControl ($a_enabletypecontrol)
 Set Use Map Type Control. More...
 
 getEnableTypeControl ()
 Get Use Map Type Control. More...
 
 setEnableNavigationControl ($a_enablenavigationcontrol)
 Set Use Navigation Control. More...
 
 getEnableNavigationControl ()
 Get Use Navigation Control. More...
 
 setEnableUpdateListener ($a_enableupdatelistener)
 Set Activate Update Listener. More...
 
 getEnableUpdateListener ()
 Get Activate Update Listener. More...
 
 setEnableLargeMapControl ($a_largemapcontrol)
 Set Large Map Control. More...
 
 getEnableLargeMapControl ()
 Get Large Map Control. More...
 
 setEnableCentralMarker ($a_centralmarker)
 Enable Central Marker. More...
 
 getEnableCentralMarker ()
 Get Enable Central Marker. More...
 
 addUserMarker ($a_user_id)
 Add user marker. More...
 
 getHtml ()
 Get HTML. More...
 
 getUserListHtml ()
 Get User List HTML (to be displayed besides the map) More...
 

Protected Attributes

 $mapid
 
 $width = "500px"
 
 $height = "300px"
 
 $latitude
 
 $longitude
 
 $zoom
 
 $enabletypecontrol = false
 
 $enableupdatelistener = false
 
 $enablenavigationcontrol = false
 
 $enablelargemapcontrol = false
 
 $user_marker = array()
 

Detailed Description

User interface class for maps.

Author
Richard Klees richa.nosp@m.rd.k.nosp@m.lees@.nosp@m.conc.nosp@m.epts-.nosp@m.and-.nosp@m.train.nosp@m.ing..nosp@m.de
Version
$Id$

Definition at line 33 of file class.ilMapGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilMapGUI::__construct ( )

Definition at line 47 of file class.ilMapGUI.php.

References $DIC, $lng, and $tpl.

48  {
49  global $DIC;
50  $lng = $DIC['lng'];
51  $tpl = $DIC['tpl'];
52 
53  $lng->loadLanguageModule("maps");
54  }
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
global $lng
Definition: privfeed.php:17

Member Function Documentation

◆ addUserMarker()

ilMapGUI::addUserMarker (   $a_user_id)

Add user marker.

Parameters
int$a_user_idUser ID

Definition at line 292 of file class.ilMapGUI.php.

References getHtml(), and getUserListHtml().

293  {
294  return $this->user_marker[] = $a_user_id;
295  }
+ Here is the call graph for this function:

◆ getEnableCentralMarker()

ilMapGUI::getEnableCentralMarker ( )

Get Enable Central Marker.

Returns
boolean Central Marker

Definition at line 282 of file class.ilMapGUI.php.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

283  {
284  return $this->centralmarker;
285  }
+ Here is the caller graph for this function:

◆ getEnableLargeMapControl()

ilMapGUI::getEnableLargeMapControl ( )

Get Large Map Control.

Returns
boolean Large Map Control

Definition at line 261 of file class.ilMapGUI.php.

Referenced by ilGoogleMapGUI\getHtml().

262  {
263  return $this->largemapcontrol;
264  }
+ Here is the caller graph for this function:

◆ getEnableNavigationControl()

ilMapGUI::getEnableNavigationControl ( )

Get Use Navigation Control.

Returns
boolean Use Navigation Control

Definition at line 219 of file class.ilMapGUI.php.

References $enablenavigationcontrol.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

220  {
222  }
$enablenavigationcontrol
+ Here is the caller graph for this function:

◆ getEnableTypeControl()

ilMapGUI::getEnableTypeControl ( )

Get Use Map Type Control.

Returns
boolean Use Map Type Control

Definition at line 198 of file class.ilMapGUI.php.

References $enabletypecontrol.

Referenced by ilGoogleMapGUI\getHtml().

199  {
201  }
+ Here is the caller graph for this function:

◆ getEnableUpdateListener()

ilMapGUI::getEnableUpdateListener ( )

Get Activate Update Listener.

Returns
boolean Activate Update Listener

Definition at line 240 of file class.ilMapGUI.php.

References $enableupdatelistener.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

241  {
243  }
+ Here is the caller graph for this function:

◆ getHeight()

ilMapGUI::getHeight ( )

Get Height.

Returns
string Height

Definition at line 114 of file class.ilMapGUI.php.

References $height.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

115  {
116  return $this->height;
117  }
+ Here is the caller graph for this function:

◆ getHtml()

ilMapGUI::getHtml ( )
abstract

Get HTML.

Referenced by addUserMarker().

+ Here is the caller graph for this function:

◆ getLatitude()

ilMapGUI::getLatitude ( )

Get Latitude.

Returns
string Latitude

Definition at line 135 of file class.ilMapGUI.php.

References $latitude.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

136  {
137  return $this->latitude;
138  }
+ Here is the caller graph for this function:

◆ getLongitude()

ilMapGUI::getLongitude ( )

Get Longitude.

Returns
string Longitude

Definition at line 156 of file class.ilMapGUI.php.

References $longitude.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

157  {
158  return $this->longitude;
159  }
+ Here is the caller graph for this function:

◆ getMapId()

ilMapGUI::getMapId ( )

Get Map ID.

Returns
string Map ID

Definition at line 72 of file class.ilMapGUI.php.

References $mapid.

Referenced by ilGoogleMapGUI\getHtml(), ilOpenLayersMapGUI\getHtml(), ilGoogleMapGUI\getUserListHtml(), and ilOpenLayersMapGUI\getUserListHtml().

73  {
74  return $this->mapid;
75  }
+ Here is the caller graph for this function:

◆ getUserListHtml()

ilMapGUI::getUserListHtml ( )
abstract

Get User List HTML (to be displayed besides the map)

Referenced by addUserMarker().

+ Here is the caller graph for this function:

◆ getWidth()

ilMapGUI::getWidth ( )

Get Width.

Returns
string Width

Definition at line 93 of file class.ilMapGUI.php.

References $width.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

94  {
95  return $this->width;
96  }
+ Here is the caller graph for this function:

◆ getZoom()

ilMapGUI::getZoom ( )

Get Zoom.

Returns
int Zoom

Definition at line 177 of file class.ilMapGUI.php.

References $zoom.

Referenced by ilGoogleMapGUI\getHtml(), and ilOpenLayersMapGUI\getHtml().

178  {
179  return $this->zoom;
180  }
+ Here is the caller graph for this function:

◆ setEnableCentralMarker()

ilMapGUI::setEnableCentralMarker (   $a_centralmarker)

Enable Central Marker.

Parameters
boolean$a_centralmarkerCentral Marker

Definition at line 271 of file class.ilMapGUI.php.

272  {
273  $this->centralmarker = $a_centralmarker;
274  return $this;
275  }

◆ setEnableLargeMapControl()

ilMapGUI::setEnableLargeMapControl (   $a_largemapcontrol)

Set Large Map Control.

Parameters
boolean$a_largemapcontrolLarge Map Control

Definition at line 250 of file class.ilMapGUI.php.

251  {
252  $this->largemapcontrol = $a_largemapcontrol;
253  return $this;
254  }

◆ setEnableNavigationControl()

ilMapGUI::setEnableNavigationControl (   $a_enablenavigationcontrol)

Set Use Navigation Control.

Parameters
boolean$a_enablenavigationcontrolUse Navigation Control

Definition at line 208 of file class.ilMapGUI.php.

209  {
210  $this->enablenavigationcontrol = $a_enablenavigationcontrol;
211  return $this;
212  }

◆ setEnableTypeControl()

ilMapGUI::setEnableTypeControl (   $a_enabletypecontrol)

Set Use Map Type Control.

Parameters
boolean$a_enabletypecontrolUse Map Type Control

Definition at line 187 of file class.ilMapGUI.php.

188  {
189  $this->enabletypecontrol = $a_enabletypecontrol;
190  return $this;
191  }

◆ setEnableUpdateListener()

ilMapGUI::setEnableUpdateListener (   $a_enableupdatelistener)

Set Activate Update Listener.

Parameters
boolean$a_enableupdatelistenerActivate Update Listener

Definition at line 229 of file class.ilMapGUI.php.

230  {
231  $this->enableupdatelistener = $a_enableupdatelistener;
232  return $this;
233  }

◆ setHeight()

ilMapGUI::setHeight (   $a_height)

Set Height.

Parameters
string$a_heightHeight

Definition at line 103 of file class.ilMapGUI.php.

104  {
105  $this->height = $a_height;
106  return $this;
107  }

◆ setLatitude()

ilMapGUI::setLatitude (   $a_latitude)

Set Latitude.

Parameters
string$a_latitudeLatitude

Definition at line 124 of file class.ilMapGUI.php.

125  {
126  $this->latitude = $a_latitude;
127  return $this;
128  }

◆ setLongitude()

ilMapGUI::setLongitude (   $a_longitude)

Set Longitude.

Parameters
string$a_longitudeLongitude

Definition at line 145 of file class.ilMapGUI.php.

146  {
147  $this->longitude = $a_longitude;
148  return $this;
149  }

◆ setMapId()

ilMapGUI::setMapId (   $a_mapid)

Set Map ID.

Parameters
string$a_mapidMap ID

Definition at line 61 of file class.ilMapGUI.php.

62  {
63  $this->mapid = $a_mapid;
64  return $this;
65  }

◆ setWidth()

ilMapGUI::setWidth (   $a_width)

Set Width.

Parameters
string$a_widthWidth

Definition at line 82 of file class.ilMapGUI.php.

83  {
84  $this->width = $a_width;
85  return $this;
86  }

◆ setZoom()

ilMapGUI::setZoom (   $a_zoom)

Set Zoom.

Parameters
int$a_zoomZoom

Definition at line 166 of file class.ilMapGUI.php.

167  {
168  $this->zoom = $a_zoom;
169  return $this;
170  }

Field Documentation

◆ $enablelargemapcontrol

ilMapGUI::$enablelargemapcontrol = false
protected

Definition at line 44 of file class.ilMapGUI.php.

◆ $enablenavigationcontrol

ilMapGUI::$enablenavigationcontrol = false
protected

Definition at line 43 of file class.ilMapGUI.php.

Referenced by getEnableNavigationControl().

◆ $enabletypecontrol

ilMapGUI::$enabletypecontrol = false
protected

Definition at line 41 of file class.ilMapGUI.php.

Referenced by getEnableTypeControl().

◆ $enableupdatelistener

ilMapGUI::$enableupdatelistener = false
protected

Definition at line 42 of file class.ilMapGUI.php.

Referenced by getEnableUpdateListener().

◆ $height

ilMapGUI::$height = "300px"
protected

Definition at line 37 of file class.ilMapGUI.php.

Referenced by getHeight().

◆ $latitude

ilMapGUI::$latitude
protected

Definition at line 38 of file class.ilMapGUI.php.

Referenced by getLatitude().

◆ $longitude

ilMapGUI::$longitude
protected

Definition at line 39 of file class.ilMapGUI.php.

Referenced by getLongitude().

◆ $mapid

ilMapGUI::$mapid
protected

Definition at line 35 of file class.ilMapGUI.php.

Referenced by getMapId().

◆ $user_marker

ilMapGUI::$user_marker = array()
protected

Definition at line 45 of file class.ilMapGUI.php.

◆ $width

ilMapGUI::$width = "500px"
protected

Definition at line 36 of file class.ilMapGUI.php.

Referenced by getWidth().

◆ $zoom

ilMapGUI::$zoom
protected

Definition at line 40 of file class.ilMapGUI.php.

Referenced by getZoom().


The documentation for this class was generated from the following file: