Commit Graph

9466 Commits

Author SHA1 Message Date
ahocevar 11cbbab901 Simplifying ranges structure by adding compiler hints
In JavaScript, keys of object literals are always strings, and
internal type conversions are performed. Now if we tell the
compiler that keys are numbers, we get inconsistent types when
iterating through keys. So instead we set the key type to string
and do a type cast to make the compiler happy. Note that we
could also do toString() instead of a type cast, but it would
add a performance penalty (see
http://jsperf.com/internal-type-conversion-vs-tostring-for-object-keys).
2013-06-17 17:37:48 +02:00
Tom Payne 85ca39cf0c Add warnings about internal classes and functions 2013-06-06 18:36:40 +02:00
Tom Payne a858664035 Add warning about internal API to example 2013-06-06 18:36:00 +02:00
Tom Payne 5850dff254 Use long LineString in ten-thousand-points example 2013-06-01 18:16:44 +02:00
Tom Payne 45572931a1 Draw LineStrings using drawElements
This enables drawing of LineStrings with more than two coordinates.
2013-06-01 18:16:43 +02:00
Tom Payne e260255ce8 Return Uint16Array from ol.geom2.LineStringCollection#getIndices 2013-06-01 18:16:43 +02:00
Tom Payne 38c0e24bcd Add Assertion#arreql
Needed because expect.js's eql does not support typed arrays.
2013-06-01 18:16:43 +02:00
Tom Payne 3225a07f6f Add ol.geom2.LineStringCollection#getIndices 2013-06-01 18:16:43 +02:00
Tom Payne db2f805ed9 Return split values in a single interleaved Float32Array 2013-06-01 18:16:43 +02:00
Tom Payne 42f15f000b Add ol.structs.Buffer#getSplit32 2013-06-01 18:16:43 +02:00
Tom Payne f61edacb5c Activate ol.renderer.canvas.VectorLayer2 bare skeleton 2013-06-01 18:16:43 +02:00
Tom Payne 674468268e Add ol.renderer.canvas.VectorLayer2 bare skeleton 2013-06-01 18:16:43 +02:00
Tom Payne f55fed9bc3 Add ten thousand points example 2013-06-01 18:16:42 +02:00
Tom Payne 2484cf2c55 Add line string rendering 2013-06-01 18:16:42 +02:00
Tom Payne 8f86288614 Add line string collections to ol.source.VectorSource2 2013-06-01 18:16:42 +02:00
Tom Payne 1690cb9cae Add ol.geom2.LineStringCollection 2013-06-01 18:16:42 +02:00
Tom Payne 4cc5441579 Activate ol.renderer.webgl.VectorLayer2 2013-06-01 18:16:42 +02:00
Tom Payne e4b5ec8f0b Add ol.renderer.webgl.VectorLayer2 2013-06-01 18:16:42 +02:00
Tom Payne bed8c44859 Add ol.layer.VectorLayer2 2013-06-01 18:09:29 +02:00
Tom Payne ac48fae0af Add ol.source.VectorSource2 2013-06-01 18:09:29 +02:00
Tom Payne 93ba55d357 Add ol.geom2.PointCollection 2013-06-01 18:09:29 +02:00
Tom Payne d51cdc0e48 Add ol.geom2 utility functions 2013-06-01 18:09:29 +02:00
Tom Payne 7fd2e1ffca Factor out ol.structs.Buffer#allocate 2013-06-01 18:09:29 +02:00
Tom Payne bcf7707b01 Factor out ol.structs.Buffer#markDirty 2013-06-01 18:09:28 +02:00
Frédéric Junod 07694c52b0 Merge pull request #753 from fredj/size-as-array
Redefine ol.Size to be Array.<number>
2013-06-01 08:40:35 -07:00
Frederic Junod a1a7e21f92 Redefine ol.Size to be Array.<number> 2013-06-01 10:22:06 +02:00
ahocevar 5560829695 Merge pull request #755 from ahocevar/newline
Fixing linter error
2013-05-31 19:07:46 -07:00
ahocevar b746116a20 Fixing linter error 2013-05-31 20:07:04 -06:00
ahocevar 4d5149a35f Merge pull request #754 from ahocevar/geom-doc
Exposing ol.geom.GeometryType
2013-05-31 14:05:22 -07:00
ahocevar 56ac30de91 Exposing ol.geom.GeometryType
This is necessary for using ol.filter.Geometry.
2013-05-31 15:04:55 -06:00
Frédéric Junod 1d7ca27e61 Merge pull request #478 from fredj/pixel-as-array
Redefine ol.Pixel to be Array.<number>
2013-05-31 07:26:54 -07:00
Éric Lemoine a2316e6e14 Merge pull request #752 from elemoine/color-examples
Add color filter values to buttons
2013-05-31 07:22:53 -07:00
Frederic Junod be081fd44e Redefine ol.Pixel to be Array.<number> 2013-05-31 15:53:04 +02:00
Éric Lemoine 93fd685ca7 Display hue/saturation value in button text 2013-05-31 15:47:17 +02:00
Éric Lemoine 84b1886666 Display brightness/contrast value in button text 2013-05-31 15:45:40 +02:00
Tom Payne 075f4aadc7 Merge pull request #748 from twpayne/rename-projection-to-proj
Rename ol.projection to ol.proj
2013-05-31 04:34:22 -07:00
Frédéric Junod e9adc06bee Merge pull request #694 from fredj/backbone-model
Change ol.Object event name syntax
2013-05-31 04:33:51 -07:00
Frederic Junod 984002a7ec Change ol.Object event name syntax
'changed' to 'change' and '<attribute>_changed' to 'change:<attribute>'.
2013-05-31 12:38:37 +02:00
Tom Payne 46553c719c Rename ol.projection to ol.proj 2013-05-30 18:55:58 +02:00
Tim Schaub 5e5d8e5b17 Merge pull request #739 from tschaub/attribution-style
Style for attribution control
2013-05-30 08:00:21 -07:00
Tim Schaub 7e20ea160c Simplify style 2013-05-30 08:59:31 -06:00
Tim Schaub 3d0f7f3b70 Merge pull request #738 from tschaub/allow-stop
Allow user to stop map at the end of a drag
2013-05-30 06:15:05 -07:00
Bart van den Eijnden 317281b37b Merge pull request #729 from bartvde/wktsingleton
static read and write methods on ol.parser.WKT (r=@ahocevar)
2013-05-30 00:29:53 -07:00
Tom Payne 795ea69982 Merge pull request #722 from twpayne/unused-variable-check
More rigorous linting
2013-05-28 08:06:30 -07:00
Tom Payne 11672db967 Use === and !== for comparisons with 0 2013-05-28 16:07:48 +02:00
Tom Payne c0cfc7872e Add missing semicolons 2013-05-28 16:03:32 +02:00
Tom Payne e744a1b6e9 Enable all gjslint errors 2013-05-28 16:01:34 +02:00
Tom Payne 975e180b26 Fix typo in ol.style.Icon 2013-05-28 16:01:34 +02:00
Tom Payne 7046ebe261 Remove unused variables in tile range 2013-05-28 16:01:34 +02:00
Tom Payne f4d54ace1d Remove unused variables in structs 2013-05-28 16:01:34 +02:00