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
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
Paul Spencer
8383f60fcf
Merge pull request #2349 from probins/projdocs
...
Improve docs for projection
2014-07-15 21:10:33 -04:00
Tim Schaub
1657ed2d23
Make ol.proj.METERS_PER_UNIT exportable
...
We need to apply the `@api` annotation to the object itself in order for it to be exportable.
2014-07-15 15:49:48 -06:00
Peter Robins
96ec96c4d5
Improve docs for projection
2014-07-12 11:31:38 +00:00
Andreas Hocevar
1d26c1faaf
Check for proj4 in a way that also works in module environments
2014-07-10 20:23:33 +02:00
Andreas Hocevar
19757ae3e0
Safeguard against cases where no projection and no proj4 is available
2014-07-10 18:32:29 +02:00
Andreas Hocevar
1ae82b054c
Revert to only accept ol.proj.Projection as argument
2014-07-09 18:12:07 +02:00
Éric Lemoine
4cf8383820
Avoid a type-cast
2014-07-09 17:51:24 +02:00
Andreas Hocevar
0a01f8ef7e
Simplify ol.proj.addCoordinateTransforms
...
Equivalent projections do not need to be handled here, and the forward
and inverse functions can be function arguments instead of being nested
in an object literal.
2014-07-09 15:33:13 +02:00
Andreas Hocevar
90c745006d
Update to use the documented Proj4js 2.2.x API
2014-07-09 15:33:12 +02:00
Andreas Hocevar
a22d7e4d22
Allow Proj4js to be loaded after OpenLayers
2014-07-09 15:33:12 +02:00
Andreas Hocevar
88ab1ac61a
Doc changes suggested by @probins
2014-07-08 22:06:21 +02:00
Andreas Hocevar
8b2277cdda
Use proj4.defs instead of proj4.Proj, to conform with the proj4js API
2014-07-08 22:06:21 +02:00
Andreas Hocevar
8b89f5b689
Update API to work with custom transforms, including proj4js
...
All transparent proj4js handling is now in ol.proj.get, and a new
addCoordinateTransforms function makes it easy to configure custom
transform functions. ol.Proj4jsProjection is no longer needed.
2014-07-08 22:06:20 +02:00
Andreas Hocevar
dc09b0a27f
Update externs and ol.HAVE_PROJ4JS for new proj4js API
2014-07-08 22:06:20 +02:00
Tim Schaub
1f88015db0
Add ol.proj.transformExtent function
2014-07-06 13:22:47 -06:00
Tim Schaub
4cf5ab4620
Use @api annotation instead of @todo api
2014-07-05 15:41:14 -04:00
Peter Robins
ff3e66d550
Improve docs for projection/transform functions
2014-06-23 06:16:35 -04:00
Peter Robins
0a2b3b0bca
Stop exporting getTransformFromProjections and transformWithProjections
2014-06-18 08:19:56 +01:00
Peter Robins
41d9f0360a
Add @classdesc to classes
2014-06-09 12:10:19 -04:00
Tim Schaub
e4e3b2229a
Defines in ol namespace defined in ol.js
2014-04-30 08:54:30 -06:00
Andreas Hocevar
fbdbbfb7a7
Get rid of stability annotations and document stability with api
...
This change adds a stability value to the api annotation, with
'experimental' as default value.
enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.
Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Andreas Hocevar
c17ac0cae3
Greatly simplify and document the usage of JSDoc
...
This commit simplifies the exports.js plugin so it only relies
on the stability notes to generate the documentation, which
completely decouples it from the exportable API.
As a rule of thumb, whenever something has an 'api' annotation,
it should also have a 'stability' annotation. A more verbose
documentation of ol3 specific annotation usage is available in
the new 'apidoc/readme.md' file.
This commit also modifies all source files to implement these
usage suggestions.
2014-04-29 09:53:06 -06:00
Tim Schaub
fb497f5288
Annotations for exports
2014-04-29 09:53:05 -06:00
Tom Payne
b901fba742
Allow ol.proj.Projection units option to be a string
2014-02-06 22:42:36 +01:00
Bart van den Eijnden
1ada9dfea5
Add export for ol.proj.METERS_PER_UNIT
2014-01-30 11:12:17 +01:00
Frederic Junod
9f79d33486
Create 'type' annotation for 'const' variables
...
From https://developers.google.com/closure/compiler/docs/js-for-compiler :
"The type declaration and additional comment are optional. If you
provide a type declaration, put the declaration on a separate line."
2014-01-09 09:53:20 +01:00
Olivier Terral
fe1f98899f
Add Zoomify stuff
2013-12-16 16:00:59 +01:00
Tom Payne
fbc23499e4
Add @struct annotation for simple classes
2013-12-13 18:59:26 +01:00
Éric Lemoine
315c42f0a7
Use olx namespace for options types in source code
...
sed command used: find src/ol -name '*.js' -exec sed -ri 's/\{ol(\.(\w|\.)+Options\=?\})/{olx\1/' \{\} \;
2013-12-12 15:02:03 +01:00
Paul Spencer
bada596b45
Add default stability level to docs of exported things.
2013-10-24 18:20:24 -04:00
Frederic Junod
ef929e9a72
Fix jsdoc formating
2013-09-24 12:18:00 +02:00
Tim Schaub
b524de417b
Rename ol.ProjectionUnits to ol.proj.Units
2013-09-15 22:04:51 -06:00