Commit Graph

141 Commits

Author SHA1 Message Date
Tim Schaub 137cdc04c8 Remove ol.DEBUG 2017-01-01 20:37:52 -07:00
Tim Schaub ef04f466cd Name modules more like their provide 2016-12-18 11:24:01 -07:00
Tim Schaub 6259caf634 Consistently return a function or undefined 2016-12-04 12:58:33 -08:00
Tim Schaub 6d22119425 One provide per proj module 2016-12-04 12:44:04 -08:00
Tim Schaub 08569d4eb3 Dedicated module for ol.proj.Projection 2016-12-04 12:41:04 -08:00
Tim Schaub a33caa598c Dedicated module for proj4 access 2016-12-04 10:37:33 -08:00
Tim Schaub b54342dfb8 Dedicated module for projections cache 2016-12-04 10:24:43 -08:00
Tim Schaub 679fe298aa Dedicated module for transforms cache 2016-12-04 10:09:32 -08:00
Tim Schaub fd6116ab6b Dedicated module for ol.proj.Units 2016-12-04 09:17:24 -08:00
Andreas Hocevar fe758c2606 Simplify and make the compiler happy 2016-11-29 12:14:11 +01:00
Thomas Chandelle c898cda2e6 Generate projection transform function only when requested 2016-11-28 09:50:41 +01:00
Tim Schaub 324e67fac1 Use https for epsg.io 2016-10-16 00:39:07 -06:00
Tim Schaub 8ac6c85f0f Reuse half size 2016-10-05 08:23:41 -06:00
Tim Schaub 321c65b023 Keep transformed coordinates within valid y range 2016-10-05 07:26:41 -06:00
Tim Schaub 651c6959ab Remove ol.global 2016-09-01 23:13:00 -06:00
Andreas Hocevar d1e4b33760 Rename goog.DEBUG to ol.DEBUG 2016-08-31 21:10:01 +02:00
Tim Schaub 9d276982b5 Assorted missing requires 2016-08-12 10:53:50 -06:00
Tim Schaub 1b8310a6fe Rename ol/objectutil.js to ol/obj.js 2016-08-07 10:49:12 -06:00
Tim Schaub aab8a7c4eb Move proj files so they are named like their provides 2016-08-07 10:49:10 -06:00
Andreas Hocevar e0015b3d4e Use goog.DEBUG instead of ol.DEBUG for now 2016-08-04 11:29:54 +02:00
Andreas Hocevar 6f5ed17fc5 Remove goog.asserts.*
This pull requests replaces type check hint assertions with type casts,
library sanity check assertions with conditional console.assert statements
in debug mode, and runtime sanity checks with assertions that throw an
ol.AssertionError with an error code for lookup outside the library.
2016-08-04 11:29:54 +02:00
Andreas Hocevar 4227f8034b Do not return undefined from ol.proj.get 2016-08-02 13:39:07 +02:00
Peter Robins 2c29512c80 Remove sub-namespaces from all remaining typedefs 2016-06-09 10:01:52 +00:00
Frederic Junod e289bfbb7d Use ol.inherits instead of goog.inherits 2016-06-08 08:38:12 +02:00
Andreas Hocevar 2ec4969ac7 Remove api annotations from enums 2016-06-03 09:29:14 +02:00
Peter Robins 4f0b4dacbd Move sub-namespace typedefs to typedefs.js
Here too there is one problem case.
2016-05-11 19:45:59 +00:00
Peter Robins 535e8f5e35 Move top-level typedefs to typedefs.js
With one exception, those directly in the `ol` namespace can be moved without problem.
Some left-over goog.requires are also removed.
2016-05-11 17:18:05 +00:00
Peter Robins 2a44669e18 Add some goog.requires to keep compiler happy 2016-05-09 16:00:07 +00:00
Peter Robins f57065c412 Remove unneeded goog.provides/requires for typedefs
In general, typedefs do not need and should not have goog.require/provide
2016-05-09 13:21:25 +00:00
Nicholas Latham cd6494149b Remove goog.global (#5178)
* Remove goog.global

* Correct externs location

* Use Function('return this')

* Remove global externs
2016-04-07 23:36:48 +02:00
Sebastian Baumhekel 33bcd7194f Export ol.proj.equivalent
The function ol.proj.equivalent is used for comparing two projections,
but not exposed publicly. It should be accessible using a public API to
be able to compare projections in the same way as OpenLayers does.

A test for the ol.proj.equivalent function itself already exists in
https://github.com/openlayers/ol3/blob/master/test/spec/ol/proj/proj.test.js

github issue #4913
2016-02-25 08:40:56 +01:00
Marc Jansen efa82dccf9 Remove use of goog.isString() 2016-02-06 12:56:55 +01:00
Tim Schaub 8aecb3270c Replace goog.object.isEmpty() with ol.object.isEmpty() 2016-02-04 06:54:44 -07:00
Tim Schaub 13a981c94b Fewer blank lines 2016-01-11 22:03:23 -08:00
Tim Schaub 3cf8618fc7 Prefer single line assignment to 80 character limit 2016-01-11 18:56:08 -08:00
Andreas Hocevar 24f8cba0a1 Simplify meters per unit handling 2016-01-06 13:53:55 +01:00
Bart van den Eijnden cdf9a8e84d Add ol.proj.setProj4 function 2016-01-04 18:51:04 +01:00
Andreas Hocevar a940cdd6a7 Add support for OSM vector tiles 2015-12-07 11:15:25 +01:00
Frederic Junod 8d72589743 Remove use of goog.object.containsKey 2015-11-24 10:17:01 +01:00
Andreas Hocevar 5832943773 Make changes suggested during the review 2015-10-28 10:29:04 +01:00
Andreas Hocevar 66338a662d Fix comparison of projections with same code but different units 2015-10-28 10:29:03 +01:00
Andreas Hocevar 8f4756c99b Introduce tile-pixels units 2015-10-28 10:29:00 +01:00
Torben Barsbsballe 7cefe56167 Support OGC WKT proj4 def.units and def.to_meter 2015-10-07 11:18:52 -07:00
Marc Jansen b11c9c3b9c Remove goog.isNull in proj class 2015-10-01 09:18:53 +02:00
Tim Schaub 6bdacced92 Merge pull request #4176 from tschaub/remove-isdefandnotnull
Remove use of goog.isDefAndNotNull().
2015-10-01 00:05:57 -06:00
Tim Schaub ed3dcd636f Replace !goog.isDefAndNotNull() with falsey checks 2015-09-29 09:32:51 -06:00
Frederic Junod 23de622d29 Use goog.object.isEmpty instead of goog.object.getKeys 2015-09-29 14:24:34 +02:00
Frederic Junod 496cece074 Remove use of goog.array.forEach 2015-09-29 10:55:17 +02:00
Frederic Junod 9e2a393426 Remove use of goog.array.map 2015-09-29 10:54:55 +02:00
Tim Schaub 29a1ea9ae3 Remove remaining goog.isDef() calls 2015-09-27 11:13:58 -06:00