45 Commits
Author SHA1 Message Date
Paul Spencer 9802cfd56f Merge pull request #3011 from pagameba/master
opt_options may not be defined, use options
2014-12-05 08:50:51 -05:00
Paul Spencer 12ddc7da57 opt_options may not be defined, use options
Constructing an instance of `ol.interaction.DragPan` with no options should be possible, the reference to `opt_options` makes this throw an error when no options are passed.
2014-12-05 08:30:14 -05:00
Paul Spencer 8c41e6c720 Merge pull request #2810 from pagameba/patch-1
Remove unused properties from olx.source.TileVectorOptions
2014-10-07 09:47:12 -04:00
Paul Spencer 816cb44cc2 Remove unused properties from olx.source.TileVectorOptions 2014-10-07 09:25:29 -04:00
Paul Spencer fb242b5316 Return rather than fail if resolution is not defined 2014-08-12 20:27:17 -04:00
Paul Spencer 685265e1db Improve documentation for ol.Feature 2014-07-15 13:09:43 -04:00
Paul Spencer a02d21d4b5 Allow addFeaturesInternal to add multiple features lacking an id 2014-07-10 07:32:20 -04:00
Paul Spencer 8d991bd638 Add @todo API and describe ol.geom.Geometry funcs
The `clone()`, `getSimplifiedGeometry()` and `getType()` methods are all
base class methods documented in subclasses.  They should appear in
ol.geom.Geometry in the API docs as well.
2014-07-07 08:29:56 -04:00
Paul Spencer abe953e4e5 Use @classdesc notation (continuing #2178) 2014-07-03 08:09:25 -04:00
Paul Spencer a93f7b8190 Fix spelling of GEOMETRY_RENDERERS_ 2014-07-02 21:54:53 -04:00
Paul Spencer bf9dbd614a Use string values for ol.source.State enum
Many user-facing enums are string values and we document use of the string values rather than more confusing enum reference or the numeric values.
2014-06-26 08:15:03 -04:00
Paul Spencer 7d8dbbc7cc Remove getSimplifiedGeometry from ol.geom.Circle
The `getSimplifiedGeometry` method is unnecessary as
`ol.geom.SimpleGeometry`'s default implementation is to do the
same thing (return `this`).
2014-06-09 14:37:39 -04:00
Paul Spencer 6d3bbe61ce Upgrade to jsdoc 3.3. 2014-04-08 07:39:57 -04:00
Paul Spencer d1ee4b8fed Add documentation for the TopoJSON format. 2014-03-11 20:53:21 -04:00
Paul Spencer a646577bd6 Add documentation for the KML format. 2014-03-11 20:53:21 -04:00
Paul Spencer 37feb7db64 Add documentation for the IGC format. 2014-03-11 20:53:21 -04:00
Paul Spencer 3c85c32cc5 Add documentation for the GPX format. 2014-03-11 20:53:21 -04:00
Paul Spencer cc90d59cac Add documentation for the GeoJSON format. 2014-03-11 20:53:20 -04:00
Paul Spencer c74e01ca0a Add @function as a custom jsdoc tag for the linter. 2014-03-11 20:53:20 -04:00
Paul Spencer 7fd50c058b Add documentation for ol.format.Feature public API methods intended to be inherited by subclasses. 2014-03-11 20:53:20 -04:00
Paul Spencer 10d855afd4 Add and export documentation for ol.render.canvas.Immediate 2014-03-11 07:48:37 -04:00
Paul Spencer 7df3c7506f Add support for passing interactions as an array for consistency. 2013-11-01 08:03:06 -04:00
Paul Spencer 4e657e464c Add @todo observable documentation for observable properties
This PR adds documentation for observable properties, which will then be pulled into the docs correctly once #1180 is merged.  This is a first pass based on searching for definition of observable properties being defined as enums after lines ending with `Property = {`.  If there are observable properties implemented that don't follow this pattern then they are not included.

I've added simple descriptions based on what I know or could easily figure out, there may be some properties (like preload) that are not correctly described.

I've also added `readonly` annotations where I knew that a property was readonly.  I may have missed some readonly properties.

ol.layer.Base has a bunch of properties but I don't think it is exported so the documentation of these properties will not show up, so I added the documentation to ol.layer.Layer instead even though this isn't really where it should be documented.
2013-10-29 10:24:54 -04:00
Paul Spencer d18119d98b Remove unnecessary Get column from observables 2013-10-28 16:12:08 -04:00
Paul Spencer e858727bd0 Fix @todo observable name reference. 2013-10-28 16:11:40 -04:00
Paul Spencer d3b8d0b676 Add jsdoc plugin that maps @todo tags to @stability and @observable tags.
This is a temporary measure until Plovr handles custom tags or is replaced in the build system.

Add support for indicating API stability with inline documentation

In preparation for documenting the stability of API features, this commit adds support for indicating API stability via a new jsdoc tag @stability.  There is a small plugin for jsdoc that adds a new tag, @stabiility, with some ability to enforce specific level names.  The templates and css have been updated to include the stability level in the generated documentation. (+1 squashed commit)
Squashed commits:
[d6bc03d] Add jsdoc plugin for documenting observable properties of a class.
2013-10-28 15:17:59 -04:00
Paul Spencer bada596b45 Add default stability level to docs of exported things. 2013-10-24 18:20:24 -04:00
Paul Spencer 3173ddbb5f Fix a bug when frameState is null which occurs in offline mobile devices 2013-10-16 08:59:46 -04:00
Paul Spencer 3a91aa3d36 fix lint issue 2013-09-13 11:23:06 -04:00
Paul Spencer 3ab50facc7 Label the link to ol.interaction as ol.interaction.Interaction
The documentation is really talking about instance of Interaction, not the namespace.  This is more clear for users.
2013-09-13 11:23:06 -04:00
Paul Spencer 28ee9bcd9b remove export for conditionType as it breaks the build to have it in there. 2013-09-13 11:23:06 -04:00
Paul Spencer d7eee91195 Add exports for interactions. 2013-09-13 11:23:05 -04:00
Paul Spencer 4117a5df2d check iOS compass calibration via webkitCompassAccuracy
Ensure that webkitCompassAccuracy is not -1 as this indicates that the
compass has not been calibrated and its values cannot be trusted.
2013-09-09 08:05:37 -04:00
Paul Spencer 69872c99d2 Detect iOS compass heading
iOS webkit does not provide an absolute alpha, instead it provides
webkitCompassHeading.
2013-09-07 21:48:49 -04:00
Paul Spencer a0ca05d18e Use markdown format for inline links 2013-09-05 09:01:49 -04:00
Paul Spencer 74158e52be Update based on comments
This removes @class and fixes the return type pattern to match the
project standard.  There are a couple of minor changes to the text as
well.
2013-09-05 07:57:16 -04:00
Paul Spencer f9ba90f4ca More comprehensive docs for ol.DeviceOrientation
Adding an extended class description of DeviceOrientation along with
some additional details in the property accessors.
2013-09-04 21:28:59 -04:00
Paul Spencer fa48fc1905 Link to HTML5 Geolocation PositionOptions docs 2013-09-03 07:54:20 -04:00
Paul Spencer bfa1fbc2cd remove trailing whitespace to make the linter happy. 2013-08-30 13:31:10 -04:00
Paul Spencer 8c4c83b207 Improve documentation for animation-related stuff
The animation-related code is missing sufficient detail to make it
usable without digging in to the code.  This adds some additional
detail to the ol.animation namespace, the related options, and makes
note of the existance of ol.animation in the documentation of
ol.Map.addPreRenderFunction(s).
2013-08-30 11:32:47 -04:00
Paul Spencer 943efd66b0 Merge pull request #370 from pagameba/overviewmap
OverviewMap custom div bug.
2012-03-30 05:18:05 -07:00
Paul Spencer 30af95d034 a working test thanks to Marc. 2012-03-30 07:59:22 -04:00
Paul Spencer d4e6253447 indent 4. 2012-03-29 07:32:25 -04:00
Paul Spencer 9e31fb6e9a Update OverviewMap to test if calling minimizeControl or maximizeControl causes an exception. 2012-03-28 14:06:51 -04:00
Paul Spencer 175423b3ba In the case of an overview map rendered into a user-provided div, the minimize and maximize divs are not created so we need to test for existence of them in the showToggle method. 2012-03-28 11:40:14 -04:00