You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Yasser Elsayed (JIRA)" <ji...@apache.org> on 2015/11/20 23:49:11 UTC
[jira] [Updated] (CB-10055) Cordova implementation for Geolocation
plugin has wrong type for watchId
[ https://issues.apache.org/jira/browse/CB-10055?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yasser Elsayed updated CB-10055:
--------------------------------
Description:
See the definition of the Cordova interface of the Geolocation plugin here:
http://docs.phonegap.com/en/edge/cordova_geolocation_geolocation.md.html#geolocation.watchPosition
The watchId variables in watchPosition() and clearWatch() are declared as numbers, but that does not match the HTML5 specs for the GeoLocation on w3, which state it's a string. See: http://dev.w3.org/geo/api/spec-source.html#geolocation
was:
This is the definition of Geolocation in lib.d.ts:
{code:xml}
interface Geolocation {
clearWatch(watchId: number): void;
getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): void;
watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback, options?: PositionOptions): number;
}
{code}
watchId variables in watchPosition() and clearWatch() are declared as numbers, but actually the Cordova documentation on w3 states it's a string. See: http://dev.w3.org/geo/api/spec-source.html#geolocation
Component/s: CordovaLib
CordovaCommon
Summary: Cordova implementation for Geolocation plugin has wrong type for watchId (was: interface Geolocation (lib.d.ts) has the wrong type for watchId)
> Cordova implementation for Geolocation plugin has wrong type for watchId
> ------------------------------------------------------------------------
>
> Key: CB-10055
> URL: https://issues.apache.org/jira/browse/CB-10055
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaCommon, CordovaLib
> Reporter: Yasser Elsayed
>
> See the definition of the Cordova interface of the Geolocation plugin here:
> http://docs.phonegap.com/en/edge/cordova_geolocation_geolocation.md.html#geolocation.watchPosition
> The watchId variables in watchPosition() and clearWatch() are declared as numbers, but that does not match the HTML5 specs for the GeoLocation on w3, which state it's a string. See: http://dev.w3.org/geo/api/spec-source.html#geolocation
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org