From 82381700c510d458f1c55e0d8178160bea3a2377 Mon Sep 17 00:00:00 2001 From: Ethan Sutin Date: Sun, 30 Nov 2014 17:06:38 -0800 Subject: [PATCH] fix android styles --- plugins/android.json | 76 +++++++++++++++++ .../.fetch.json | 2 +- .../doc/de/index.md | 12 +-- .../doc/es/index.md | 81 +++++-------------- .../doc/pl/index.md | 10 +-- .../doc/ru/index.md | 16 ++-- .../package.json | 27 +++++++ .../org.apache.cordova.geolocation/plugin.xml | 2 +- .../tests/plugin.xml | 2 +- www/css/overrides.css | 0 www/index.html | 17 ++-- www/js/application.js | 7 -- 12 files changed, 157 insertions(+), 95 deletions(-) create mode 100644 plugins/android.json create mode 100644 plugins/org.apache.cordova.geolocation/package.json create mode 100644 www/css/overrides.css diff --git a/plugins/android.json b/plugins/android.json new file mode 100644 index 00000000..6adc57ac --- /dev/null +++ b/plugins/android.json @@ -0,0 +1,76 @@ +{ + "prepare_queue": { + "installed": [], + "uninstalled": [] + }, + "config_munge": { + "files": { + "res/xml/config.xml": { + "parents": { + "/*": [ + { + "xml": "", + "count": 1 + }, + { + "xml": "", + "count": 1 + }, + { + "xml": "", + "count": 1 + } + ] + } + }, + "config.xml": { + "parents": { + "/widget": [ + { + "xml": "", + "count": 1 + } + ] + } + }, + "AndroidManifest.xml": { + "parents": { + "/manifest": [ + { + "xml": "", + "count": 1 + } + ], + "/*": [ + { + "xml": "", + "count": 1 + }, + { + "xml": "", + "count": 1 + } + ] + } + } + } + }, + "installed_plugins": { + "com.philmerrell.cordova.canopen": { + "PACKAGE_NAME": "com.trailheadlabs.opentrails" + }, + "com.testflightapp.cordova-plugin": { + "PACKAGE_NAME": "com.trailheadlabs.opentrails" + }, + "org.apache.cordova.inappbrowser": { + "PACKAGE_NAME": "com.trailheadlabs.opentrails" + }, + "org.apache.cordova.splashscreen": { + "PACKAGE_NAME": "com.trailheadlabs.opentrails" + }, + "org.apache.cordova.geolocation": { + "PACKAGE_NAME": "com.trailheadlabs.opentrails" + } + }, + "dependent_plugins": {} +} \ No newline at end of file diff --git a/plugins/org.apache.cordova.geolocation/.fetch.json b/plugins/org.apache.cordova.geolocation/.fetch.json index 650c1998..994d898b 100644 --- a/plugins/org.apache.cordova.geolocation/.fetch.json +++ b/plugins/org.apache.cordova.geolocation/.fetch.json @@ -1 +1 @@ -{"source":{"type":"git","url":"https://github.com/apache/cordova-plugin-geolocation.git","subdir":"."}} \ No newline at end of file +{"source":{"type":"registry","id":"org.apache.cordova.geolocation"}} \ No newline at end of file diff --git a/plugins/org.apache.cordova.geolocation/doc/de/index.md b/plugins/org.apache.cordova.geolocation/doc/de/index.md index a7afd41d..95e66590 100644 --- a/plugins/org.apache.cordova.geolocation/doc/de/index.md +++ b/plugins/org.apache.cordova.geolocation/doc/de/index.md @@ -51,8 +51,8 @@ Diese API basiert auf der [W3C Geolocation API-Spezifikation][1], und nur auf Ge ## Objekte (schreibgeschützt) -* Position -* Positionsfehler +* Stellung +* PositionError * Koordinaten ## navigator.geolocation.getCurrentPosition @@ -123,7 +123,7 @@ Optionalen Parametern, um das Abrufen von der geolocation`Position`. * **MaximumAge**: eine zwischengespeicherte Position, deren Alter nicht größer als die angegebene Zeit in Millisekunden ist, zu akzeptieren. *(Anzahl)* -### Android Eigenarten +### Android Macken Android 2.x-Emulatoren geben ein Geolocation-Ergebnis nicht zurück, es sei denn, die `enableHighAccuracy` Option auf festgelegt ist`true`. @@ -148,7 +148,7 @@ Stoppen, gerade für Änderungen an das Gerät Stelle verweist die `watchID` Par navigator.geolocation.clearWatch(watchID); -## Position +## Stellung Enthält `Position` Koordinaten und Timestamp, erstellt von der Geolocation API. @@ -182,11 +182,11 @@ A `Coordinates` Objekt an angeschlossen ist ein `Position` -Objekt, das Callback **AltitudeAccuracy**: von Android-Geräten, Rückgabe nicht unterstützt`null`. -### Android Eigenarten +### Android Macken **AltitudeAccuracy**: von Android-Geräten, Rückgabe nicht unterstützt`null`. -## Positionsfehler +## PositionError Das `PositionError` -Objekt übergeben, um die `geolocationError` Callback-Funktion tritt ein Fehler mit navigator.geolocation. diff --git a/plugins/org.apache.cordova.geolocation/doc/es/index.md b/plugins/org.apache.cordova.geolocation/doc/es/index.md index 2a86a74a..8e4c4e16 100644 --- a/plugins/org.apache.cordova.geolocation/doc/es/index.md +++ b/plugins/org.apache.cordova.geolocation/doc/es/index.md @@ -19,9 +19,9 @@ # org.apache.cordova.geolocation -Este plugin proporciona información sobre la ubicación del dispositivo, tales como la latitud y longitud. Fuentes comunes de información de localización incluyen el sistema de posicionamiento Global (GPS) y ubicación deducido de las señales de la red como dirección IP, direcciones de RFID, WiFi y Bluetooth MAC y celulares GSM/CDMA IDs. No hay ninguna garantía de que la API devuelve la ubicación real del dispositivo. +Este plugin proporciona información sobre la ubicación del dispositivo, tales como la latitud y longitud. Fuentes comunes de información de localización incluyen sistema de posicionamiento Global (GPS) y ubicación deducido de las señales de red como dirección IP, direcciones de RFID, WiFi y Bluetooth MAC y celulares GSM/CDMA IDs. No hay ninguna garantía de que la API devuelve la ubicación del dispositivo real. -Esta API se basa en la [Especificación de API de geolocalización W3C][1] y sólo se ejecuta en dispositivos que ya no proporcionan una implementación. +Esta API se basa en la [Especificación de API de geolocalización W3C][1]y sólo se ejecuta en dispositivos que ya no proporcionan una implementación. [1]: http://dev.w3.org/geo/api/spec-source.html @@ -34,7 +34,7 @@ Esta API se basa en la [Especificación de API de geolocalización W3C][1] y só ## Plataformas soportadas -* Amazon fire OS +* Amazon fuego OS * Android * BlackBerry 10 * Firefox OS @@ -57,11 +57,9 @@ Esta API se basa en la [Especificación de API de geolocalización W3C][1] y só ## navigator.geolocation.getCurrentPosition -Devuelve la posición actual del dispositivo a la `geolocationSuccess` "callback" con un `Position` objeto como parámetro. Si hay un error, el callback `geolocationError` se pasa un objeto `PositionError`. +Devuelve la posición actual del dispositivo a la `geolocationSuccess` "callback" con un `Position` objeto como parámetro. Si hay un error, el `geolocationError` "callback" pasa un `PositionError` objeto. - navigator.geolocation.getCurrentPosition(geolocationSuccess, - [geolocationError], - [geolocationOptions]); + navigator.geolocation.getCurrentPosition (geolocationSuccess, [geolocationError], [geolocationOptions]); ### Parámetros @@ -74,38 +72,18 @@ Devuelve la posición actual del dispositivo a la `geolocationSuccess` "callback ### Ejemplo - // onSuccess Callback - // This method accepts a Position object, which contains the - // current GPS coordinates - // - var onSuccess = function(position) { - alert('Latitude: ' + position.coords.latitude + '\n' + - 'Longitude: ' + position.coords.longitude + '\n' + - 'Altitude: ' + position.coords.altitude + '\n' + - 'Accuracy: ' + position.coords.accuracy + '\n' + - 'Altitude Accuracy: ' + position.coords.altitudeAccuracy + '\n' + - 'Heading: ' + position.coords.heading + '\n' + - 'Speed: ' + position.coords.speed + '\n' + - 'Timestamp: ' + position.timestamp + '\n'); - }; + onSuccess Callback / / este método acepta un objeto Position, que contiene el / / coordenadas GPS actual / / var onSuccess = function(position) {alert (' latitud: ' + position.coords.latitude + '\n' + ' longitud: ' + position.coords.longitude + '\n' + ' altitud: ' + position.coords.altitude + '\n' + ' exactitud: ' + position.coords.accuracy + '\n' + ' altitud exactitud: ' + position.coords.altitudeAccuracy + '\n' + ' hacia: ' + position.coords.heading + '\n' + ' velocidad: ' + position.coords.speed + '\n' + ' Timestamp: ' + position.timestamp + '\n');}; - // onError Callback receives a PositionError object - // - function onError(error) { - alert('code: ' + error.code + '\n' + - 'message: ' + error.message + '\n'); - } + onError Callback recibe un objeto PositionError / / function onError(error) {alert (' código: ' + error.code + '\n' + ' mensaje: ' + error.message + '\n');} - navigator.geolocation.getCurrentPosition(onSuccess, onError); + navigator.geolocation.getCurrentPosition (onSuccess, onError); ## navigator.geolocation.watchPosition -Devuelve la posición actual del dispositivo cuando se detecta un cambio de posición. Cuando el dispositivo recupera una nueva ubicación, la devolución de llamada `geolocationSuccess` se ejecuta con un `Position` de objeto como parámetro. Si hay un error, el callback `geolocationError` se ejecuta con un objeto `PositionError` como parámetro. +Devuelve la posición actual del dispositivo cuando se detecta un cambio de posición. Cuando el dispositivo recupera una nueva ubicación, el `geolocationSuccess` devolución de llamada se ejecuta con un `Position` objeto como parámetro. Si hay un error, el `geolocationError` devolución de llamada se ejecuta con un `PositionError` objeto como parámetro. - var watchId = navigator.geolocation.watchPosition(geolocationSuccess, - [geolocationError], - [geolocationOptions]); + var watchId = navigator.geolocation.watchPosition (geolocationSuccess, [geolocationError], [geolocationOptions]); ### Parámetros @@ -122,27 +100,12 @@ Devuelve la posición actual del dispositivo cuando se detecta un cambio de posi ### Ejemplo - // onSuccess Callback - // This method accepts a `Position` object, which contains - // the current GPS coordinates - // - function onSuccess(position) { - var element = document.getElementById('geolocation'); - element.innerHTML = 'Latitude: ' + position.coords.latitude + '
' + - 'Longitude: ' + position.coords.longitude + '
' + - '
' + element.innerHTML; - } + onSuccess Callback / / este método acepta un objeto 'Position', que contiene / / coordenadas GPS de la corriente / / function onSuccess(position) {var elemento = document.getElementById('geolocation'); + element.innerHTML = ' latitud: ' + position.coords.latitude + ' < br / >' + ' longitud: ' + position.coords.longitude + ' < br / >' + ' < hr / >' + element.innerHTML; + } / / onError Callback recibe un objeto PositionError / / function onError(error) {alert (' código: ' + error.code + '\n' + ' mensaje: ' + error.message + '\n');} - // onError Callback receives a PositionError object - // - function onError(error) { - alert('code: ' + error.code + '\n' + - 'message: ' + error.message + '\n'); - } - - // Options: throw an error if no update is received every 30 seconds. - // - var watchID = navigator.geolocation.watchPosition(onSuccess, onError, { timeout: 30000 }); + Opciones: tira un error si no se recibe ninguna actualización cada 30 segundos. + var watchID = navigator.geolocation.watchPosition (onSuccess, onError, {timeout: 30000}); ## geolocationOptions @@ -166,23 +129,21 @@ Emuladores Android 2.x no devuelva un resultado de geolocalización a menos que ## navigator.geolocation.clearWatch -Deja de ver cambios en la ubicación del dispositivo al que hace referencia el parámetro `watchID`. +Deja de ver cambios en la ubicación del dispositivo al que hace referencia el `watchID` parámetro. navigator.geolocation.clearWatch(watchID); ### Parámetros -* **watchID**: el id del intervalo `watchPosition` para despejar. (String) +* **watchID**: el id de la `watchPosition` intervalo para despejar. (String) ### Ejemplo - // Opciones: ver los cambios en la posición y usar más - // exacta posición disponible del método de adquisición. - // - var watchID = navigator.geolocation.watchPosition(onSuccess, onError, { enableHighAccuracy: true }); + Opciones: ver los cambios en la posición y usar más / / exacta posición disponible del método de adquisición. + var watchID = navigator.geolocation.watchPosition (onSuccess, onError, {enableHighAccuracy: true}); - // ...despues de... + ... después de... navigator.geolocation.clearWatch(watchID); @@ -231,7 +192,7 @@ El `PositionError` objeto se pasa a la `geolocationError` función de devolució ### Propiedades -* **code**: uno de los códigos de error predefinido enumerados a continuación. +* **código**: uno de los códigos de error predefinido enumerados a continuación. * **mensaje**: mensaje de Error que describe los detalles del error encontrado. diff --git a/plugins/org.apache.cordova.geolocation/doc/pl/index.md b/plugins/org.apache.cordova.geolocation/doc/pl/index.md index 239595a0..feaf6e4e 100644 --- a/plugins/org.apache.cordova.geolocation/doc/pl/index.md +++ b/plugins/org.apache.cordova.geolocation/doc/pl/index.md @@ -27,16 +27,16 @@ Ten interfejs API jest oparty na [Specyfikacji W3C Geolocation API][1]i tylko wy **Ostrzeżenie**: zbierania i wykorzystywania danych geolokacyjnych podnosi kwestie prywatności ważne. Polityka prywatności danej aplikacji należy omówić, jak aplikacja używa danych, czy jest on dzielony z innych stron i poziom dokładności danych (na przykład, gruba, porządku, kod pocztowy poziom, itp.). Danych geolokacyjnych ogólnie uznaje wrażliwych, bo to może ujawnić pobytu użytkownika i, jeśli przechowywane, historii ich podróży. W związku z tym oprócz aplikacji prywatności, zdecydowanie warto powiadomienia just-in-time, zanim aplikacja uzyskuje dostęp do danych (jeśli urządzenie system operacyjny nie robi już). Że ogłoszenie powinno zawierać te same informacje, o których wspomniano powyżej, jak również uzyskanie uprawnienia użytkownika (np. poprzez przedstawianie wyborów **OK** i **Nie dzięki**). Aby uzyskać więcej informacji zobacz przewodnik prywatności. -## Instalacja +## Instalacji cordova plugin add org.apache.cordova.geolocation ## Obsługiwane platformy -* Amazon Fire OS +* Amazon ogień OS * Android -* BlackBerry 10 +* Jeżyna 10 * Firefox OS * iOS * Tizen @@ -123,7 +123,7 @@ Opcjonalne parametry aby dostosować wyszukiwanie geolocation`Position`. * **maximumAge**: przyjąć buforowane pozycji, w których wiek jest nie większa niż określony czas w milisekundach. *(Liczba)* -### Dziwactwa Androida +### Android dziwactwa Emulatory Androida 2.x nie zwracają wynik geolokalizacji, chyba że `enableHighAccuracy` jest opcja zestaw do`true`. @@ -182,7 +182,7 @@ A `Coordinates` obiektu jest dołączony do `Position` obiekt, który jest dost **altitudeAccuracy**: nie obsługiwane przez Android urządzeń, powrót`null`. -### Dziwactwa Androida +### Android dziwactwa **altitudeAccuracy**: nie obsługiwane przez Android urządzeń, powrót`null`. diff --git a/plugins/org.apache.cordova.geolocation/doc/ru/index.md b/plugins/org.apache.cordova.geolocation/doc/ru/index.md index 7dbf8b44..278fdfeb 100644 --- a/plugins/org.apache.cordova.geolocation/doc/ru/index.md +++ b/plugins/org.apache.cordova.geolocation/doc/ru/index.md @@ -34,7 +34,7 @@ ## Поддерживаемые платформы -* Amazon Fire OS +* Amazon Fire ОС * Android * BlackBerry 10 * Firefox OS @@ -123,7 +123,7 @@ * **maximumAge**: принять кэшированное положение, возраст которых не превышает указанного времени в миллисекундах. *(Число)* -### Особенности Android +### Android причуды Эмуляторы Android 2.x не возвращать результат географического расположения, если `enableHighAccuracy` параметр имеет значение`true`. @@ -152,7 +152,7 @@ Содержит `Position` координат и отметок времени, созданная API геопозиционирования. -### Параметры +### Свойства * **CoOrds**: набор географических координат. *(Координаты)* @@ -162,7 +162,7 @@ A `Coordinates` объект присоединен к `Position` объект, который доступен для обратного вызова функций в запросы для текущей позиции. Он содержит набор свойств, которые описывают географические координаты позиции. -### Параметры +### Свойства * **Широта**: Широта в десятичных градусах. *(Число)* @@ -178,11 +178,11 @@ A `Coordinates` объект присоединен к `Position` объект, * **скорость**: Текущая скорость земли устройства, указанного в метрах в секунду. *(Число)* -### Особенности Amazon Fire OS +### Amazon Fire OS причуды **altitudeAccuracy**: не поддерживается Android устройств, возвращая`null`. -### Особенности Android +### Android причуды **altitudeAccuracy**: не поддерживается Android устройств, возвращая`null`. @@ -190,9 +190,9 @@ A `Coordinates` объект присоединен к `Position` объект, `PositionError`Объект передается в `geolocationError` функции обратного вызова при возникновении ошибки с navigator.geolocation. -### Параметры +### Свойства -* **code**: один из стандартных кодов ошибок, перечисленных ниже. +* **код**: один из предопределенных кодов, перечисленных ниже. * **сообщение**: сообщение об ошибке с подробными сведениями об ошибке. diff --git a/plugins/org.apache.cordova.geolocation/package.json b/plugins/org.apache.cordova.geolocation/package.json new file mode 100644 index 00000000..fdfd1870 --- /dev/null +++ b/plugins/org.apache.cordova.geolocation/package.json @@ -0,0 +1,27 @@ +{ + "version": "0.3.10", + "name": "org.apache.cordova.geolocation", + "cordova_name": "Geolocation", + "description": "Cordova Geolocation Plugin", + "license": "Apache 2.0", + "repo": "https://git-wip-us.apache.org/repos/asf/cordova-plugin-geolocation.git", + "issue": "https://issues.apache.org/jira/browse/CB/component/12320638", + "keywords": [ + "cordova", + "geolocation" + ], + "platforms": [ + "android", + "amazon-fireos", + "ios", + "blackberry10", + "ubuntu", + "wp7", + "wp8", + "windows8", + "windows", + "firefoxos" + ], + "engines": [], + "englishdoc": "\n\n# org.apache.cordova.geolocation\n\nThis plugin provides information about the device's location, such as\nlatitude and longitude. Common sources of location information include\nGlobal Positioning System (GPS) and location inferred from network\nsignals such as IP address, RFID, WiFi and Bluetooth MAC addresses,\nand GSM/CDMA cell IDs. There is no guarantee that the API returns the\ndevice's actual location.\n\nThis API is based on the\n[W3C Geolocation API Specification](http://dev.w3.org/geo/api/spec-source.html),\nand only executes on devices that don't already provide an implementation.\n\n__WARNING__: Collection and use of geolocation data\nraises important privacy issues. Your app's privacy policy should\ndiscuss how the app uses geolocation data, whether it is shared with\nany other parties, and the level of precision of the data (for\nexample, coarse, fine, ZIP code level, etc.). Geolocation data is\ngenerally considered sensitive because it can reveal user's\nwhereabouts and, if stored, the history of their travels.\nTherefore, in addition to the app's privacy policy, you should\nstrongly consider providing a just-in-time notice before the app\naccesses geolocation data (if the device operating system doesn't do\nso already). That notice should provide the same information noted\nabove, as well as obtaining the user's permission (e.g., by presenting\nchoices for __OK__ and __No Thanks__). For more information, please\nsee the Privacy Guide.\n\n## Installation\n\n cordova plugin add org.apache.cordova.geolocation\n\n## Supported Platforms\n\n- Amazon Fire OS\n- Android\n- BlackBerry 10\n- Firefox OS\n- iOS\n- Tizen\n- Windows Phone 7 and 8\n- Windows 8\n\n## Methods\n\n- navigator.geolocation.getCurrentPosition\n- navigator.geolocation.watchPosition\n- navigator.geolocation.clearWatch\n\n## Objects (Read-Only)\n\n- Position\n- PositionError\n- Coordinates\n\n## navigator.geolocation.getCurrentPosition\n\nReturns the device's current position to the `geolocationSuccess`\ncallback with a `Position` object as the parameter. If there is an\nerror, the `geolocationError` callback is passed a\n`PositionError` object.\n\n navigator.geolocation.getCurrentPosition(geolocationSuccess,\n [geolocationError],\n [geolocationOptions]);\n\n### Parameters\n\n- __geolocationSuccess__: The callback that is passed the current position.\n\n- __geolocationError__: _(Optional)_ The callback that executes if an error occurs.\n\n- __geolocationOptions__: _(Optional)_ The geolocation options.\n\n\n### Example\n\n // onSuccess Callback\n // This method accepts a Position object, which contains the\n // current GPS coordinates\n //\n var onSuccess = function(position) {\n alert('Latitude: ' + position.coords.latitude + '\\n' +\n 'Longitude: ' + position.coords.longitude + '\\n' +\n 'Altitude: ' + position.coords.altitude + '\\n' +\n 'Accuracy: ' + position.coords.accuracy + '\\n' +\n 'Altitude Accuracy: ' + position.coords.altitudeAccuracy + '\\n' +\n 'Heading: ' + position.coords.heading + '\\n' +\n 'Speed: ' + position.coords.speed + '\\n' +\n 'Timestamp: ' + position.timestamp + '\\n');\n };\n\n // onError Callback receives a PositionError object\n //\n function onError(error) {\n alert('code: ' + error.code + '\\n' +\n 'message: ' + error.message + '\\n');\n }\n\n navigator.geolocation.getCurrentPosition(onSuccess, onError);\n\n## navigator.geolocation.watchPosition\n\nReturns the device's current position when a change in position is detected.\nWhen the device retrieves a new location, the `geolocationSuccess`\ncallback executes with a `Position` object as the parameter. If\nthere is an error, the `geolocationError` callback executes with a\n`PositionError` object as the parameter.\n\n var watchId = navigator.geolocation.watchPosition(geolocationSuccess,\n [geolocationError],\n [geolocationOptions]);\n\n### Parameters\n\n- __geolocationSuccess__: The callback that is passed the current position.\n\n- __geolocationError__: (Optional) The callback that executes if an error occurs.\n\n- __geolocationOptions__: (Optional) The geolocation options.\n\n### Returns\n\n- __String__: returns a watch id that references the watch position interval. The watch id should be used with `navigator.geolocation.clearWatch` to stop watching for changes in position.\n\n### Example\n\n // onSuccess Callback\n // This method accepts a `Position` object, which contains\n // the current GPS coordinates\n //\n function onSuccess(position) {\n var element = document.getElementById('geolocation');\n element.innerHTML = 'Latitude: ' + position.coords.latitude + '
' +\n 'Longitude: ' + position.coords.longitude + '
' +\n '
' + element.innerHTML;\n }\n\n // onError Callback receives a PositionError object\n //\n function onError(error) {\n alert('code: ' + error.code + '\\n' +\n 'message: ' + error.message + '\\n');\n }\n\n // Options: throw an error if no update is received every 30 seconds.\n //\n var watchID = navigator.geolocation.watchPosition(onSuccess, onError, { timeout: 30000 });\n\n\n## geolocationOptions\n\nOptional parameters to customize the retrieval of the geolocation\n`Position`.\n\n { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true };\n\n### Options\n\n- __enableHighAccuracy__: Provides a hint that the application needs the best possible results. By default, the device attempts to retrieve a `Position` using network-based methods. Setting this property to `true` tells the framework to use more accurate methods, such as satellite positioning. _(Boolean)_\n\n- __timeout__: The maximum length of time (milliseconds) that is allowed to pass from the call to `navigator.geolocation.getCurrentPosition` or `geolocation.watchPosition` until the corresponding `geolocationSuccess` callback executes. If the `geolocationSuccess` callback is not invoked within this time, the `geolocationError` callback is passed a `PositionError.TIMEOUT` error code. (Note that when used in conjunction with `geolocation.watchPosition`, the `geolocationError` callback could be called on an interval every `timeout` milliseconds!) _(Number)_\n\n- __maximumAge__: Accept a cached position whose age is no greater than the specified time in milliseconds. _(Number)_\n\n### Android Quirks\n\nAndroid 2.x emulators do not return a geolocation result unless the `enableHighAccuracy` option is set to `true`.\n\n## navigator.geolocation.clearWatch\n\nStop watching for changes to the device's location referenced by the\n`watchID` parameter.\n\n navigator.geolocation.clearWatch(watchID);\n\n### Parameters\n\n- __watchID__: The id of the `watchPosition` interval to clear. (String)\n\n### Example\n\n // Options: watch for changes in position, and use the most\n // accurate position acquisition method available.\n //\n var watchID = navigator.geolocation.watchPosition(onSuccess, onError, { enableHighAccuracy: true });\n\n // ...later on...\n\n navigator.geolocation.clearWatch(watchID);\n\n## Position\n\nContains `Position` coordinates and timestamp, created by the geolocation API.\n\n### Properties\n\n- __coords__: A set of geographic coordinates. _(Coordinates)_\n\n- __timestamp__: Creation timestamp for `coords`. _(Date)_\n\n## Coordinates\n\nA `Coordinates` object is attached to a `Position` object that is\navailable to callback functions in requests for the current position.\nIt contains a set of properties that describe the geographic coordinates of a position.\n\n### Properties\n\n* __latitude__: Latitude in decimal degrees. _(Number)_\n\n* __longitude__: Longitude in decimal degrees. _(Number)_\n\n* __altitude__: Height of the position in meters above the ellipsoid. _(Number)_\n\n* __accuracy__: Accuracy level of the latitude and longitude coordinates in meters. _(Number)_\n\n* __altitudeAccuracy__: Accuracy level of the altitude coordinate in meters. _(Number)_\n\n* __heading__: Direction of travel, specified in degrees counting clockwise relative to the true north. _(Number)_\n\n* __speed__: Current ground speed of the device, specified in meters per second. _(Number)_\n\n### Amazon Fire OS Quirks\n\n__altitudeAccuracy__: Not supported by Android devices, returning `null`.\n\n### Android Quirks\n\n__altitudeAccuracy__: Not supported by Android devices, returning `null`.\n\n## PositionError\n\nThe `PositionError` object is passed to the `geolocationError`\ncallback function when an error occurs with navigator.geolocation.\n\n### Properties\n\n- __code__: One of the predefined error codes listed below.\n\n- __message__: Error message describing the details of the error encountered.\n\n### Constants\n\n- `PositionError.PERMISSION_DENIED`\n - Returned when users do not allow the app to retrieve position information. This is dependent on the platform.\n- `PositionError.POSITION_UNAVAILABLE`\n - Returned when the device is unable to retrieve a position. In general, this means the device is not connected to a network or can't get a satellite fix.\n- `PositionError.TIMEOUT`\n - Returned when the device is unable to retrieve a position within the time specified by the `timeout` included in `geolocationOptions`. When used with `navigator.geolocation.watchPosition`, this error could be repeatedly passed to the `geolocationError` callback every `timeout` milliseconds.\n" +} \ No newline at end of file diff --git a/plugins/org.apache.cordova.geolocation/plugin.xml b/plugins/org.apache.cordova.geolocation/plugin.xml index 425bf01c..456260fc 100644 --- a/plugins/org.apache.cordova.geolocation/plugin.xml +++ b/plugins/org.apache.cordova.geolocation/plugin.xml @@ -22,7 +22,7 @@ xmlns:rim="http://www.blackberry.com/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" id="org.apache.cordova.geolocation" - version="0.3.11-dev"> + version="0.3.10"> Geolocation Cordova Geolocation Plugin diff --git a/plugins/org.apache.cordova.geolocation/tests/plugin.xml b/plugins/org.apache.cordova.geolocation/tests/plugin.xml index d11fbd33..bf9cad94 100644 --- a/plugins/org.apache.cordova.geolocation/tests/plugin.xml +++ b/plugins/org.apache.cordova.geolocation/tests/plugin.xml @@ -22,7 +22,7 @@ xmlns:rim="http://www.blackberry.com/ns/widgets" xmlns:android="http://schemas.android.com/apk/res/android" id="org.apache.cordova.geolocation.tests" - version="0.3.11-dev"> + version="0.3.10"> Cordova Geolocation Plugin Tests Apache 2.0 diff --git a/www/css/overrides.css b/www/css/overrides.css new file mode 100644 index 00000000..e69de29b diff --git a/www/index.html b/www/index.html index 1ada7f0d..d0b6aa29 100644 --- a/www/index.html +++ b/www/index.html @@ -1,11 +1,6 @@ - - + @@ -17,7 +12,17 @@ + + + diff --git a/www/js/application.js b/www/js/application.js index 467675b6..776d96fa 100644 --- a/www/js/application.js +++ b/www/js/application.js @@ -18,11 +18,4 @@ fc.attach(document.body); }, false); - // This is very evil. But unfortunately it must be until Phonegap Build fully supports - // the status bar plugin. - var iOS = ( navigator.userAgent.match(/(iPad|iPhone|iPod)/g) ? true : false ); - if (!iOS) { - document.getElementById('status').style.display = 'none'; - } - })(angular, FastClick); \ No newline at end of file