diff --git a/readme.txt b/readme.txt index 63f8a52..bdace11 100644 --- a/readme.txt +++ b/readme.txt @@ -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 Requires at least: 2.0.0 Tested up to: 3.3 -Stable tag: 1.1.0 +Stable tag: 1.1.1 License: GPLv2 or later Draws a gpx track with altitude graph @@ -72,6 +72,8 @@ Yes! 2. Admin area == Changelog == += 1.1.1 = +* minor bug fixes = 1.1.0 = * 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) @@ -102,6 +104,7 @@ Yes! * Initial release. == Upgrade Notice == += 1.1.1 = = 1.1.0 = = 1.0.9 = = 1.0.8 = diff --git a/wp-gpx-maps.php b/wp-gpx-maps.php index e79052b..be9fdee 100644 --- a/wp-gpx-maps.php +++ b/wp-gpx-maps.php @@ -3,7 +3,7 @@ Plugin Name: WP-GPX-Maps Plugin URI: http://www.darwinner.it/ Description: Draws a gpx track with altitude graph -Version: 1.1.0 +Version: 1.1.1 Author: Bastianon Massimo Author URI: http://www.pedemontanadelgrappa.it/ License: GPL diff --git a/wp-gpx-maps_Utils.php b/wp-gpx-maps_Utils.php index 165d1a0..3600ff5 100644 --- a/wp-gpx-maps_Utils.php +++ b/wp-gpx-maps_Utils.php @@ -23,7 +23,6 @@ // reduce the points to around 200 to speedup if ( $donotreducegpx != true) { - $count=sizeof($points); if ($count>200) { @@ -34,9 +33,6 @@ unset($points[$i]); } } - - - return $points; } @@ -80,8 +76,6 @@ } else { - echo "j"; - //Smoller Offset -> continue.. $lastOffset= (float) $lastOffset + (float) $offset ; } diff --git a/wp-gpx-maps_admin.php b/wp-gpx-maps_admin.php index da699b5..82a8e9e 100644 --- a/wp-gpx-maps_admin.php +++ b/wp-gpx-maps_admin.php @@ -41,12 +41,14 @@ function WP_GPX_Maps_html_page() { '; } } - + $po = get_option('wpgpxmaps_pointsoffset'); $showW = get_option("wpgpxmaps_show_waypoint"); $donotreducegpx = get_option("wpgpxmaps_donotreducegpx"); $t = get_option('wpgpxmaps_map_type'); if (!($t)) $t = 'HYBRID'; + if (!($po)) + $po = 10; ?> @@ -87,7 +89,7 @@ function WP_GPX_Maps_html_page() {
Do not edit if you don't know what you are doing!
- Skip points closer than meters. + Skip points closer than meters. onchange="this.value = (this.checked)" />Do not reduce gpx.