56 $this->latitude = $a_latitude;
76 $this->longitude = $a_longitude;
96 $this->zoom = $a_zoom;
137 $this->
setAlert($lng->txt(
"msg_input_is_required"));
152 $lng->loadLanguageModule(
"gmaps");
153 $a_tpl->setCurrentBlock(
"prop_location");
154 $a_tpl->setVariable(
"POST_VAR", $this->
getPostVar());
155 $a_tpl->setVariable(
"TXT_ZOOM", $lng->txt(
"gmaps_zoom_level"));
156 $a_tpl->setVariable(
"LOC_DESCRIPTION", $lng->txt(
"gmaps_std_location_desc"));
164 $a_tpl->setVariable(
"PROPERTY_VALUE_LAT", $lat);
165 $a_tpl->setVariable(
"PROPERTY_VALUE_LONG", $long);
166 for($i = 0; $i <= 18; $i++)
170 $a_tpl->setVariable(
"ZOOM_SELECT",
172 $levels,
false,
true, 0,
"", array(
"id" =>
"map_".$this->
getPostVar().
"_zoom",
173 "onchange" =>
"ilUpdateMap('".
"map_".$this->
getPostVar().
"');")));
174 $a_tpl->setVariable(
"MAP_ID",
"map_".$this->
getPostVar());
176 include_once(
"./Services/GoogleMaps/classes/class.ilGoogleMapGUI.php");
178 $map_gui->setMapId(
"map_".$this->
getPostVar());
179 $map_gui->setLatitude($lat);
180 $map_gui->setLongitude($long);
181 $map_gui->setZoom($this->
getZoom());
182 $map_gui->setEnableTypeControl(
true);
183 $map_gui->setEnableLargeMapControl(
true);
184 $map_gui->setEnableUpdateListener(
true);
185 $map_gui->setEnableCentralMarker(
true);
187 $a_tpl->setVariable(
"MAP", $map_gui->getHtml());
189 $a_tpl->parseCurrentBlock();