Ignore:
Timestamp:
Nov 10, 2019, 11:32:13 PM (5 years ago)
Author:
chronos
Message:
  • Modified: Used embedded OpenStreetMaps as google maps v2 API is deprecated and v3 needs billing information.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/IS/IS.php

    r849 r864  
    456456        } else $TabContent .= $this->ShowList($TypeItem['Table'], '`'.
    457457          $TypeItem['Ref'].'`='.$Id, $Item['Caption'],
    458           $TypeItem['Ref'], $Id).'<br/>';       
     458          $TypeItem['Ref'], $Id).'<br/>';
    459459      }
    460460      $I++;
     
    682682    if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Write'))
    683683      return('Nemáte oprávnění');
    684     $MapApi = new MapApiGoogle($this->System);
    685     $MapApi->Position = array('Lat' => $this->System->Config['Map']['DefaultLatitude'],
     684    $Map = new MapOpenStreetMaps($this->System);
     685    $Map->Position = array('Lat' => $this->System->Config['Map']['DefaultLatitude'],
    686686      'Lng' => $this->System->Config['Map']['DefaultLongitude']);
    687     $MapApi->Zoom = $this->System->Config['Map']['DefaultZoom'];
    688     $MapApi->Key = $this->System->Config['Map']['GoogleMapsApiKey'];
    689     $MapApi->OnClickObject = $_GET['r'];
     687    $Map->Zoom = $this->System->Config['Map']['DefaultZoom'];
     688    $Map->Key = $this->System->Config['Map']['GoogleMapsApiKey'];
     689    $Map->OnClickObject = $_GET['r'];
    690690    //$MapApi->ShowMarker = true;
    691     $Output = $MapApi->ShowPage($this);
     691    $Output = $Map->ShowPage($this);
    692692    return($Output);
    693693  }
Note: See TracChangeset for help on using the changeset viewer.