Ignore:
Timestamp:
Oct 20, 2010, 10:49:29 PM (14 years ago)
Author:
grum
Message:

fix bug and implement new features
bug:1926, bug:1927, bug:1929, bug:1930, bug:1931, bug:1939, bug:1946

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GMaps/gmaps_root.class.inc.php

    r7177 r7308  
    1818  class GMaps_root extends CommonPlugin
    1919  {
     20    const KML_DIRECTORY='/local/plugins/GMaps/kml/';
    2021    protected $css;
    2122    protected $maps=array();
     
    121122      //global $user;
    122123      $this->config=array(
     124        'popupAutomaticSize' => 0.8
    123125      );
    124126    }
     
    214216              pgmm.width, pgmm.height, pgmm.zoomLevel,
    215217              pgmm.mapType, pgmm.mapTypeControl, pgmm.scaleControl, pgmm.streetViewControl,
    216               pgmm.navigationControl, pgmm.style,
     218              pgmm.navigationControl, pgmm.style, pgmm.zoomLevelMaxActivated,
    217219              IF(pgcm.categoryId=0, 0, pct.global_rank) AS priorityRank
    218220            FROM ((".$this->tables['category_maps']." pgcm
     
    245247        {
    246248          // if an kml file id is given, apply the url of the file (needs to give the complete URI for google)
    247           if($row['kmlFileId']>0 and $row['kmlFileUrlId']!='') $row['kmlFileUrl']=dirname($_SERVER['SCRIPT_URI']).'/plugins/GMaps/kml/'.$row['kmlFileUrlId'];
     249          if($row['kmlFileId']>0 and $row['kmlFileUrlId']!='') $row['kmlFileUrl']=dirname($_SERVER['SCRIPT_URI']).self::KML_DIRECTORY.$row['kmlFileUrlId'];
    248250
    249251          if($row['displayType']!='MP')
Note: See TracChangeset for help on using the changeset viewer.