57 $this->latitude = $a_latitude;
77 $this->longitude = $a_longitude;
97 $this->zoom = $a_zoom;
117 $this->address = $a_address;
158 $this->
setAlert($lng->txt(
"msg_input_is_required"));
173 $lng->loadLanguageModule(
"maps");
174 $tpl =
new ilTemplate(
"tpl.prop_location.html",
true,
true,
"Services/Form");
176 $tpl->setVariable(
"TXT_ZOOM", $lng->txt(
"maps_zoom_level"));
177 $tpl->setVariable(
"TXT_LATITUDE", $lng->txt(
"maps_latitude"));
178 $tpl->setVariable(
"TXT_LONGITUDE", $lng->txt(
"maps_longitude"));
179 $tpl->setVariable(
"TXT_ADDR", $lng->txt(
"address"));
180 $tpl->setVariable(
"LOC_DESCRIPTION", $lng->txt(
"maps_std_location_desc"));
188 $tpl->setVariable(
"PROPERTY_VALUE_LAT", $lat);
189 $tpl->setVariable(
"PROPERTY_VALUE_LONG", $long);
190 for($i = 0; $i <= 18; $i++)
194 $tpl->setVariable(
"ZOOM_SELECT",
196 $levels,
false,
true, 0,
"", array(
"id" =>
"map_".$this->
getPostVar().
"_zoom",
197 "onchange" =>
"ilUpdateMap('".
"map_".$this->
getPostVar().
"');")));
200 $tpl->setVariable(
"TXT_LOOKUP", $lng->txt(
"maps_lookup_address"));
203 include_once(
"./Services/Maps/classes/class.ilMapUtil.php");
205 $map_gui->setMapId(
"map_".$this->
getPostVar())
207 ->setLongitude($long)
209 ->setEnableTypeControl(
true)
210 ->setEnableLargeMapControl(
true)
211 ->setEnableUpdateListener(
true)
212 ->setEnableCentralMarker(
true);
214 $tpl->setVariable(
"MAP", $map_gui->getHtml());
216 $a_tpl->setCurrentBlock(
"prop_generic");
217 $a_tpl->setVariable(
"PROP_GENERIC",
$tpl->get());
218 $a_tpl->parseCurrentBlock();