* Added Portuguese (Brazilian) translation, thanks to André Ramos
* new map: Open Cycle Map - Transport * new map: Open Cycle Map - Landscape
This commit is contained in:
parent
40c390beb0
commit
bfa8d0208e
|
@ -173,6 +173,8 @@ function _wpgpxmaps(params)
|
|||
mapTypeIds.push("OSM1");
|
||||
mapTypeIds.push("OSM2");
|
||||
mapTypeIds.push("OSM3");
|
||||
mapTypeIds.push("OSM4");
|
||||
mapTypeIds.push("OSM5");
|
||||
|
||||
var ngImageMarkers = [];
|
||||
|
||||
|
@ -184,6 +186,8 @@ function _wpgpxmaps(params)
|
|||
case 'OSM1': { mapType = "OSM1"; break;}
|
||||
case 'OSM2': { mapType = "OSM2"; break;}
|
||||
case 'OSM3': { mapType = "OSM3"; break;}
|
||||
case 'OSM4': { mapType = "OSM4"; break;}
|
||||
case 'OSM5': { mapType = "OSM5"; break;}
|
||||
default: { mapType = google.maps.MapTypeId.HYBRID; break;}
|
||||
}
|
||||
|
||||
|
@ -214,6 +218,24 @@ function _wpgpxmaps(params)
|
|||
maxZoom: 18
|
||||
}));
|
||||
|
||||
map.mapTypes.set("OSM4", new google.maps.ImageMapType({
|
||||
getTileUrl: function(coord, zoom) {
|
||||
return "http://a.tile2.opencyclemap.org/transport/" + zoom + "/" + coord.x + "/" + coord.y + ".png";
|
||||
},
|
||||
tileSize: new google.maps.Size(256, 256),
|
||||
name: "Open Cycle Map - Transport",
|
||||
maxZoom: 18
|
||||
}));
|
||||
|
||||
map.mapTypes.set("OSM5", new google.maps.ImageMapType({
|
||||
getTileUrl: function(coord, zoom) {
|
||||
return "http://a.tile3.opencyclemap.org/landscape/" + zoom + "/" + coord.x + "/" + coord.y + ".png";
|
||||
},
|
||||
tileSize: new google.maps.Size(256, 256),
|
||||
name: "Open Cycle Map - Landscape",
|
||||
maxZoom: 18
|
||||
}));
|
||||
|
||||
map.mapTypes.set("OSM3", new google.maps.ImageMapType({
|
||||
getTileUrl: function(coord, zoom) {
|
||||
return "http://toolserver.org/tiles/hikebike/" + zoom + "/" + coord.x + "/" + coord.y + ".png";
|
||||
|
@ -223,6 +245,7 @@ function _wpgpxmaps(params)
|
|||
maxZoom: 18
|
||||
}));
|
||||
|
||||
|
||||
// FULL SCREEN BUTTON
|
||||
var controlDiv = document.createElement('div');
|
||||
controlDiv.style.padding = '5px';
|
||||
|
|
Binary file not shown.
|
@ -0,0 +1,93 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: wp-gpx-maps\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2012-10-30 14:42+0100\n"
|
||||
"PO-Revision-Date: 2013-04-23 18:36-0300\n"
|
||||
"Last-Translator: André Ramos <kurukuru@ig.com.br>\n"
|
||||
"Language-Team: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=UTF-8\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
"X-Poedit-KeywordsList: __;_e\n"
|
||||
"X-Poedit-Basepath: .\n"
|
||||
"X-Generator: Poedit 1.5.4\n"
|
||||
"X-Poedit-SearchPath-0: ..\n"
|
||||
|
||||
#: ../wp-gpx-maps.php:467
|
||||
msgid "Altitude"
|
||||
msgstr "Altitude"
|
||||
|
||||
#: ../wp-gpx-maps.php:468
|
||||
msgid "Current Position"
|
||||
msgstr "Posição atual"
|
||||
|
||||
#: ../wp-gpx-maps.php:469
|
||||
msgid "Speed"
|
||||
msgstr "Velocidade"
|
||||
|
||||
#: ../wp-gpx-maps.php:470
|
||||
msgid "Heart rate"
|
||||
msgstr "Ritmo cardíaco"
|
||||
|
||||
#: ../wp-gpx-maps.php:471
|
||||
msgid "Cadence"
|
||||
msgstr "Cadência"
|
||||
|
||||
#: ../wp-gpx-maps.php:472
|
||||
msgid "Go Full Screen"
|
||||
msgstr "Tela cheia"
|
||||
|
||||
#: ../wp-gpx-maps.php:473
|
||||
msgid "Exit Full Screen"
|
||||
msgstr "Restaura janela"
|
||||
|
||||
#: ../wp-gpx-maps.php:474
|
||||
msgid "Hide Images"
|
||||
msgstr "Ocultar imagens"
|
||||
|
||||
#: ../wp-gpx-maps.php:475
|
||||
msgid "Show Images"
|
||||
msgstr ""
|
||||
|
||||
#: ../wp-gpx-maps.php:476
|
||||
msgid "Back to center"
|
||||
msgstr "Centralizar"
|
||||
|
||||
#: ../wp-gpx-maps.php:489
|
||||
msgid "Total distance"
|
||||
msgstr "Distância total"
|
||||
|
||||
#: ../wp-gpx-maps.php:494
|
||||
msgid "Max elevation"
|
||||
msgstr "Elevação máxima"
|
||||
|
||||
#: ../wp-gpx-maps.php:496
|
||||
msgid "Min elevation"
|
||||
msgstr "Elevação mínima"
|
||||
|
||||
#: ../wp-gpx-maps.php:498
|
||||
msgid "Total climbing"
|
||||
msgstr "Total subida"
|
||||
|
||||
#: ../wp-gpx-maps.php:500
|
||||
msgid "Total descent"
|
||||
msgstr "Total descida"
|
||||
|
||||
#: ../wp-gpx-maps.php:504
|
||||
msgid "Average speed"
|
||||
msgstr "Velocidade média"
|
||||
|
||||
#: ../wp-gpx-maps.php:509
|
||||
msgid "Total Time"
|
||||
msgstr "Tempo total"
|
||||
|
||||
#: ../wp-gpx-maps.php:525
|
||||
msgid "Download"
|
||||
msgstr "Baixar arquivo"
|
||||
|
||||
#: ../wp-gpx-maps_admin_settings.php:83 ../wp-gpx-maps_admin_settings.php:151
|
||||
#: ../wp-gpx-maps_admin_settings.php:229 ../wp-gpx-maps_admin_settings.php:333
|
||||
#: ../wp-gpx-maps_admin_settings.php:364
|
||||
msgid "Save Changes"
|
||||
msgstr "Salvar alterações"
|
27
readme.txt
27
readme.txt
|
@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|||
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: 3.5
|
||||
Stable tag: 1.1.42
|
||||
Stable tag: 1.1.43
|
||||
|
||||
Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map.
|
||||
|
||||
|
@ -32,20 +32,21 @@ Even if you don't have a gps camera, this plugin can retrive the image position
|
|||
|
||||
Old NGGallery Images (without gps data) and gpx: <a href="http://www.pedemontanadelgrappa.it/mappe/itinerario-3-alta-via-degli-eroi/">http://www.pedemontanadelgrappa.it/mappe/itinerario-3-alta-via-degli-eroi/</a>
|
||||
|
||||
Translated into 7 languages:
|
||||
Translated into 11 languages:
|
||||
|
||||
- English (default)
|
||||
- Italian it_IT
|
||||
- German de_DE
|
||||
- Spanish es_ES
|
||||
- Dutch nl_NL
|
||||
- English (default)
|
||||
- French fr_FR
|
||||
- German de_DE
|
||||
- Hungarian hu_HU
|
||||
- Italian it_IT
|
||||
- Polish pl_PL
|
||||
- Portuguese (Brazilian) pt_BR
|
||||
- Spanish es_ES
|
||||
- Swedish sv_SE
|
||||
- Turkish tr_TR
|
||||
- Hungarian hu_HU
|
||||
- French fr_FR
|
||||
- Polish pl_PL
|
||||
|
||||
(many thanks to all the guys who helped me with the translations)
|
||||
(many thanks to all guys who helped me with the translations)
|
||||
|
||||
- iphone/ipad/ipod Compatible
|
||||
|
||||
|
@ -89,7 +90,7 @@ The attributes are:
|
|||
|
||||
1. gheight: graph height
|
||||
|
||||
1. mtype: map available types are: HYBRID, ROADMAP, SATELLITE, TERRAIN
|
||||
1. mtype: map available types are: HYBRID, ROADMAP, SATELLITE, TERRAIN, OSM1 (Open Street Map), OSM2 (Open Cycle Map), OSM3 (Hike & Bike), OSM4 (Open Cycle Map - Transport), OSM5 (Open Cycle Map - Landscape)
|
||||
|
||||
1. waypoints: print the gpx waypoints inside the map (default is FALSE)
|
||||
|
||||
|
@ -180,6 +181,10 @@ Yes!
|
|||
1. Altitude & Speed & Hearth rate
|
||||
|
||||
== Changelog ==
|
||||
= 1.1.43 =
|
||||
* Added Portuguese (Brazilian) translation, thanks to André Ramos
|
||||
* new map: Open Cycle Map - Transport
|
||||
* new map: Open Cycle Map - Landscape
|
||||
= 1.1.42 =
|
||||
* qTranslate compatible
|
||||
= 1.1.41 =
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
/*
|
||||
Plugin Name: WP-GPX-Maps
|
||||
Plugin URI: http://www.darwinner.it/
|
||||
Plugin URI: http://www.devfarm.it/
|
||||
Description: Draws a gpx track with altitude graph
|
||||
Version: 1.1.42
|
||||
Version: 1.1.43
|
||||
Author: Bastianon Massimo
|
||||
Author URI: http://www.pedemontanadelgrappa.it/
|
||||
*/
|
||||
|
@ -59,7 +59,7 @@ function enqueue_WP_GPX_Maps_scripts()
|
|||
wp_enqueue_script( 'highcharts' );
|
||||
|
||||
wp_deregister_script( 'WP-GPX-Maps' );
|
||||
wp_register_script( 'WP-GPX-Maps', plugins_url('/WP-GPX-Maps.js', __FILE__), array('jquery','googlemaps','highcharts'), "1.1.41");
|
||||
wp_register_script( 'WP-GPX-Maps', plugins_url('/WP-GPX-Maps.js', __FILE__), array('jquery','googlemaps','highcharts'), "1.1.43");
|
||||
wp_enqueue_script( 'WP-GPX-Maps' );
|
||||
|
||||
}
|
||||
|
|
|
@ -190,7 +190,9 @@
|
|||
<input type="radio" name="wpgpxmaps_map_type" value="TERRAIN" <?php if ($t == 'TERRAIN') echo 'checked'; ?>> TERRAIN: maps with physical features such as terrain and vegetation.<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM1" <?php if ($t == 'OSM1') echo 'checked'; ?>> Open Street Map<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM2" <?php if ($t == 'OSM2') echo 'checked'; ?>> Open Cycle Map<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM3" <?php if ($t == 'OSM3') echo 'checked'; ?>> Hike & Bike<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM2" <?php if ($t == 'OSM4') echo 'checked'; ?>> Open Cycle Map - Transport<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM2" <?php if ($t == 'OSM5') echo 'checked'; ?>> Open Cycle Map - Landscape<br />
|
||||
<input type="radio" name="wpgpxmaps_map_type" value="OSM3" <?php if ($t == 'OSM3') echo 'checked'; ?>> Hike & Bike<br />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
@ -158,6 +158,8 @@
|
|||
$gpx->registerXPathNamespace('11', 'http://www.topografix.com/GPX/1/1');
|
||||
$gpx->registerXPathNamespace('gpxtpx', 'http://www.garmin.com/xmlschemas/TrackPointExtension/v1');
|
||||
|
||||
$count_wpt = count( $gpx->xpath('//wpt | //10:wpt | //11:wpt') );
|
||||
|
||||
$nodes = $gpx->xpath('//trk | //10:trk | //11:trk');
|
||||
|
||||
//normal gpx
|
||||
|
@ -489,7 +491,12 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
echo "Empty Gpx or not supported File!";
|
||||
|
||||
if ($count_wpt == 0)
|
||||
{
|
||||
echo "Empty Gpx or not supported File!";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue