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
Petr Sloup
e1712eb44a
Initiate tile load only after registering it as loading
2015-12-26 10:49:21 +01:00
Andreas Hocevar
552063aeac
Do not render in handleDownEvent
2015-12-18 18:21:32 +01:00
Andreas Hocevar
38bb1569af
Remove no longer needed buffer for direct rendering
2015-12-18 00:27:42 +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
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
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
Petr Sloup
9f5d85f2c6
Handle tile coordinate wrapping when reprojecting raster tiles
2015-12-11 16:35:23 +01:00
Andreas Hocevar
fbb59d29b9
Make sure compiled code calls ol.VectorTile#setProjection
2015-12-11 15:20:21 +01:00
Bart van den Eijnden
554aaf1574
Merge pull request #4537 from bartvde/issue-4312
...
Allow specifying non default DPI on ol.source.TileArcGISRest
2015-12-11 13:42:26 +01:00
Philip Clifton
97995cf20b
Add newline support for text
2015-12-10 11:24:39 -06:00
Frederic Junod
7192644c07
Register the change callback when the tile is enqueued
2015-12-09 17:15:47 +01:00
Bart van den Eijnden
992870e2d2
Allow specifying non default DPI on ol.source.TileArcGISRest
2015-12-09 15:27:20 +01:00
Frederic Junod
ad3c6713da
Return if the element is added to the ol.structs.PriorityQueue
2015-12-09 15:27:07 +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
Bart van den Eijnden
0c3aed0083
Add support for smooth TileWMS dimensions
2015-12-09 14:06:47 +01:00
Andreas Hocevar
8f4c6a5bbf
Remove redundant code from ol.featureloader.tile
2015-12-08 18:30:25 +01:00
Frederic Junod
5b7227a0bf
Mark olx.source.WMTSOptions#dimensions as not null
2015-12-08 17:46:49 +01:00
Frederic Junod
aa2838cdcd
Remove use of goog.isNull
2015-12-08 16:05:38 +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
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
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
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
Frédéric Junod
4892a2f039
Merge pull request #4502 from fredj/optionsFromCapabilities_jsdoc
...
Improve ol.source.WMTS.optionsFromCapabilities jsdoc layout
2015-12-04 13:44:27 +01:00
Frederic Junod
6e58be72bb
Remove unused goog.require
2015-12-02 14:08:34 +01:00
María Arias de Reyna
609e94a58a
Adding a check just in case the projection is not defined/supported on current app. It will just ignore it, as if there was no containerSrs defined.
2015-12-02 11:44:24 +01:00
Frédéric Junod
652638e902
Merge pull request #4505 from fredj/rm_goog_object_getKeys
...
Remove use of goog.object.getKeys
2015-12-02 09:13:29 +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
Éric Lemoine
279eae1dba
Do not ignore layer filter for unmanaged layers
...
PR #3883 made `forEachFeatureAtPixel` ignore unmanaged layers. This commit reverts that change.
2015-11-30 17:53:19 +01:00
Frederic Junod
cf1b1822b8
Remove use of goog.object.getKeys
2015-11-30 17:34:53 +01:00
Frédéric Junod
952a282756
Merge pull request #4476 from fredj/rm_goog.functions.constant
...
Remove use of goog.functions.constant
2015-11-30 16:22:47 +01:00
Frederic Junod
51b62fb188
Improve ol.source.WMTS.optionsFromCapabilities jsdoc layout
2015-11-30 12:39:24 +01:00
Frederic Junod
a186254e14
Remove use of goog.dom.createDom
2015-11-25 12:40:45 +01:00
Frederic Junod
1ebdba13a6
Remove note about DragZoom and vector support
2015-11-24 17:04:05 +01:00
Frédéric Junod
a2e3f28060
Merge pull request #4483 from fredj/rm_goog.object.containsKey
...
Remove use of goog.object.containsKey
2015-11-24 16:25:40 +01:00
Frederic Junod
a9cd2cd278
Use appendChild instead of goog.dom.append
2015-11-24 13:45:54 +01:00
Frederic Junod
8d72589743
Remove use of goog.object.containsKey
2015-11-24 10:17:01 +01:00
Frederic Junod
290a83e2ed
Remove blur workaround in ol.control.Attribution
...
leftover from #3954
2015-11-23 16:18:36 +01:00
Frederic Junod
6525bda9fd
Export ol.interaction.Interaction#getMap function
2015-11-23 15:35:36 +01:00