ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.ilMapGUI.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2006 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
33 abstract class ilMapGUI
34 {
35  protected $mapid; // string
36  protected $width = "500px"; // string
37  protected $height = "300px"; // string
38  protected $latitude; // string
39  protected $longitude;
40  protected $zoom;
41  protected $enabletypecontrol = false;
42  protected $enableupdatelistener = false;
43  protected $enablenavigationcontrol = false;
44  protected $enablelargemapcontrol = false;
45  protected $user_marker = array();
46 
47  public function __construct()
48  {
49  global $DIC;
50  $lng = $DIC['lng'];
51  $tpl = $DIC['tpl'];
52 
53  $lng->loadLanguageModule("maps");
54  }
55 
61  public function setMapId($a_mapid)
62  {
63  $this->mapid = $a_mapid;
64  return $this;
65  }
66 
72  public function getMapId()
73  {
74  return $this->mapid;
75  }
76 
82  public function setWidth($a_width)
83  {
84  $this->width = $a_width;
85  return $this;
86  }
87 
93  public function getWidth()
94  {
95  return $this->width;
96  }
97 
103  public function setHeight($a_height)
104  {
105  $this->height = $a_height;
106  return $this;
107  }
108 
114  public function getHeight()
115  {
116  return $this->height;
117  }
118 
124  public function setLatitude($a_latitude)
125  {
126  $this->latitude = $a_latitude;
127  return $this;
128  }
129 
135  public function getLatitude()
136  {
137  return $this->latitude;
138  }
139 
145  public function setLongitude($a_longitude)
146  {
147  $this->longitude = $a_longitude;
148  return $this;
149  }
150 
156  public function getLongitude()
157  {
158  return $this->longitude;
159  }
160 
166  public function setZoom($a_zoom)
167  {
168  $this->zoom = $a_zoom;
169  return $this;
170  }
171 
177  public function getZoom()
178  {
179  return $this->zoom;
180  }
181 
187  public function setEnableTypeControl($a_enabletypecontrol)
188  {
189  $this->enabletypecontrol = $a_enabletypecontrol;
190  return $this;
191  }
192 
198  public function getEnableTypeControl()
199  {
201  }
202 
208  public function setEnableNavigationControl($a_enablenavigationcontrol)
209  {
210  $this->enablenavigationcontrol = $a_enablenavigationcontrol;
211  return $this;
212  }
213 
219  public function getEnableNavigationControl()
220  {
222  }
223 
229  public function setEnableUpdateListener($a_enableupdatelistener)
230  {
231  $this->enableupdatelistener = $a_enableupdatelistener;
232  return $this;
233  }
234 
240  public function getEnableUpdateListener()
241  {
243  }
244 
250  public function setEnableLargeMapControl($a_largemapcontrol)
251  {
252  $this->largemapcontrol = $a_largemapcontrol;
253  return $this;
254  }
255 
261  public function getEnableLargeMapControl()
262  {
263  return $this->largemapcontrol;
264  }
265 
271  public function setEnableCentralMarker($a_centralmarker)
272  {
273  $this->centralmarker = $a_centralmarker;
274  return $this;
275  }
276 
282  public function getEnableCentralMarker()
283  {
284  return $this->centralmarker;
285  }
286 
292  public function addUserMarker($a_user_id)
293  {
294  return $this->user_marker[] = $a_user_id;
295  }
296 
300  abstract public function getHtml();
301 
305  abstract public function getUserListHtml();
306 }
getLatitude()
Get Latitude.
getZoom()
Get Zoom.
global $DIC
Definition: saml.php:7
setEnableCentralMarker($a_centralmarker)
Enable Central Marker.
$tpl
Definition: ilias.php:10
getMapId()
Get Map ID.
getUserListHtml()
Get User List HTML (to be displayed besides the map)
setEnableLargeMapControl($a_largemapcontrol)
Set Large Map Control.
getEnableCentralMarker()
Get Enable Central Marker.
addUserMarker($a_user_id)
Add user marker.
getEnableUpdateListener()
Get Activate Update Listener.
getWidth()
Get Width.
getEnableLargeMapControl()
Get Large Map Control.
getEnableNavigationControl()
Get Use Navigation Control.
setLatitude($a_latitude)
Set Latitude.
setMapId($a_mapid)
Set Map ID.
setEnableTypeControl($a_enabletypecontrol)
Set Use Map Type Control.
setZoom($a_zoom)
Set Zoom.
getHtml()
Get HTML.
getHeight()
Get Height.
$enablenavigationcontrol
setEnableNavigationControl($a_enablenavigationcontrol)
Set Use Navigation Control.
Create styles array
The data for the language used.
setEnableUpdateListener($a_enableupdatelistener)
Set Activate Update Listener.
getEnableTypeControl()
Get Use Map Type Control.
setHeight($a_height)
Set Height.
getLongitude()
Get Longitude.
global $lng
Definition: privfeed.php:17
User interface class for maps.
setLongitude($a_longitude)
Set Longitude.
setWidth($a_width)
Set Width.