Commit Graph

111 Commits

Author SHA1 Message Date
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
Tim Schaub b3b31ea16d Inline various goog.isDef() calls 2015-09-27 10:51:03 -06:00
Tim Schaub 83c59ee255 Inline goog.isDef() calls for properties 2015-09-27 10:40:20 -06:00
Tim Schaub 36e336f406 Inline !goog.isDef() calls for properties 2015-09-27 10:37:20 -06:00
Tim Schaub e3951fa3c6 Inline simple goog.isDef() calls 2015-09-27 10:34:44 -06:00
Tim Schaub a86c270f6a Inline simple !goog.isDef() calls 2015-09-27 10:31:16 -06:00
Tim Schaub 3a0683f373 Inline !goog.isDef() property checks 2015-09-27 10:24:38 -06:00
Tim Schaub 6638ae855d Inline simple !goog.isDef() checks 2015-09-27 10:23:30 -06:00
Tim Schaub b36d697585 Inline goog.isDef() property checks 2015-09-27 10:21:50 -06:00
Tim Schaub 7659e47e07 Inline simple goog.isDef() checks 2015-09-27 10:18:44 -06:00
Johannes Weskamm c57f5e5f0a Add assertion for required option 'code' on ol.proj.Projection
Additionally clarify docs.
2015-09-03 11:15:41 +02:00
Andreas Hocevar a8797ae1ff Do not overwrite projections in the registry 2015-08-19 13:06:23 +02:00
Andreas Hocevar 40feabc3c8 Do not require an extent for global projections 2015-04-21 09:11:06 +02:00
Andreas Hocevar a90a012e5d Replay vector batches for each world 2015-04-18 19:10:53 +02:00
Marc Jansen 0360e8bce8 Add unit 'us-ft' to API docs 2015-04-18 08:26:26 +02:00
nd0ut 12e817e408 Check projections equivalence also by their code
Method ol.proj.equivalent used only reference equality check ===
That doesn't work for basic checks of two strongly equal projections
For example, `EPSG:4326` and `EPSG:4326`
In this case method searches similar proj in ol.proj.transforms_ mapping
And it finds it if proj is default and not custom
But in case of custom proj `EPSG:3413` it doesn't find it
2015-04-17 14:36:37 +03:00
Andreas Hocevar 5579dc53a2 Add fromLonLat and toLonLat convenience functions 2015-03-31 19:27:35 +02:00
Bart van den Eijnden 47ce127a10 Add assert messages for all assertions up until ol.renderer.vector. 2015-03-30 22:55:23 +02:00
Andreas Hocevar 362c9b6851 Clarification of the purpose of ol.proj.addProjection 2015-03-26 10:52:19 +01:00
Andreas Hocevar 338901774b Configure proj4 options and transforms upon construction 2015-03-26 10:39:26 +01:00
bill-chadwick 3efea3ddfc Update to ol.proj
Add support for custom getPointResolution
and setting the 'global' boolean
2015-03-17 23:08:11 +00:00
Andreas Hocevar a6f80ef4b8 Add constant for us-ft units 2015-03-03 13:51:23 +01:00
Mike McGann cc4a690676 Fixed documentation typo for return value of ol.proj.Projection.isGlobal() 2014-12-23 15:38:49 -05:00
Bart van den Eijnden 890b96f1e9 Support OGC srs urns without an EPSG database version 2014-11-27 20:01:53 +01:00
Tim Schaub 8a82048c12 Explicitly pass coordinate dimension before transforming 2014-10-27 10:33:46 -06:00
Tim Schaub 8b3677967d Use getMetersPerUnit 2014-10-14 13:45:23 -06:00
Éric Lemoine cc4d793c64 Add @api stable annotations to ol.proj 2014-08-25 10:27:25 +02:00
Peter Robins ac63a453c2 Document aliases for EPSG:4326/3857 2014-08-20 09:03:46 +00:00
Frederic Junod d7c2e27d50 Export ol.proj.Projection#getMetersPerUnit function 2014-08-18 14:21:10 +02:00
Frederic Junod e39e9c2230 Export ol.proj.Projection#isGlobal function 2014-08-18 14:21:10 +02:00
Éric Lemoine 9f19569144 Add a worldExtent to ol.proj.Projection 2014-07-24 17:59:56 +02:00