ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
ilMapGUI Class Reference

User interface class for maps. More...

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

Public Member Functions

 __construct ()
 
 setMapId (string $map_id)
 
 getMapId ()
 
 setWidth (string $width)
 
 getWidth ()
 
 setHeight (string $height)
 
 getHeight ()
 
 setLatitude (string $latitude)
 
 getLatitude ()
 
 setLongitude (string $longitude)
 
 getLongitude ()
 
 setZoom (?int $zoom)
 
 getZoom ()
 
 setEnableTypeControl (bool $enable_type_control)
 
 getEnableTypeControl ()
 
 setEnableNavigationControl (bool $enable_navigation_control)
 
 getEnableNavigationControl ()
 
 setEnableUpdateListener (bool $enable_update_listener)
 
 getEnableUpdateListener ()
 
 setEnableLargeMapControl (bool $large_map_control)
 
 getEnableLargeMapControl ()
 
 setEnableCentralMarker (bool $central_marker)
 
 getEnableCentralMarker ()
 
 addUserMarker (int $user_id)
 
 getHtml ()
 
 getUserListHtml ()
 Get User List HTML (to be displayed besides the map) More...
 

Protected Attributes

ilGlobalTemplateInterface $tpl
 
ilLanguage $lng
 
string $map_id
 
string $width
 
string $height
 
string $latitude
 
string $longitude
 
int $zoom
 
bool $enable_type_control
 
bool $enable_update_listener
 
bool $enable_navigation_control
 
array $user_marker
 
bool $large_map_control
 
bool $central_marker
 

Detailed Description

User interface class for maps.

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

Constructor & Destructor Documentation

◆ __construct()

ilMapGUI::__construct ( )

Reimplemented in ilGoogleMapGUI, and ilOpenLayersMapGUI.

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

29 {
30 global $DIC;
31 $this->lng = $DIC['lng'];
32 $this->tpl = $DIC['tpl'];
33
34 $this->lng->loadLanguageModule("maps");
35
36 $this->map_id = "";
37 $this->width = "500px";
38 $this->height = "300px";
39 $this->latitude = "";
40 $this->longitude = "";
41 $this->zoom = null;
42 $this->enable_type_control = false;
43 $this->enable_update_listener = false;
44 $this->enable_navigation_control = false;
45 $this->user_marker = [];
46 $this->large_map_control = false;
47 $this->central_marker = false;
48 }
global $DIC
Definition: feed.php:28

References $DIC, and ILIAS\Repository\lng().

+ Here is the call graph for this function:

Member Function Documentation

◆ addUserMarker()

ilMapGUI::addUserMarker ( int  $user_id)

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

171 : ilMapGUI
172 {
173 $this->user_marker[] = $user_id;
174 return $this;
175 }
User interface class for maps.

◆ getEnableCentralMarker()

ilMapGUI::getEnableCentralMarker ( )

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

166 : bool
167 {
169 }
bool $central_marker

References $central_marker.

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

+ Here is the caller graph for this function:

◆ getEnableLargeMapControl()

ilMapGUI::getEnableLargeMapControl ( )

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

155 : bool
156 {
158 }
bool $large_map_control

References $large_map_control.

Referenced by ilGoogleMapGUI\getHtml().

+ Here is the caller graph for this function:

◆ getEnableNavigationControl()

ilMapGUI::getEnableNavigationControl ( )

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

133 : bool
134 {
136 }
bool $enable_navigation_control

References $enable_navigation_control.

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

+ Here is the caller graph for this function:

◆ getEnableTypeControl()

ilMapGUI::getEnableTypeControl ( )

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

122 : bool
123 {
125 }
bool $enable_type_control

References $enable_type_control.

Referenced by ilGoogleMapGUI\getHtml().

+ Here is the caller graph for this function:

◆ getEnableUpdateListener()

ilMapGUI::getEnableUpdateListener ( )

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

144 : bool
145 {
147 }
bool $enable_update_listener

References $enable_update_listener.

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

+ Here is the caller graph for this function:

◆ getHeight()

ilMapGUI::getHeight ( )

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

78 : string
79 {
80 return $this->height;
81 }
string $height

References $height.

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

+ Here is the caller graph for this function:

◆ getHtml()

ilMapGUI::getHtml ( )
abstract

Reimplemented in ilGoogleMapGUI.

◆ getLatitude()

ilMapGUI::getLatitude ( )

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

89 : string
90 {
91 return $this->latitude;
92 }
string $latitude

References $latitude.

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

+ Here is the caller graph for this function:

◆ getLongitude()

ilMapGUI::getLongitude ( )

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

100 : string
101 {
102 return $this->longitude;
103 }
string $longitude

References $longitude.

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

+ Here is the caller graph for this function:

◆ getMapId()

ilMapGUI::getMapId ( )

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

