This commit is contained in:
bastianonm 2012-01-03 23:02:35 +00:00
parent 135b7d254c
commit 8a4a510722
4 changed files with 9 additions and 10 deletions

View File

@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=basti
Tags: maps, gpx, gps, graph, google maps, google chart, track, garmin Tags: maps, gpx, gps, graph, google maps, google chart, track, garmin
Requires at least: 2.0.0 Requires at least: 2.0.0
Tested up to: 3.3 Tested up to: 3.3
Stable tag: 1.1.0 Stable tag: 1.1.1
License: GPLv2 or later License: GPLv2 or later
Draws a gpx track with altitude graph Draws a gpx track with altitude graph
@ -72,6 +72,8 @@ Yes!
2. Admin area 2. Admin area
== Changelog == == Changelog ==
= 1.1.1 =
* minor bug fixes
= 1.1.0 = = 1.1.0 =
* Added Advanced Setting in the Admin Area * Added Advanced Setting in the Admin Area
* Added the shortcode for every entry in the admin area (easy to copy and paste in your posts) * Added the shortcode for every entry in the admin area (easy to copy and paste in your posts)
@ -102,6 +104,7 @@ Yes!
* Initial release. * Initial release.
== Upgrade Notice == == Upgrade Notice ==
= 1.1.1 =
= 1.1.0 = = 1.1.0 =
= 1.0.9 = = 1.0.9 =
= 1.0.8 = = 1.0.8 =

View File

@ -3,7 +3,7 @@
Plugin Name: WP-GPX-Maps Plugin Name: WP-GPX-Maps
Plugin URI: http://www.darwinner.it/ Plugin URI: http://www.darwinner.it/
Description: Draws a gpx track with altitude graph Description: Draws a gpx track with altitude graph
Version: 1.1.0 Version: 1.1.1
Author: Bastianon Massimo Author: Bastianon Massimo
Author URI: http://www.pedemontanadelgrappa.it/ Author URI: http://www.pedemontanadelgrappa.it/
License: GPL License: GPL

View File

@ -23,7 +23,6 @@
// reduce the points to around 200 to speedup // reduce the points to around 200 to speedup
if ( $donotreducegpx != true) if ( $donotreducegpx != true)
{ {
$count=sizeof($points); $count=sizeof($points);
if ($count>200) if ($count>200)
{ {
@ -34,9 +33,6 @@
unset($points[$i]); unset($points[$i]);
} }
} }
return $points; return $points;
} }
@ -80,8 +76,6 @@
} }
else else
{ {
echo "j";
//Smoller Offset -> continue.. //Smoller Offset -> continue..
$lastOffset= (float) $lastOffset + (float) $offset ; $lastOffset= (float) $lastOffset + (float) $offset ;
} }

View File

@ -41,12 +41,14 @@ function WP_GPX_Maps_html_page() {
</div>'; </div>';
} }
} }
$po = get_option('wpgpxmaps_pointsoffset');
$showW = get_option("wpgpxmaps_show_waypoint"); $showW = get_option("wpgpxmaps_show_waypoint");
$donotreducegpx = get_option("wpgpxmaps_donotreducegpx"); $donotreducegpx = get_option("wpgpxmaps_donotreducegpx");
$t = get_option('wpgpxmaps_map_type'); $t = get_option('wpgpxmaps_map_type');
if (!($t)) if (!($t))
$t = 'HYBRID'; $t = 'HYBRID';
if (!($po))
$po = 10;
?> ?>
@ -87,7 +89,7 @@ function WP_GPX_Maps_html_page() {
<td> <td>
<br /> <br />
<b>Do not edit if you don't know what you are doing!</b><br /> <b>Do not edit if you don't know what you are doing!</b><br />
<i>Skip points closer than </i> <input name="wpgpxmaps_pointsoffset" type="text" id="wpgpxmaps_pointsoffset" value="<?php echo get_option('wpgpxmaps_pointsoffset'); ?>" style="width:50px;" /><i>meters</i>. <i>Skip points closer than </i> <input name="wpgpxmaps_pointsoffset" type="text" id="wpgpxmaps_pointsoffset" value="<?php echo $po ?>" style="width:50px;" /><i>meters</i>.
<input name="wpgpxmaps_donotreducegpx" type="checkbox" value="true" <?php if($donotreducegpx == true){echo('checked');} ?> onchange="this.value = (this.checked)" /><i>Do not reduce gpx</i>. <input name="wpgpxmaps_donotreducegpx" type="checkbox" value="true" <?php if($donotreducegpx == true){echo('checked');} ?> onchange="this.value = (this.checked)" /><i>Do not reduce gpx</i>.
</td> </td>
</tr> </tr>