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
Tim Schaub
9a29c0e22d
Rename ol.ProjectionLike to ol.proj.ProjectionLike
2013-09-15 22:01:56 -06:00
Tim Schaub
3b20cc7b53
Rename ol.Projection to ol.proj.Projection
2013-09-15 22:01:56 -06:00
Tim Schaub
bb915cbf3d
Less code
...
Since out meters per unit conversion table is a bit spare, prefer the configured conversion.
2013-06-24 12:27:36 -06:00
Tim Schaub
129e4d5704
Fix doc bug
2013-06-24 12:21:56 -06:00
Tim Schaub
5a95d606f8
Override for clarity
2013-06-24 12:20:34 -06:00
Tim Schaub
d10eff97a2
Allow getMetersPerUnit to work without units identifier (see #814 )
2013-06-24 11:34:16 -06:00
ahocevar
37b369e0d7
Making extent optional for projections
...
The projection validity extent is used to generate a sensible
set of default resolutions and a sensible default tile grid.
By making it optional, we can still generate defaults - with
zoom levels that are similar to the default web mercator zoom
levels (based on fitting the world on a single tile, even if the
projection is not available for the whole world).
2013-06-17 15:24:37 +02:00
Bart van den Eijnden
d552d27a35
Merge pull request #783 from bartvde/apidoc2
...
Add more content for the API doc (r=@twpayne,@tschaub,@fredj)
2013-06-12 11:05:07 -07:00
Tom Payne
9751bde8d1
Clean up whitespace
2013-06-12 16:05:00 +02:00
Bart van den Eijnden
8dc97790bc
Add more content for the API doc
...
Involves additions to (there will be subsequent pull requests for other
classes):
- ol.Attribution
- ol.Collection
- ol.Expression
- ol.Feature
- ol.Geolocation
- ol.Map
- ol.Object
- ol.Overlay
- ol.Projection
- ol.View2D
- ol.control.Attribution
- ol.control.Control
- ol.control.FullScreen
- ol.control.Logo
- ol.control.MousePosition
- ol.control.ScaleLine
- ol.control.Zoom
- ol.control.ZoomSlider
- ol.dom.Input
- ol.filter.Filter
- ol.filter.Geometry
- ol.filter.Logical
2013-06-11 20:56:04 +02:00
Tom Payne
46553c719c
Rename ol.projection to ol.proj
2013-05-30 18:55:58 +02:00