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(
"gmaps");
 
  174                 $tpl = 
new ilTemplate(
"tpl.prop_location.html", 
true, 
true, 
"Services/Form");
 
  176                 $tpl->setVariable(
"TXT_ZOOM", $lng->txt(
"gmaps_zoom_level"));
 
  177                 $tpl->setVariable(
"TXT_LATITUDE", $lng->txt(
"gmaps_latitude"));
 
  178                 $tpl->setVariable(
"TXT_LONGITUDE", $lng->txt(
"gmaps_longitude"));
 
  179                 $tpl->setVariable(
"TXT_ADDR", $lng->txt(
"address"));
 
  180                 $tpl->setVariable(
"LOC_DESCRIPTION", $lng->txt(
"gmaps_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(
"gmaps_lookup_address"));
 
  203                 include_once(
"./Services/GoogleMaps/classes/class.ilGoogleMapGUI.php");
 
  205                 $map_gui->setMapId(
"map_".$this->
getPostVar());
 
  206                 $map_gui->setLatitude($lat);
 
  207                 $map_gui->setLongitude($long);
 
  208                 $map_gui->setZoom($this->
getZoom());
 
  209                 $map_gui->setEnableTypeControl(
true);
 
  210                 $map_gui->setEnableLargeMapControl(
true);
 
  211                 $map_gui->setEnableUpdateListener(
true);
 
  212                 $map_gui->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();