56 : string
57 {
58 return $this->map_id;
59 }
string $map_id

References $map_id.

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

+ Here is the caller graph for this function:

◆ getUserListHtml()

ilMapGUI::getUserListHtml ( )
abstract

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

Reimplemented in ilGoogleMapGUI, and ilOpenLayersMapGUI.

◆ getWidth()

ilMapGUI::getWidth ( )

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

67 : string
68 {
69 return $this->width;
70 }
string $width

References $width.

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

+ Here is the caller graph for this function:

◆ getZoom()

ilMapGUI::getZoom ( )

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

111 : ?int
112 {
113 return $this->zoom;
114 }

References $zoom.

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

+ Here is the caller graph for this function:

◆ setEnableCentralMarker()

ilMapGUI::setEnableCentralMarker ( bool  $central_marker)

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

160 : ilMapGUI
161 {
162 $this->central_marker = $central_marker;
163 return $this;
164 }

References $central_marker.

◆ setEnableLargeMapControl()

ilMapGUI::setEnableLargeMapControl ( bool  $large_map_control)

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

149 : ilMapGUI
150 {
151 $this->large_map_control = $large_map_control;
152 return $this;
153 }

References $large_map_control.

◆ setEnableNavigationControl()

ilMapGUI::setEnableNavigationControl ( bool  $enable_navigation_control)

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

127 : ilMapGUI
128 {
129 $this->enable_navigation_control = $enable_navigation_control;
130 return $this;
131 }

References $enable_navigation_control.

◆ setEnableTypeControl()

ilMapGUI::setEnableTypeControl ( bool  $enable_type_control)

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

116 : ilMapGUI
117 {
118 $this->enable_type_control = $enable_type_control;
119 return $this;
120 }

References $enable_type_control.

◆ setEnableUpdateListener()

ilMapGUI::setEnableUpdateListener ( bool  $enable_update_listener)

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

138 : ilMapGUI
139 {
140 $this->enable_update_listener = $enable_update_listener;
141 return $this;
142 }

References $enable_update_listener.

◆ setHeight()

ilMapGUI::setHeight ( string  $height)

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

72 : ilMapGUI
73 {
74 $this->height = $height;
75 return $this;
76 }

References $height.

◆ setLatitude()

ilMapGUI::setLatitude ( string  $latitude)

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

83 : ilMapGUI
84 {
85 $this->latitude = $latitude;
86 return $this;
87 }

References $latitude.

◆ setLongitude()

ilMapGUI::setLongitude ( string  $longitude)

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

94 : ilMapGUI
95 {
96 $this->longitude = $longitude;
97 return $this;
98 }

References $longitude.

◆ setMapId()

ilMapGUI::setMapId ( string  $map_id)

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

50 : ilMapGUI
51 {
52 $this->map_id = $map_id;
53 return $this;
54 }

References $map_id.

◆ setWidth()

ilMapGUI::setWidth ( string  $width)

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

61 : ilMapGUI
62 {
63 $this->width = $width;
64 return $this;
65 }

References $width.

◆ setZoom()

ilMapGUI::setZoom ( ?int  $zoom)

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

105 : ilMapGUI
106 {
107 $this->zoom = $zoom;
108 return $this;
109 }

References $zoom.

Field Documentation

◆ $central_marker

bool ilMapGUI::$central_marker
protected

◆ $enable_navigation_control

bool ilMapGUI::$enable_navigation_control
protected

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

Referenced by getEnableNavigationControl(), and setEnableNavigationControl().

◆ $enable_type_control

bool ilMapGUI::$enable_type_control
protected

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

Referenced by getEnableTypeControl(), and setEnableTypeControl().

◆ $enable_update_listener

bool ilMapGUI::$enable_update_listener
protected

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

Referenced by getEnableUpdateListener(), and setEnableUpdateListener().

◆ $height

string ilMapGUI::$height
protected

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

Referenced by getHeight(), and setHeight().

◆ $large_map_control

bool ilMapGUI::$large_map_control
protected

◆ $latitude

string ilMapGUI::$latitude
protected

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

Referenced by getLatitude(), and setLatitude().

◆ $lng

ilLanguage ilMapGUI::$lng
protected

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

◆ $longitude

string ilMapGUI::$longitude
protected

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

Referenced by getLongitude(), and setLongitude().

◆ $map_id

string ilMapGUI::$map_id
protected

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

Referenced by getMapId(), and setMapId().

◆ $tpl

ilGlobalTemplateInterface ilMapGUI::$tpl
protected

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

◆ $user_marker

array ilMapGUI::$user_marker
protected

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

◆ $width

string ilMapGUI::$width
protected

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

Referenced by getWidth(), and setWidth().

◆ $zoom

int ilMapGUI::$zoom
protected

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

Referenced by getZoom(), and setZoom().


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