Changeset 4 for trunk/Modules/Map/Map.php
- Timestamp:
- Sep 8, 2016, 11:14:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Map/Map.php
r1 r4 142 142 array_shift($WayPoints); 143 143 array_pop($WayPoints); 144 if(count($WayPoints) > 0) 145 $WaypointsQuery = '&waypoints='.implode('|', $WayPoints); 146 else $WaypointsQuery = ''; 144 147 145 148 $Output = '<iframe width="'.$this->Width.'" height="'.$this->Height.'" frameborder="0" scrolling="no" '. 146 149 'marginheight="0" marginwidth="0" src="'.'https://www.google.com/maps/embed/v1/directions'. 147 '?key='.$this->Key.'&origin='.$this->Path[0]. '&waypoints='.implode('|', $WayPoints).150 '?key='.$this->Key.'&origin='.$this->Path[0].$WaypointsQuery. 148 151 '&destination='.$this->Path[count($this->Path) - 1].''. 149 152 '" style="border: 1px solid black"></iframe>';
Note:
See TracChangeset
for help on using the changeset viewer.