New google maps display fix

This commit is contained in:
bastianonm 2015-09-19 13:25:29 +00:00
parent 605750ba90
commit 798d58d9c2
2 changed files with 17 additions and 7 deletions

View File

@ -4,8 +4,8 @@ Contributors: bastianonm, Stephan Klein
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8VHWLRW6JBTML
Tags: maps, gpx, gps, graph, chart, google maps, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence
Requires at least: 2.0.0
Tested up to: 4.2.2
Stable tag: 1.3.7
Tested up to: 4.3.1
Stable tag: 1.3.8
Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map.
@ -195,6 +195,8 @@ Yes!
1. Altitude & Speed & Hearth rate
== Changelog ==
= 1.3.8 =
* Improved Google Maps visualization
= 1.3.7 =
* NextGen Gallery's Attachment support. Thanks to Stephan Klein (https://klein-gedruckt.de/2015/03/wordpress-plugin-wp-gpx-maps/)
= 1.3.6 =

View File

@ -3,7 +3,7 @@
Plugin Name: WP-GPX-Maps
Plugin URI: http://www.devfarm.it/
Description: Draws a GPX track with altitude chart
Version: 1.3.7
Version: 1.3.8
Author: Bastianon Massimo
Author URI: http://www.pedemontanadelgrappa.it/
*/
@ -67,20 +67,28 @@ function print_WP_GPX_Maps_styles()
.wpgpxmaps_summary .summarylabel { }
.wpgpxmaps_summary .summaryvalue { font-weight: bold; }
.wpgpxmaps .report { line-height:120%; }
.wpgpxmaps .gmnoprint div:first-child { height: 20px; }
.wpgpxmaps .gmnoprint div:first-child { }
.wpgpxmaps .wpgpxmaps_osm_footer {
position: absolute;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 25px;
height: 13px;
margin: 0;
padding: 6px;
z-index: 999;
background: WHITE;
font-size: 12px;
}
.wpgpxmaps .wpgpxmaps_osm_footer span {
background: WHITE;
padding: 0 6px 6px 6px;
vertical-align: baseline;
position: absolute;
bottom: 0;
}
</style>
<?php
}
@ -614,7 +622,7 @@ function handle_WP_GPX_Maps_Shortcodes($attr, $content='')
<div id="wpgpxmaps_'.$r.'" class="wpgpxmaps">
<div id="map_'.$r.'_cont" style="width:'.$w.'; height:'.$mh.';position:relative" >
<div id="map_'.$r.'" style="width:'.$w.'; height:'.$mh.'"></div>
<div id="wpgpxmaps_'.$r.'_osm_footer" class="wpgpxmaps_osm_footer" style="display:none;">&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors</div>
<div id="wpgpxmaps_'.$r.'_osm_footer" class="wpgpxmaps_osm_footer" style="display:none;"><span> &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors</span></div>
</div>
<div id="hchart_'.$r.'" class="plot" style="width:'.$w.'; height:'.$gh.'"></div>
<div id="ngimages_'.$r.'" class="ngimages" style="display:none">'.$ngimgs_data.'</div>