Changeset 10551 for extensions/GMaps/gmaps_pip.class.inc.php
- Timestamp:
- Apr 21, 2011, 11:16:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/GMaps/gmaps_pip.class.inc.php
r7616 r10551 126 126 } 127 127 128 GPCCore::addHeaderJS("jquery", "themes/default/js/jquery. packed.js");128 GPCCore::addHeaderJS("jquery", "themes/default/js/jquery.min.js"); 129 129 GPCCore::addHeaderJS("maps.google.com/api", "http://maps.google.com/maps/api/js?sensor=false"); 130 GPCCore::addHeaderJS("gmaps.markup", "plugins/GMaps/js/gmapsMarkup .packed.js");130 GPCCore::addHeaderJS("gmaps.markup", "plugins/GMaps/js/gmapsMarkup".GPCCore::getMinified().".js", array('jquery')); 131 131 132 132 $desc = preg_replace( … … 156 156 while($row=pwg_db_fetch_assoc($result)) 157 157 { 158 $mapParam['kmlUrl']= dirname($_SERVER['SCRIPT_URI']).self::KML_DIRECTORY.$row['file'];158 $mapParam['kmlUrl']=$_SERVER['SCRIPT_URI'].PWG_LOCAL_DIR.self::KML_DIRECTORY.$row['file']; 159 159 } 160 160 } … … 192 192 geolocated:".($nb>0?'true':'false').", 193 193 kmlZoom:".($mapParam['kmlZoom']=='y'?'true':'false').", 194 allowBubble:".($mapParam['allowBubble']=='y'?'true':'false')." ,194 allowBubble:".($mapParam['allowBubble']=='y'?'true':'false')." 195 195 } 196 196 "; … … 204 204 categoryId:".$page['category']['id'].", 205 205 maps: 206 [".implode(',', $scripts)."] ,206 [".implode(',', $scripts)."] 207 207 }; 208 208 </script>", false); … … 263 263 markers:[], 264 264 fitToBounds:true, 265 zoomLevelMaxActivated:".($map['zoomLevelMaxActivated']=='y'?'true':'false')." ,265 zoomLevelMaxActivated:".($map['zoomLevelMaxActivated']=='y'?'true':'false')." 266 266 }"; 267 267 … … 310 310 maps: 311 311 [".implode(',', $scripts)."], 312 popupAutomaticSize:".$this->config['popupAutomaticSize']." ,312 popupAutomaticSize:".$this->config['popupAutomaticSize']." 313 313 }; 314 314 </script>", false); … … 496 496 { 497 497 latitude:'".$this->picture['coords']['lat']."', 498 longitude:'".$this->picture['coords']['lng']."' ,498 longitude:'".$this->picture['coords']['lng']."' 499 499 }, 500 500 maps:
Note: See TracChangeset
for help on using the changeset viewer.