From cd3c27d503ae7442206c1b10abd4f882e649342f Mon Sep 17 00:00:00 2001 From: bastianonm Date: Sat, 28 Jan 2012 12:04:33 +0000 Subject: [PATCH] --- readme.txt | 4 ++-- wp-gpx-maps_Utils.php | 2 +- wp-gpx-maps_admin.php | 4 ++-- wp-gpx-maps_admin_settings.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/readme.txt b/readme.txt index 0e1c409..d11cf11 100644 --- a/readme.txt +++ b/readme.txt @@ -56,9 +56,9 @@ The attributes are: 1. donotreducegpx: Print all the point without reduce it (default is FALSE) -1. pointsoffset: Skip points closer than XX metres(default is 10) +1. pointsoffset: Skip points closer than XX meters(default is 10) -1. uom: the unit of measure values are: 0, 1 (0 = metres, 1 = miles/feet) +1. uom: the unit of measure values are: 0, 1 (0 = meters, 1 = miles/feet) 1. mlinecolor: map line color (default is #3366cc) diff --git a/wp-gpx-maps_Utils.php b/wp-gpx-maps_Utils.php index d2fc4ad..3e86a1f 100644 --- a/wp-gpx-maps_Utils.php +++ b/wp-gpx-maps_Utils.php @@ -220,7 +220,7 @@ { $alpha = (float)sin((float)toRadians((float) $lat2 - (float) $lat1) / 2); $beta = (float)sin((float)toRadians((float) $lon2 - (float) $lon1) / 2); - //Distance in metres + //Distance in meters $a = (float) ( (float)$alpha * (float)$alpha) + (float) ( (float)cos( (float)toRadians($lat1)) * (float)cos( (float)toRadians($lat2)) * (float)$beta * (float)$beta ); $dist = 2 * 6369628.75 * (float)atan2((float)sqrt((float)$a), (float)sqrt(1 - (float) $a)); $d = (float)sqrt((float)pow((float)$dist, 2) + pow((float) $lat1 - (float)$lat2, 2)); diff --git a/wp-gpx-maps_admin.php b/wp-gpx-maps_admin.php index f7d9951..6a4cc45 100644 --- a/wp-gpx-maps_admin.php +++ b/wp-gpx-maps_admin.php @@ -91,8 +91,8 @@ function WP_GPX_Maps_html_page() {
  • mtype: map aviable types are: HYBRID, ROADMAP, SATELLITE, TERRAIN
  • waypoints: print the gpx waypoints inside the map (default is FALSE)
  • donotreducegpx: Print all the point without reduce it (default is FALSE)
  • -
  • pointsoffset: Skip points closer than XX metres(default is 10)
  • -
  • uom: the unit of measure values are: 0, 1 (0 = metres, 1 = miles/feet)
  • +
  • pointsoffset: Skip points closer than XX meters(default is 10)
  • +
  • uom: the unit of measure values are: 0, 1 (0 = meters, 1 = miles/feet)
  • mlinecolor: map line color (default is #3366cc)
  • glinecolor: graph line color (default is #3366cc)
  • diff --git a/wp-gpx-maps_admin_settings.php b/wp-gpx-maps_admin_settings.php index 13b11ac..3d98dde 100644 --- a/wp-gpx-maps_admin_settings.php +++ b/wp-gpx-maps_admin_settings.php @@ -51,7 +51,7 @@ Unit of measure: @@ -73,7 +73,7 @@
    Do not edit if you don't know what you are doing!
    - Skip points closer than metres. + Skip points closer than meters. onchange="this.value = (this.checked)" />Do not reduce gpx.