ahocevar
06406d968f
Adding equals method for comparing coordinates
2013-11-13 00:44:38 +01:00
ahocevar
e9b934d041
Let closestOnSegment return nothing more than a coordinate
...
Since we do not use the 'along' property anywhere, and the
resulting array returned by closestOnSegment could cause trouble
when working with 3d coodinates, now only the closest point is
returned, and the squared distance to the segment is calculated
by squaredDistanceToSegment instead.
2013-11-04 20:54:07 +01:00
ahocevar
1670b31142
Moving squaredDistanceToSegment to the coordinate package
2013-11-04 19:19:54 +01:00
Frederic Junod
1217243f84
Better ol.coordinate.* documentation
2013-10-28 17:34:54 +01:00
Frederic Junod
9ca74200ed
Remove opt_precision check in ol.coordinate.format
...
Default is already 0, see http://www.ecma-international.org/ecma-262/5.1/#sec-15.7.4.5
2013-10-28 16:26:21 +01:00
Frederic Junod
cdf34b558a
Add ol.coordinate.format function
...
Return a formatted coordinate. Example usage:
> ol.coordinate.format([0.01 ,12.14], "{x}, {y}", 2)
"0.01, 12.14"
> ol.coordinate.format([0.01 ,12.14], "lat: {y} / lon: {x}", 1)
"lat: 12.1 / lon: 0.0"
2013-10-28 15:32:43 +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
58fe110419
Rename ol.geom.VertexArray to ol.CoordinateArray
2013-08-30 13:30:53 -06:00
Tom Payne
539529af59
Improve type checking in ol.coordinate
2013-04-30 21:29:56 +02:00
ahocevar
58c8b07ab5
Get hit candidates from RTree, then refine result
...
Now we get exact hits also for lines and polygons.
2013-04-30 13:34:12 +02:00
Tom Payne
58a512b52c
Remove unused constant
2013-04-05 12:30:38 +02:00
Tom Payne
02196c94b5
Redefine ol.Coordinate to be Array.<number>
2013-04-05 12:30:37 +02:00
Éric Lemoine
0b62c92cb3
Use @expose for Coordinate.z
...
By annotating the z property with @expose the compiler does not try to optimize that property in any way. See https://developers.google.com/closure/compiler/docs/js-for-compiler . The doc says that @expose should never be used in library code, but that's the only way I found for our case.
2013-03-26 17:05:54 +01:00
Tom Payne
7755555cc3
Use NaN as default value for Z
2013-03-20 12:02:40 +01:00
Tom Payne
d3ea5236ef
Optionally extend ol.Coordinate to the third dimension
...
We continue to inherit from goog.math.Vec2 instead of goog.math.Vec3
because goog.math.Vec2 better represents a position in space, with
appropriate functionality, whereas goog.math.Vec3 represents a direction
and magnitude.
2013-03-19 22:10:21 +01:00
Bart van den Eijnden
5e29830462
Add WMTS GetCapabilities parser
...
Implements WMTS GetCapabilities parser, which depends partly on
an OWSCommon parser.
Integration with the layer source will be done at a later stage.
2013-02-19 16:32:56 +01:00
augustus
f253c1bcf8
Some comments (no changes to code)
2012-11-09 16:26:59 +01:00
Tom Payne
ee1d1fa3e7
Fold ol.CoordinateFormat into ol.Coordinate
2012-10-18 14:22:23 +02:00
Tom Payne
424dbd7582
Remove problematic (and unused) clone methods, move contains out of ol.Rectangle
2012-09-25 00:04:45 +02:00
Tom Payne
f8c31ba45c
s/ol3/ol/
2012-09-24 14:21:41 +02:00