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
Andreas Hocevar
fbb59d29b9
Make sure compiled code calls ol.VectorTile#setProjection
2015-12-11 15:20:21 +01:00
Andreas Hocevar
2ebcadfcd5
Merge pull request #4548 from ahocevar/vectortile-docs
...
Improve vector tile related docs
2015-12-11 12:16:35 +01:00
Andreas Hocevar
d9bb3adbe8
Improve vector tile related docs
2015-12-11 12:01:24 +01:00
Andreas Hocevar
3fef07f9e9
Merge pull request #4528 from ahocevar/simplify-tile-featureloader
...
Remove redundant code from ol.featureloader.tile
2015-12-09 14:12:17 +01:00
Andreas Hocevar
a5abd8df23
Merge pull request #4535 from ahocevar/osm-example-style
...
Do not use an array for a single style
2015-12-09 10:50:31 +01:00
Andreas Hocevar
73158b8c71
Do not use an array for a single style
2015-12-09 10:10:41 +01:00
Andreas Hocevar
8f4c6a5bbf
Remove redundant code from ol.featureloader.tile
2015-12-08 18:30:25 +01:00
Andreas Hocevar
3413f6d138
Merge pull request #4518 from ahocevar/osm-vector-tiles
...
Add support for OSM vector tiles
2015-12-08 11:01:49 +01:00
Andreas Hocevar
954a5077cf
Merge pull request #4524 from ahocevar/custom-symbols
...
Add example for rendering custom point symbols
2015-12-07 22:22:20 +01:00
Andreas Hocevar
0050f00703
Add example for rendering custom point symbols
2015-12-07 21:41:42 +01:00
Andreas Hocevar
867bcce1cc
Merge pull request #4523 from ahocevar/render-to-context
...
Allow rendering geometries to an arbitrary canvas
2015-12-07 19:13:47 +01:00
Andreas Hocevar
257abb63d7
Allow rendering geometries to an arbitrary canvas
2015-12-07 17:27:04 +01:00
Andreas Hocevar
ba93698c20
Merge pull request #4525 from ahocevar/test-render-retina
...
Make render tests work on more devices
2015-12-07 11:32:13 +01:00
Andreas Hocevar
35064a45f7
Merge pull request #4515 from ahocevar/icon-canvas
...
Accept HTMLCanvasElement for an icon's img
2015-12-07 11:26:02 +01:00
Andreas Hocevar
a940cdd6a7
Add support for OSM vector tiles
2015-12-07 11:15:25 +01:00
Andreas Hocevar
e978133b85
Make render tests work on more devices
...
By setting a device pixel ratio of 1.0 and increasing the tolerance for raster
reprojection tests, the render tests now also run from the console on OSX
devices with retina display.
2015-12-06 17:59:49 +01:00
Andreas Hocevar
0b4c0ee41c
Merge pull request #4521 from ahocevar/imagestyle-docs
...
Fix imagestyle docs
2015-12-06 11:43:13 +01:00
Andreas Hocevar
5a1588a2dc
Fix imagestyle docs
2015-12-06 11:33:40 +01:00
Andreas Hocevar
abb680d28f
Accept HTMLCanvasElement for an icon's img
2015-12-04 14:14:01 +01:00
Andreas Hocevar
2215f49617
Merge pull request #4472 from ahocevar/layer-filter
...
Do not ignore layer filter for unmanaged layers
2015-12-01 12:01:58 +01:00
Andreas Hocevar
40fec9ca35
Mention behaviour change in upgrade notes
2015-11-30 17:53:19 +01:00
Andreas Hocevar
890b515e44
Conditionally skip ol.source.Raster tests
2015-11-24 14:43:40 +01:00
Andreas Hocevar
f63963403b
Merge pull request #4465 from openlayers/greenkeeper-handlebars-4.0.5
...
Update handlebars to version 4.0.5 🚀
2015-11-20 09:27:06 +01:00
Andreas Hocevar
5af338f92b
Fix select interaction regression caused by #4391
2015-11-19 10:53:57 -07:00
Andreas Hocevar
a43cca7720
Allow '' for crossOrigin (as Anonymous alias)
...
This fixes a regression introduced by the goog.isDef removal.
From the HTML 5 spec: "The empty string is also a valid keyword, and
maps to the Anonymous state"
2015-11-19 10:48:35 -07:00
Andreas Hocevar
aa260f800e
Merge pull request #4450 from ahocevar/fix-select
...
Fix select interaction regression caused by #4391
2015-11-19 18:20:04 +01:00
Andreas Hocevar
a8cd6b735f
Fix select interaction regression caused by #4391
2015-11-18 11:57:18 +01:00
Andreas Hocevar
b435723b8c
Merge pull request #4439 from ahocevar/crossorigin-regression
...
Allow '' for crossOrigin (as Anonymous alias)
2015-11-17 16:39:34 +01:00
Andreas Hocevar
749dacc749
Allow '' for crossOrigin (as Anonymous alias)
...
This fixes a regression introduced by the goog.isDef removal.
From the HTML 5 spec: "The empty string is also a valid keyword, and
maps to the Anonymous state"
2015-11-17 12:55:48 +01:00
Andreas Hocevar
eee205c688
Merge pull request #4428 from ahocevar/imagewms-imagesize-regression-test
...
Add imageSize regression test for ol.source.ImageWMS
2015-11-16 23:08:47 +01:00
Andreas Hocevar
f0dbedd39d
Add imageSize regression test for ol.source.ImageWMS
2015-11-16 22:20:35 +01:00
Andreas Hocevar
f4ad1214e7
Merge pull request #4426 from ahocevar/nicer-staticimage
...
Improve ol.source.StaticImage
2015-11-16 22:15:48 +01:00
Andreas Hocevar
fabda7c4b2
Improve ol.source.StaticImage
...
Brings back the imgSize property, and puts all image load handler
code in a single listener.
2015-11-16 11:55:10 +01:00
Andreas Hocevar
f86a7455c4
Merge pull request #4415 from ahocevar/fix-imagesize
...
Scale StaticImage image to imageExtent
2015-11-13 13:15:46 +01:00
Andreas Hocevar
6280b35035
Scale StaticImage image to imageExtent
...
The imageSize property was only used to determine the scale. It's usage was
never documented nor tested nor shown in an example, so I removed it because I
considered its presence a bug.
2015-11-13 12:23:31 +01:00
Andreas Hocevar
4a97e26bd9
Merge pull request #4414 from ahocevar/imageurlfunction-bye-bye
...
Remove ol.ImageUrlFunction
2015-11-13 11:40:43 +01:00
Andreas Hocevar
152dc6e5d0
Remove ol.ImageUrlFunction
...
This was only used in ol.source.ImageMapGuide, and added unnecessary
overhead there.
2015-11-13 11:27:44 +01:00
Andreas Hocevar
70d376f215
Merge pull request #4412 from ahocevar/revert-4344
...
Revert "Merge pull request #4344 from bartvde/issue-2844"
2015-11-12 19:36:27 +01:00
Andreas Hocevar
c5f4710b8d
Revert "Merge pull request #4344 from bartvde/issue-2844"
...
This reverts commit e5c44b37c9 , reversing
changes made to 7f4c6e3634 .
2015-11-12 19:17:07 +01:00
Andreas Hocevar
14338e9c16
Merge pull request #4408 from ahocevar/fix-imagewms-ratio-3.11.x
...
Use ratio when calculating ImageWMS width and height
2015-11-12 18:30:31 +01:00
Andreas Hocevar
ce5ab5b59c
Use ratio when calculating width and height
2015-11-12 18:10:10 +01:00
Andreas Hocevar
df460d2ed1
Merge pull request #4393 from ahocevar/faster-vector-tiles
...
Faster vector tiles
2015-11-10 19:15:30 +01:00
Andreas Hocevar
b29b969cfe
Avoid goog.getUid() with empty skippedFeaturesHash
2015-11-10 19:01:03 +01:00
Andreas Hocevar
a020251f69
Do not use fractional stroke widths
2015-11-10 18:43:28 +01:00
Andreas Hocevar
bfbb802b85
Merge pull request #4391 from ahocevar/unmanaged-layer-foreachfeatureatpixel
...
Pass null as forEachFeatureAtPixel layer arg for unmanaged layers
2015-11-09 10:19:26 +01:00
Andreas Hocevar
a446147902
Add upgrade note about forEachFeatureAtPixel change
2015-11-09 09:45:21 +01:00
Andreas Hocevar
d968f32456
Exclude unmanaged layers from selection
2015-11-09 09:45:21 +01:00