diff options
| author | Brian Holland <windmillway2@gmail.com> | 2011-02-23 22:14:51 +0000 |
|---|---|---|
| committer | Brian Holland <windmillway2@gmail.com> | 2011-02-23 22:14:51 +0000 |
| commit | 767ce7c30ab9fec6e3a0bbe5108b3160b1ebdf27 (patch) | |
| tree | 093c6afbdf8dffae6f4ef7bd49407724950c3824 | |
| parent | 0c20dbb3b460ccbec8852eaea180763fee58b0d1 (diff) | |
| download | webtrees-767ce7c30ab9fec6e3a0bbe5108b3160b1ebdf27.tar.gz webtrees-767ce7c30ab9fec6e3a0bbe5108b3160b1ebdf27.tar.bz2 webtrees-767ce7c30ab9fec6e3a0bbe5108b3160b1ebdf27.zip | |
Minor Adjustment for Style when Google Street View is enabled
| -rw-r--r-- | modules/googlemap/placehierarchy.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/googlemap/placehierarchy.php b/modules/googlemap/placehierarchy.php index 92cd76e824..ddd65f1af1 100644 --- a/modules/googlemap/placehierarchy.php +++ b/modules/googlemap/placehierarchy.php @@ -157,8 +157,11 @@ function create_map() { WT_DB::prepare("SELECT pl_place, pl_id, pl_lati, pl_long, pl_zoom, sv_long, sv_lati, sv_bearing, sv_elevation, sv_zoom FROM `##placelocation` WHERE pl_id=?") ->execute(array($levelm)) ->fetch(PDO::FETCH_ASSOC); - - echo '<div id="place_map" style="border: 1px solid gray; width: ', $GOOGLEMAP_PH_XSIZE, 'px; height: ', $GOOGLEMAP_PH_YSIZE, 'px; '; + if ($STREETVIEW && $level!=0 ) { + echo '<div id="place_map" style=" margin-top: 20px; border:1px solid gray; width: ', $GOOGLEMAP_PH_XSIZE, 'px; height: ', $GOOGLEMAP_PH_YSIZE, 'px;" '; + } else { + echo '<div id="place_map" style="border:1px solid gray; width: ', $GOOGLEMAP_PH_XSIZE, 'px; height: ', $GOOGLEMAP_PH_YSIZE, 'px;" '; + } echo "background-image: url('images/loading.gif'); background-position: center; background-repeat: no-repeat; overflow: hidden;\"></div>"; echo '<script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>'; echo '</td>'; |
