Tom Payne
afcbec469a
Rename ol.projection.getFromCode to ol.projection.get
2013-03-07 13:29:39 +01:00
Bruno Binet
4415f8ac74
Add test for ol.projection.configureProj4jsProjection
2013-03-07 01:36:41 +01:00
Bruno Binet
9d88273161
ol.Projection now takes a single argument
...
which is called ol.ProjectionOptions.
2013-03-07 01:36:39 +01:00
Bruno Binet
d1762a06f8
Merge pull request #290 from bbinet/projection_stuff
...
Add a getMetersPerUnit instance method to ol.Projection class
2013-03-06 08:50:47 -08:00
Bruno Binet
f4aa08ee90
Use ol.sphere.NORMAL.radius instead of 6378000
...
to be consistent.
2013-03-06 12:18:37 +01:00
Bruno Binet
097d59c41a
Add test for ol.Projection getMetersPerUnit method
2013-03-06 10:33:03 +01:00
Bruno Binet
f1b72a10bc
Tests for cached proj4js projections.
2013-03-06 01:59:35 +01:00
Tom Payne
a8760108d4
Estimate point resolution for Proj4js projections
2013-03-04 00:25:42 +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
Tim Schaub
52da64564c
Tests for getting transforms
...
These are regression tests for #231 .
2013-02-25 11:40:55 -07:00
Tim Schaub
ca85c26537
Method for removing cached transforms
2013-02-25 11:28:14 -07:00
Tim Schaub
940ba8afa7
Stray debugger
2013-02-25 11:26:04 -07:00
Tim Schaub
72ba8c4cbd
Smoke test for ol.Projection.getTransformFromCodes
2013-02-25 10:36:21 -07:00
Tim Schaub
86262bf17e
Space for linter
2013-02-25 10:36:21 -07:00
Tom Payne
7b42b62033
Add Proj4js integration tests
2013-02-18 14:44:44 +01:00
Éric Lemoine
b6ed5f2164
Use namespaces for tests
...
With this commit test files provide namespaces (using goog.provide). This fixes the issue reported by @bartvde where goog objects cannot be used in Jasmine "describe" functions. It also frees us from having to add script tags for the test files in test/ol.html.
2013-01-31 10:18:21 +01:00
Tom Payne
b7def4c8c4
Clean up some lint problems in specs
2012-09-27 12:42:13 +02:00
Tom Payne
228e5a8dbf
Move requires to end of the file to ensure tests run even if goog.require fails
2012-09-26 19:40:16 +02:00
Tom Payne
c956ab3482
Relax unit tests as PhantomJS generates the wrong result on Mac OS X
2012-09-25 11:32:31 +02:00
Éric Lemoine
ec9382e760
Jasmine tests for ol.Projection
2012-09-24 23:26:49 +02:00