Denilson Figueiredo de Sá
c8f0bb0ade
Improve ol.control.Rotate.prototype.resetNorth_ performance
...
Changing. resetNorth_ function from O(n) to O(1).
To reproduce this issue, open the developer console and execute:
map.getView().setRotation(5000000000);
Then click on the rotation button. Before the commit, it takes a few
seconds, after this commit it is instantaneous.
In addition, due to limited floating point precision, the previous code
calculates a different value from this one.
2015-09-30 09:37:51 -03:00
Andreas Hocevar
8e122334ed
Merge pull request #4195 from awaterme/Issue-4171
...
#4171 : Prefer current layout as default on MultiLineString.setLineStrings()
2015-09-30 11:07:28 +02:00
Andreas Watermeyer
ea8ffd8b6a
Issue #4171 : Prefer current layout as default on MultiLineString.setLineStrings()
2015-09-30 09:21:14 +02:00
Andreas Hocevar
79766ad25c
Merge pull request #4172 from awaterme/Issue-4171
...
#4171 : Prefer current layout as default on Multipolygon.setPolygons()
2015-09-29 22:58:12 +02:00
Marc Jansen
901eee1887
Merge pull request #4190 from marcjansen/no-goog-functions-constant
...
Remove use of goog.functions.constant
2015-09-29 22:11:50 +02:00
Marc Jansen
cd5b15fa55
Remove use of goog.functions.constant
2015-09-29 20:28:06 +02:00
Andreas Watermeyer
509cb3a3c9
Issue #4171 : Prefer current layout as default on Multipolygon.setPolygons()
2015-09-29 17:40:46 +02: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
Marc Jansen
8209ed0a4c
Merge pull request #4189 from marcjansen/null-function
...
Replace goog.nullFunction with ol.nullFunction
2015-09-29 17:25:18 +02: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
Frederic Junod
23de622d29
Use goog.object.isEmpty instead of goog.object.getKeys
2015-09-29 14:24:34 +02:00
Frédéric Junod
fbef99ae96
Merge pull request #4165 from fredj/es5
...
Use ECMAScript 5.1 Array functions instead of goog.array
2015-09-29 14:09:32 +02:00
Frederic Junod
496cece074
Remove use of goog.array.forEach
2015-09-29 10:55:17 +02:00
Frederic Junod
cd152cca14
Use a for loop instead of goog.array.forEach
...
The variable is a NodeList, not an Array.
https://developer.mozilla.org/en-US/docs/Web/API/NodeList#Why_is_NodeList_not_an_Array
2015-09-29 10:55:17 +02:00
Frederic Junod
252e60b5af
Remove use of goog.array.indexOf
2015-09-29 10:55:17 +02:00
Frederic Junod
f49e82ade1
Remove use of goog.array.filter
2015-09-29 10:54:55 +02:00
Frederic Junod
9e2a393426
Remove use of goog.array.map
2015-09-29 10:54:55 +02:00
Frédéric Junod
4e7f558234
Merge pull request #4181 from fredj/ol.array.includes
...
Remove use of goog.array.contains
2015-09-29 10:54:45 +02:00
Frederic Junod
da611b9cb5
Use ol.array.includes instead of goog.array.indexOf
2015-09-29 10:46:04 +02:00
Frederic Junod
88c3891bef
Replace goog.array.contains with ol.array.includes
2015-09-29 10:42:07 +02:00
Frédéric Junod
504e67303f
Merge pull request #4162 from fredj/rm_legacy_ie
...
Remove ol.LEGACY_IE_SUPPORT
2015-09-29 10:37:04 +02:00
Tim Schaub
ba5b950d5c
Merge pull request #4174 from tschaub/fewer-layer-props
...
Remove hue, saturation, contrast, and brightness as layer properties.
2015-09-29 01:16:11 -06:00
Éric Lemoine
e8257e805d
Merge pull request #4183 from elemoine/remove-extra-api
...
Remove @api on getHitDetectionFramebuffer
2015-09-28 16:34:51 +02:00
Éric Lemoine
4c32ec4d67
Remove @api on getHitDetectionFramebuffer
...
This removes the `@api` marker on `getHitDetectionFramebuffer`. I think this was added by mistake in 7404204 .
2015-09-28 16:11:55 +02:00
Marc Jansen
fd69e5f2be
Merge pull request #4179 from marcjansen/no-goog-now
...
Use Date.now() instead of goog.now()
2015-09-28 16:00:49 +02:00
Frederic Junod
e877a21b8e
Remove legacy IE support
2015-09-28 15:36:49 +02:00
Marc Jansen
2ed3f28ab8
Use Date.now() instead of goog.now()
2015-09-28 15:23:36 +02:00
Tim Schaub
55908485f2
Add detail to the upgrade notes
2015-09-27 23:02:24 -06:00
Tim Schaub
d6f03697d7
Remove hue, saturation, contrast, and brightness
2015-09-27 13:16:30 -06:00
Tim Schaub
6c5775e6f6
Merge pull request #4175 from tschaub/clamp
...
Remove use of goog.math.clamp().
2015-09-27 13:13:25 -06:00
Andreas Hocevar
28eef6c479
Merge pull request #4173 from ahocevar/zoom-only-when-changed
...
Only animate when resolution is about to be changed
2015-09-27 21:13:02 +02:00
Andreas Hocevar
4e48170fac
Only animate when resolution is about to be changed
2015-09-27 20:38:50 +02:00
Tim Schaub
f746cb7f57
Use ol.math.clamp()
2015-09-27 12:26:21 -06:00
Tim Schaub
5cac9d61cc
Merge pull request #4129 from openlayers/no-is-def
...
Remove use of goog.isDef.
2015-09-27 12:10:10 -06:00
Tim Schaub
29a1ea9ae3
Remove remaining goog.isDef() calls
2015-09-27 11:13:58 -06:00
Tim Schaub
c48ce003ba
Remove unnecessary goog.isDef() checks from map.js
2015-09-27 11:03:27 -06:00
Tim Schaub
27d1e808b8
Replace goog.isDef(foo[bar]) with bar in foo
2015-09-27 10:58:39 -06:00
Tim Schaub
b3b31ea16d
Inline various goog.isDef() calls
2015-09-27 10:51:03 -06:00
Tim Schaub
83c59ee255
Inline goog.isDef() calls for properties
2015-09-27 10:40:20 -06:00
Tim Schaub
36e336f406
Inline !goog.isDef() calls for properties
2015-09-27 10:37:20 -06:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
a86c270f6a
Inline simple !goog.isDef() calls
2015-09-27 10:31:16 -06:00
Tim Schaub
3a0683f373
Inline !goog.isDef() property checks
2015-09-27 10:24:38 -06:00
Tim Schaub
6638ae855d
Inline simple !goog.isDef() checks
2015-09-27 10:23:30 -06:00
Tim Schaub
b36d697585
Inline goog.isDef() property checks
2015-09-27 10:21:50 -06:00
Tim Schaub
7659e47e07
Inline simple goog.isDef() checks
2015-09-27 10:18:44 -06:00
Tim Schaub
cf5eadebaa
Define options
2015-09-27 10:11:30 -06:00
Tim Schaub
0927c55b3c
Toward natural JavaScript syntax
2015-09-25 12:16:42 -06:00
Marc Jansen
d610b206f7
Adjust checks against undefined as suggested
...
This commit changes the various checks against undefined as suggested by
@elemoine, see e.g. his comments on 38636513bfc3792125de2e711a24bd3c898875ac.
2015-09-25 11:37:30 -06:00