Tim Schaub
a30d4843cf
Merge pull request #5541 from probins/isnumber
...
Replace goog.isNumber
2016-07-02 09:20:53 -06:00
Peter Robins
3eea9d4558
Replace goog.isNumber
2016-07-01 09:35:54 +00:00
Tim Schaub
618cb389e5
Use ol.transform.compose() for common transform compositions
2016-06-24 19:33:53 +02:00
Andreas Hocevar
6b4ee42c90
Refactor to a more convenient internal API
2016-06-23 13:10:41 +02:00
Andreas Hocevar
cf7ff841a7
Remove use of goog.vec.*
2016-06-23 13:10:41 +02:00
Andreas Hocevar
35129af7f0
Do not optimize lines away entirely
2016-06-23 10:38:10 +02:00
Frederic Junod
e289bfbb7d
Use ol.inherits instead of goog.inherits
2016-06-08 08:38:12 +02:00
Peter Robins
2117f2e3b1
Convert all typedefs to CamelCase
2016-05-18 19:44:45 +00:00
Peter Robins
176ddd3403
Rename non-api sub-namespace typedefs
2016-05-13 10:24:57 +00:00
Peter Robins
c7aeebed8c
Rename sub-sub-namespace typedefs to sub-namespace
...
These sub-sub-namespace typedefs are only used internally; some of them cause problems by creating a form of circular dependency. For example, ol.style.Atlas is created in style/atlasmanager.js; if ol.style.Atlas.Block is in a separate file, ol.style.Atlas is dependent on it, so the new file must precede ol.style.Atlas. However if it precedes it then it has to create the ol.style.Atlas namespace which should be created by atlasmanager.js. To get round this, these typedefs are renamed to remove the sub-sub-namespace.
Fortunately they are all non-api, so the rename should not affect anything.
2016-05-11 19:46:56 +00:00
Andreas Hocevar
f7147960a9
Add render options for vector tile layers
2016-04-19 13:04:38 +02:00
Andreas Hocevar
fe33910ec2
Revert "Batch polygon fill and stroke instructions"
2016-04-07 16:30:04 +02:00
Andreas Hocevar
ee53fd772d
Remove unnecessary duplicated polygon close points
2016-03-31 14:47:07 +02:00
Andreas Hocevar
18f3d7243d
Batch polygon fill and stroke instructions
2016-03-31 13:26:42 +02:00
Tim Schaub
88f8515fb6
Shorter names for drawing methods
2016-03-18 17:04:44 -06:00
Marc Jansen
068960e4b2
Don't use goog.isBoolean()
2016-02-16 23:52:20 +01:00
Brett Johnson
7f02b63ccc
Overloading fill color (polygon or text) with CanvasPattern and CanvasGradient.
2016-02-15 08:30:56 -08:00
Marc Jansen
efa82dccf9
Remove use of goog.isString()
2016-02-06 12:56:55 +01:00
Tim Schaub
8aecb3270c
Replace goog.object.isEmpty() with ol.object.isEmpty()
2016-02-04 06:54:44 -07:00
Guillaume Beraudo
289e571fb0
Remove all remaining unnecessary casts
...
There is still such a cast in the goog library itself.
See https://github.com/google/closure-library/pull/637
2016-02-03 16:26:43 +01:00
Nicholas L
d820b54443
Remove goog.array.equals and goog.array.stableSort
2016-02-03 11:41:39 +13:00
Bart van den Eijnden
4ef1f5e63f
Make sure icons show up in Safari
...
Make sure that drawImage calls don't exceed source image dimensions.
2016-01-12 15:57:11 +01:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7
Prefer single line assignment to 80 character limit
2016-01-11 18:56:08 -08:00
Tim Schaub
54df314936
Consistent curly brace style
2016-01-11 18:56:08 -08:00
Andreas Hocevar
a3147c5d08
Proper rounding for possibly negative numbers
2016-01-11 16:25:09 +01:00
Andreas Hocevar
46a266fa5c
Fix replays on transformed contexts
2015-12-17 00:17:27 +01:00
Andreas Hocevar
c1b16217f2
Conditionally render tiles to a separate tile canvas
...
Because clip geometries are anti-aliased in most browsers, there will be tiny
gaps between tiles. If tiles are rendered to a tile canvas which is then drawn
to the map canvas upon composition, these gaps can be avoided. For rotated
views, it is stil necessary to clip the tile, but in this case a 1-pixel
buffer is used.
This change also brings a huge performance improvement for panning, because
the fully rendered tiles can be reused.
Because of the added cost of using drawImage in addition to replaying the tile
replay group, we fall back to directly drawing to the map canvas when the tile
canvas would be too large, or during interaction/animation when resolution or
rotation change.
2015-12-17 00:17:27 +01:00
Bart van den Eijnden
25e0053a13
Rename defaultSort to numberSafeCompareFunction on ol.array
2015-12-16 13:40:05 +01:00
Bart van den Eijnden
e0be143ed5
Always pass on a compare function to sort
2015-12-16 10:54:46 +01:00
Philip Clifton
97995cf20b
Add newline support for text
2015-12-10 11:24:39 -06:00
Frederic Junod
a4fb2501d8
Remove use of goog.array.sort
...
Fixes #4160
2015-11-19 16:53:11 +01:00
Bart van den Eijnden
b426fa5509
Revert "Merge pull request #4339 from bartvde/issue-4337"
...
This reverts commit 7f4c6e3634 , reversing
changes made to c5dac0aa70 .
2015-11-12 20:29:54 +01:00
Andreas Hocevar
b29b969cfe
Avoid goog.getUid() with empty skippedFeaturesHash
2015-11-10 19:01:03 +01:00
Bart van den Eijnden
085a6c8135
Make sure drawImage works in Safari with an offset
2015-10-29 14:16:06 +01:00
Andreas Hocevar
5d264d2bf0
Remove right-handed polygon handling in renderer
...
Since ol.render.Feature assumes right-handed polygons anyway, this
extra optimization is not needed.
2015-10-28 10:29:04 +01:00
Andreas Hocevar
5832943773
Make changes suggested during the review
2015-10-28 10:29:04 +01:00
Andreas Hocevar
80fa26ddd8
Reduce the use of goog.*
2015-10-28 10:29:03 +01:00
Andreas Hocevar
cd2a2ebbc5
Do not call moveTo/lineTo when coordinates are the same
...
See http://jsperf.com/moveto-lineto-to-same-coordinate/3
2015-10-28 10:29:02 +01:00
Andreas Hocevar
6e2f82c397
Introduce ol.render.Feature
2015-10-28 10:29:02 +01:00
Andreas Hocevar
4b942bc4f6
Add VectorTile renderer
2015-10-28 10:29:01 +01:00
Marc Jansen
03ed8085b9
Fix a drawText regression introduced with 31a68e21
2015-10-09 11:49:45 +02:00
Andreas Hocevar
deea8060af
Fix canvas replay which broke with 31a68e2
...
See #4192
2015-10-04 23:12:39 +02:00
Frederic Junod
ef9b64673e
Remove unused local variables
2015-10-01 13:38:55 +02:00
Marc Jansen
31a68e21a5
Remove goog.isNull in render classes
2015-10-01 09:17:14 +02:00
Tim Schaub
6bdacced92
Merge pull request #4176 from tschaub/remove-isdefandnotnull
...
Remove use of goog.isDefAndNotNull().
2015-10-01 00:05:57 -06:00
Frédéric Junod
fd729216b5
Merge pull request #4188 from fredj/rm_goog_object_getKeys
...
Remove use of goog.object.getKeys
2015-09-29 17:33:13 +02:00
Tim Schaub
b48cabee28
Remove unnecessary goog.isDefAndNotNull() calls
2015-09-29 09:32:51 -06:00
Marc Jansen
bc58c383ba
Replace goog.nullFunction with ol.nullFunction
2015-09-29 16:39:35 +02:00
Frederic Junod
d2dd7584d8
Remove use of goog.object.getKeys
2015-09-29 14:24:34 +02:00