Andreas Hocevar
7cc43d36ef
Merge pull request #4597 from ahocevar/direct-render
...
Render tiles directly to the map canvas
2016-02-18 11:06:34 +01:00
Andreas Hocevar
2d2ebe0e12
Merge pull request #4862 from ahocevar/osgeo-badge
...
Add OSGeo badge
2016-02-18 09:53:59 +01:00
Andreas Hocevar
92da3629d7
Add OSGeo badge
2016-02-18 09:47:45 +01:00
Andreas Hocevar
bcf379cc8e
Merge pull request #4794 from ahocevar/fixed-tileloading
...
Make tile loading count no longer depend on source count
2016-02-16 15:51:55 +01:00
Andreas Hocevar
44c6972f31
Merge pull request #4632 from bjnsn/fill-color-overload
...
Overloading fill color (polygon or text) with CanvasPattern and CanvasGradient
2016-02-15 20:01:35 +01:00
Andreas Hocevar
952b99742e
Add tests, remove unused code, encapsulate repeated code in functions
2016-02-15 17:00:06 +01:00
Andreas Hocevar
a109062b1f
Rotate map canvas after composition
2016-02-15 17:00:06 +01:00
Andreas Hocevar
ff07f3a385
Merge pull request #4830 from ahocevar/proj4-tests
...
Make sure window.proj4 is always restored in tests
2016-02-15 09:22:54 +01:00
Andreas Hocevar
27f1fb6fc6
Merge pull request #4838 from ahocevar/regex-instead-of-endswith
...
Use regular expression instead of String#endsWith() check
2016-02-14 23:24:36 +01:00
Andreas Hocevar
cd2dfc7f10
Use regular expression instead of String#endsWith() check
2016-02-14 23:15:15 +01:00
Andreas Hocevar
09517659b1
Merge pull request #4837 from openlayers/greenkeeper-metalsmith-layouts-1.5.4
...
Update metalsmith-layouts to version 1.5.4 🚀
2016-02-14 18:54:05 +01:00
Andreas Hocevar
c27b1e4e3b
Merge pull request #4836 from ahocevar/ua-lowercase
...
Use lowercase for all user agent checks
2016-02-14 16:14:26 +01:00
Andreas Hocevar
0432c863c7
Use lowercase for all user agent checks
2016-02-14 14:53:30 +01:00
Andreas Hocevar
27908edea1
Make sure window.proj4 is always restored in tests
2016-02-13 14:09:25 +01:00
Andreas Hocevar
98b823c5fc
Render tiles directly to the map canvas
...
This change removes the overhead of rendering tiles to an intermediate canvas.
2016-02-12 12:54:19 +01:00
Andreas Hocevar
557372203f
Merge pull request #4823 from ahocevar/layers-not-required
...
Fix type for layers option on ol.interaction.Select
2016-02-12 12:53:44 +01:00
Andreas Hocevar
6fbe160159
Fix type for layers option on ol.interaction.Select
2016-02-12 12:42:38 +01:00
Andreas Hocevar
057633c2c4
Merge pull request #4795 from ahocevar/goog-cleanup
...
Cleanup after goog.array, goog.object and goog.isDef removal
2016-02-05 21:38:57 +01:00
Andreas Hocevar
d0eb6322c3
Cleanup after goog.array, goog.object and goog.isDef removal
2016-02-05 14:52:52 +01:00
Andreas Hocevar
3f36e0967f
Make tile loading count no longer depend on source count
2016-02-05 09:38:16 +01:00
Andreas Hocevar
0c23d9a7ff
Keep track of tile source count
2016-02-04 06:54:45 -07:00
Andreas Hocevar
04db1c3e4d
Expand urls before setting this.urls
2016-02-03 16:53:44 +01:00
Andreas Hocevar
b9b4778d05
Properly detect feature on unmanaged layer for toggle selection
2016-02-03 16:52:05 +01:00
Andreas Hocevar
00116b7c74
Merge pull request #4711 from ahocevar/no-goog-events
...
Removal of goog.events.*
2016-02-03 14:05:32 +01:00
Andreas Hocevar
a848321842
Merge pull request #4777 from gberaudo/expanded-urls
...
Fix source.UrlTile URL expansion
2016-02-03 13:03:37 +01:00
Andreas Hocevar
af1f2bdda8
Expand urls before setting this.urls
2016-02-03 12:49:12 +01:00
Andreas Hocevar
7a8d15fe47
Use more consistent variable names and reduce findListener_ calls
2016-02-03 11:19:38 +01:00
Andreas Hocevar
78f44dcc8a
Improve XHR and ol.net.jsonp result/failure handling
2016-02-03 11:19:38 +01:00
Andreas Hocevar
dc0393acff
Add map tests for resize and animationDelay
2016-02-03 11:19:38 +01:00
Andreas Hocevar
73f5e11039
Add tests for ol.control.ZoomSlider
2016-02-03 11:19:38 +01:00
Andreas Hocevar
ac1d7572e4
Add tests for scroll zoom
2016-02-03 11:19:38 +01:00
Andreas Hocevar
ec6f2e575b
Add tests for keyboard pan and zoom
2016-02-03 11:19:38 +01:00
Andreas Hocevar
8b171d3ca6
Add tests for file dragging
2016-02-03 11:19:38 +01:00
Andreas Hocevar
136c8af878
Add tests and documentation for ol.net.jsonp
...
ol.net.Jsonp was renamed to ol.net.jsonp, because it is not a constructor.
2016-02-03 11:19:38 +01:00
Andreas Hocevar
8d0ef13505
Add tests and documentation for goog.events.*
2016-02-03 11:19:38 +01:00
Andreas Hocevar
cf4556f115
Add tests and documentation for ol.events.Event
2016-02-03 11:19:38 +01:00
Andreas Hocevar
5ba8b13ccf
Add tests and documentation of ol.events.EventTarget
2016-02-03 11:19:38 +01:00
Andreas Hocevar
c51d717657
Refactor event manager to remove memory leaks
2016-02-03 11:19:38 +01:00
Andreas Hocevar
d7497f9686
Always provide useCapture and async args to browser
2016-02-03 11:19:38 +01:00
Andreas Hocevar
f35d0106b8
Remove goog.net.* and goog.async.AnimationDelay
2016-02-03 11:19:38 +01:00
Andreas Hocevar
2b451e7893
Remove goog.dom.ViewportSizeMonitor
2016-02-03 11:19:38 +01:00
Andreas Hocevar
7e27ba1d42
Remove goog.fx.Dragger
2016-02-03 11:19:38 +01:00
Andreas Hocevar
6ac3f30c8f
Remove goog.events.MouseWheelEvent and goog.events.MouseWheelHandler
2016-02-03 11:19:38 +01:00
Andreas Hocevar
1a6daa297e
Remove goog.events.KeyHandler
2016-02-03 11:19:38 +01:00
Andreas Hocevar
0f216659f9
Remove goog.fs.FileReader and goog.events.FileDropHandler
2016-02-03 11:19:38 +01:00
Andreas Hocevar
3f2d79b7fe
Replace goog.events.Event/EventTarget system with our own
...
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Andreas Hocevar
ebc98ec1bb
Address TODOs
...
To make sure that our binarySearch implementation meets the requirements of
the library, I added more tests for ol.geom.flat.interpolate.lineString, only
to find out that it does not handle line strings with repeated vertices
properly, regardless of what binarySearch implementation is used.
2016-02-03 11:41:41 +13:00
Andreas Hocevar
2fb33ba940
Type fixes and simplifications
2016-02-03 11:41:40 +13:00
Andreas Hocevar
39b9ba87fc
Merge pull request #4736 from ahocevar/fix-select
...
Properly detect feature on unmanaged layer for toggle selection
2016-02-02 08:58:16 +01:00
Andreas Hocevar
b6fa480c97
Merge pull request #4756 from adube/fix-vector-tile-override
...
Remove VectorTile getSource re-definition of return value
2016-01-31 07:39:39 +01:00
Andreas Hocevar
ecb2a42900
Properly detect feature on unmanaged layer for toggle selection
2016-01-30 18:13:48 +01:00
Andreas Hocevar
dad92e723c
Merge pull request #4733 from ahocevar/fix-scale
...
Avoid rendering too big and too small images for vector tiles
2016-01-30 17:51:35 +01:00
Andreas Hocevar
9bf2242626
Merge pull request #4725 from ahocevar/vectortile-projection
...
Untangle vector tile feature reprojection
2016-01-27 14:12:16 +01:00
Andreas Hocevar
44764ec1d1
Use rendered tile size limit to avoid big images
...
When using tile sets with a high tilePixelRatio, the maximum pixel size can
trouble the browser. Instead, we now use replay rendering by tile size limits
instead of resolution ratio limits.
2016-01-27 13:38:56 +01:00
Andreas Hocevar
7b78c215ae
Merge pull request #4720 from ahocevar/tileloadfunction-docs
...
Improve tileLoadFunction docs
2016-01-27 10:32:12 +01:00
Andreas Hocevar
52c6739b95
Improve tileLoadFunction docs
2016-01-27 10:17:46 +01:00
Andreas Hocevar
6290fb3227
Merge pull request #4717 from openlayers/greenkeeper-phantomjs-2.1.2
...
Update phantomjs to version 2.1.2 🚀
2016-01-27 10:08:06 +01:00
Andreas Hocevar
ebcccd2cf7
Merge pull request #4727 from nicholas-l/phantomjs2
...
Fix phantomjs
2016-01-27 09:56:47 +01:00
Andreas Hocevar
483376deb2
Untangle vector tile feature reprojection
2016-01-27 00:42:51 +01:00
Andreas Hocevar
7d168cb6e2
Merge pull request #4697 from gberaudo/bind_tileurl_function
...
Bind tileUrlFunction to the source
2016-01-20 22:10:47 +01:00
Andreas Hocevar
7277e295e6
Merge pull request #4673 from ahocevar/fixed-tileurlfunction
...
Respect fixed tile url functions when setting url(s)
2016-01-20 13:28:32 +01:00
Andreas Hocevar
86c7f950d6
Add setUrl tests
2016-01-19 13:40:47 +01:00
Andreas Hocevar
4b441dc503
Respect fixed tile url functions when setting url(s)
2016-01-19 13:40:47 +01:00
Andreas Hocevar
5961431505
Merge pull request #4677 from ahocevar/pixel-proj
...
Make pixel projection handling work in compiled mode
2016-01-15 22:06:42 +01:00
Andreas Hocevar
d6a8c9465e
Make pixel projection handling work in compiled mode
...
The compiler seems to have trouble with functions that can run with
different 'this' types. By moving the units handling to the callback, this
issue can be avoided.
2016-01-15 20:59:16 +01:00
Andreas Hocevar
69ad741dd4
Merge pull request #4666 from WeaveTeam/dragbox-dragevent-pr
...
Add a 'boxdrag' event to ol.interaction.DragBox. Resolves #4563 .
2016-01-13 12:43:26 +01:00
Andreas Hocevar
c2f90f21db
Merge pull request #4647 from ahocevar/snap-round-to-pixel
...
Proper rounding for possibly negative numbers
2016-01-11 16:34:24 +01:00
Andreas Hocevar
a3147c5d08
Proper rounding for possibly negative numbers
2016-01-11 16:25:09 +01:00
Andreas Hocevar
d916e8ccaf
Merge pull request #4629 from ahocevar/scaleline
...
Simplify scaleline calculation
2016-01-11 10:12:53 +01:00
Andreas Hocevar
d05b519f2f
Merge pull request #4457 from alexbrault/colour-icon
...
Add color option to ol.style.Icon
2016-01-10 23:19:54 +01:00
Andreas Hocevar
0f8373dd2d
Merge pull request #4638 from ahocevar/proj-extent
...
Do not rely on projection extent
2016-01-08 10:44:59 +01:00
Andreas Hocevar
dfb534f1d4
Do not rely on projection extent
2016-01-08 10:25:56 +01:00
Andreas Hocevar
393a95e41c
Properly handle modulo of negative numbers
2016-01-07 20:19:40 +01:00
Andreas Hocevar
7a8451adeb
Add example with US scale line and reprojection
2016-01-07 20:14:45 +01:00
Andreas Hocevar
b8fc917016
Do not depend on units for resolutions calculation
2016-01-07 20:14:44 +01:00
Andreas Hocevar
6b8da1237c
Simplify scaleline calculation
2016-01-07 20:14:44 +01:00
Andreas Hocevar
5c49e399ce
Merge pull request #4581 from ahocevar/no-render-on-interaction-start
...
Do not render in handleDownEvent
2016-01-07 18:24:39 +01:00
Andreas Hocevar
3d8adaab67
Merge pull request #4630 from ahocevar/meters-per-unit
...
Simplify meters per unit handling
2016-01-06 14:06:43 +01:00
Andreas Hocevar
24f8cba0a1
Simplify meters per unit handling
2016-01-06 13:53:55 +01:00
Andreas Hocevar
cde6dce939
Merge pull request #4574 from WeaveTeam/dragbox-config-pr
...
Added boxEndCondition to DragBoxOptions to replace the hardcoded chec…
2016-01-06 11:47:56 +01:00
Andreas Hocevar
15be53e98c
Merge pull request #4613 from ahocevar/select-self
...
Include own layer in layerFilter and only select unselected features
2016-01-05 17:48:20 +01:00
Andreas Hocevar
a65d2d4078
Include own layer in layerFilter and only select unselected features
...
When selecting an already selected feature, it will be on the Select
interaction's featureOverlay_. So we need to include that featureOverlay_
in the layer filter, regardless of what the user set as layer filter.
When in toggle mode, we need to make sure that we only select features that
are not already included in the selection.
2016-01-04 21:55:00 +01:00
Andreas Hocevar
9f43716723
Merge pull request #4596 from ahocevar/tile-key
...
Use consistent tile coordinate keys
2016-01-04 19:27:47 +01:00
Andreas Hocevar
b208550e6e
Merge pull request #4595 from ahocevar/opaque-xyz
...
Pass 'opaque' option on to superclass
2015-12-28 14:40:59 +01:00
Andreas Hocevar
300b5cad44
Use consistent tile coordinate keys
...
Tile coordinate keys from ol.tilecoord.toString() are different than the ones
from Array.prototype.toString(). Both were used, potentially causing problems.
This change makes them consistent and removes the now unnecessary
ol.tileCoord.toString() function.
2015-12-27 17:59:51 +01:00
Andreas Hocevar
72ec3fd48d
Pass 'opaque' option on to superclass
2015-12-27 17:08:54 +01:00
Andreas Hocevar
552063aeac
Do not render in handleDownEvent
2015-12-18 18:21:32 +01:00
Andreas Hocevar
dad58ba622
Merge pull request #4557 from ahocevar/vectortile-canvas
...
Conditionally render tiles to a separate tile canvas
2015-12-18 10:43:52 +01:00
Andreas Hocevar
bbc49ca805
Merge pull request #4580 from openlayers/greenkeeper-fs-extra-0.26.3
...
Update fs-extra to version 0.26.3 🚀
2015-12-18 08:05:36 +01:00
Andreas Hocevar
38bb1569af
Remove no longer needed buffer for direct rendering
2015-12-18 00:27:42 +01:00
Andreas Hocevar
a512a5b115
Merge pull request #4578 from ahocevar/apidoc-landingpage
...
Fix apidoc landing page markup
2015-12-17 15:24:33 +01:00
Andreas Hocevar
20be8980e1
Merge pull request #4578 from ahocevar/apidoc-landingpage
...
Fix apidoc landing page markup
2015-12-17 15:15:04 +01:00
Andreas Hocevar
34139f4dce
Fix apidoc landing page markup
2015-12-17 15:13:26 +01:00
Andreas Hocevar
9affb99899
More sensible split between direct and canvas rendering
2015-12-17 10:58:35 +01:00
Andreas Hocevar
80f10ce824
Avoid unnecessary calculation in loops
2015-12-17 00:17:28 +01:00
Andreas Hocevar
46a266fa5c
Fix replays on transformed contexts
2015-12-17 00:17:27 +01:00
Andreas Hocevar
4f2df30f1d
Avoid clipping by rendering tiles with rotated labels
...
This only works when the device pixel ratio is 1. Labels are incorrectly
positioned and not at all rotated for other pixel ratios. I cannot find the
cause for this problem.
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
Andreas Hocevar
9b1416da29
Merge pull request #4552 from ahocevar/fix-proj-compiler-issue
...
Make sure compiled code calls ol.VectorTile#setProjection
2015-12-13 13:31:47 +01:00
Andreas Hocevar
c4237c7858
Merge pull request #4544 from openlayers/greenkeeper-vector-tile-1.2.0
...
Update vector-tile to version 1.2.0 🚀
2015-12-11 15:36:08 +01:00