mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Added Google Geolcation
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// Type definitions for Google Geolocation 0.4.8
|
||||
// Project: https://code.google.com/p/geo-location-javascript/
|
||||
// Definitions by: Vincent Bortone <https://github.com/vbortone/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface GeolocationStatic {
|
||||
init(): bool;
|
||||
getCurrentPosition(success: (position: Position) => void, error?: (positionError: PositionError) => void, opts?: PositionOptions): void;
|
||||
showMap(latitude: number, longitude: number): void;
|
||||
}
|
||||
|
||||
declare var geo_position_js: GeolocationStatic;
|
||||
Reference in New Issue
Block a user