Frederic Junod
82d2fa373a
Dispatch an error on Geolocation failure
2013-05-27 12:46:36 +02:00
Frederic Junod
fdfe057efe
Use ol.projection.identityTransform instead of goog.functions.identity
2013-05-06 10:21:24 +02:00
Tom Payne
be7228f78e
Add options to ol.Geolocation constructor
2013-04-20 16:55:26 +02:00
Tom Payne
b24c46dd19
Initialize all properties in constructor in ol.Geolocation
2013-04-18 21:02:18 +02:00
ahocevar
a437bea61f
Use no browser globals at all
2013-04-10 16:53:45 +02:00
ahocevar
dc1d7a1aba
Don't use window and document
...
With this change, our JavaScript can also be executed by
non-brower engines.
2013-04-10 15:48:17 +02:00
Tom Payne
85af2bf912
Be more consistent with geolocation options
2013-04-06 20:44:23 +02:00
Tom Payne
4be8c991f7
Add missing Closure Library requires
2013-04-06 14:28:12 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Jeff Williams
97879a3572
remove descriptions from JSDoc type tags
2013-03-21 09:54:52 -07:00
Frederic Junod
97867738f8
Add new tracking and tracking_options property
2013-03-11 09:02:52 +01:00
Tom Payne
21d34f1cc8
Rename projection functions for a friendlier API
...
The following functions are renamed:
getTransform -> getTransformForProjections
getTransformFromCodes -> getTransform
transform -> transformWithProjections
transformWithCodes -> transform
With this change, the faster functions that avoid projection look-up
have longer names and are used internally, whereas the slower but
friendlier short name functions are available for users.
2013-03-07 13:39:40 +01:00
Tom Payne
afcbec469a
Rename ol.projection.getFromCode to ol.projection.get
2013-03-07 13:29:39 +01:00
Tim Schaub
e9fa08fccb
Use in-place transforms where possible
2013-03-03 20:53:13 +01:00
Tim Schaub
40bde4056b
Accept a destination array for transforms
...
This allows in-place transforms.
2013-03-03 20:24:14 +01:00
Tim Schaub
7a5e6a06d8
Make transform functions work with arrays
...
Instead of working with ol.Coordinate instances, transform functions work with arrays. This is in anticipation of using transform functions to transform large arrays of vertex coordinate values. The ol.projection.transform and ol.projection.transformWithCodes are slightly more convenient functions for dealing with ol.Coordinate instances. Whether we make this more consistent with the use of functions returned by ol.projection.getTransform is up for discussion.
2013-03-03 19:27:57 +01:00
Tom Payne
fcc620af7d
Separate ol.projection module from ol.Projection class
2013-03-03 13:09:13 +01:00
Frederic Junod
c117fbbf7c
Rename ol.Geolocation.isSupported to ol.Geolocation.SUPPORTED.
...
And add the 'const' JSDoc Tags.
2013-02-19 16:51:59 +01:00
Tom Payne
fc9f323f83
Store heading in radians, thanks @fredj
2013-02-17 23:53:37 +01:00
Tom Payne
7de6cb4fd4
Add remaining geolocation properties
2013-02-16 20:19:38 +01:00
Frederic Junod
a36145fc1f
Check if the Geolocation API is supported
2013-02-07 16:20:15 +01:00
Frederic Junod
44a5eca437
Add ol.Geolocation.isSupported property
2013-02-07 15:59:12 +01:00
Frederic Junod
753b37ad47
Add 'undefined' return type for all get* functions
2013-02-06 11:00:55 +01:00
Frederic Junod
a679bb7bef
Set handleProjectionChanged from protected to private
2013-02-06 10:59:18 +01:00
Frederic Junod
6675de437f
Handle projection change in ol.Geolocation
2013-02-04 09:46:31 +01:00
Frederic Junod
38f245c5c8
Add projection property to ol.Geolocation
2013-02-01 13:53:55 +01:00
Frederic Junod
035f487dc5
Add ol.Geolocation
2013-02-01 11:10:17 +01:00