Commit Graph

859 Commits

Author SHA1 Message Date
Frederic Junod d7ee71a811 Remove unnecessary type cast 2014-09-03 11:14:33 +02:00
Frederic Junod 009cd9f840 Remove unnecessary type cast 2014-09-03 11:14:33 +02:00
Frederic Junod 4a21ad566a Remove unnecessary type cast 2014-09-02 15:17:32 +02:00
Frederic Junod 25093b371d Improve ol.structs.LRUCache type annotation 2014-08-27 09:09:52 +02:00
Tim Schaub b5a6ffc144 Merge pull request #2608 from tschaub/more-stable
Mark ol.RendererType enum as stable.
2014-08-25 07:39:38 -06:00
Éric Lemoine cd4063b0d8 Merge pull request #2602 from elemoine/layer-extent
Fix Uncaught RangeError in canvas tile renderer
2014-08-25 09:13:01 +02:00
Tim Schaub 38b2a46b59 Mark ol.RendererType enum as stable 2014-08-24 18:22:19 -06:00
Éric Lemoine 73df93969a No composeFrame if layer and view don't intersect
ol.renderer.canvas.TileLayer#prepareFrame immediately returns false if the layer extent and the view extent do not intersect.
2014-08-24 14:55:13 +02:00
Éric Lemoine def1af4492 No composeFrame if prepareFrame returns false 2014-08-24 14:55:13 +02:00
Peter Robins 18a1c1c0d7 Rename ol.dom.browserfeature back to BrowserFeature 2014-08-22 15:32:01 +00:00
Frédéric Junod fa512f1ed0 Merge pull request #2545 from fredj/cleanup
Miscellaneous coding style fixes
2014-08-21 07:44:07 +02:00
Antoine Abt b034e114d6 Restore opacity after drawing vector layers 2014-08-20 15:34:48 +02:00
Frederic Junod 1439ceafa1 Simplify goog.object.forEach call 2014-08-19 11:58:50 +02:00
Frederic Junod 35e4134047 Don't create unnecessary closure 2014-08-19 11:39:44 +02:00
Éric Lemoine e53213d730 Merge pull request #2537 from probins/browserfeature
Rename BrowserFeature to browserfeature
2014-08-18 16:23:28 +02:00
Éric Lemoine 9072fb1f2f Merge pull request #2543 from elemoine/foreachfeature
Do not hit-detect the same feature multiple times
2014-08-18 10:38:38 +02:00
Éric Lemoine c81dfdc69b Do not hit-detect the same feature multiple times
In other words forEachFeatureAtPixel should not call the user-provided callback more than once for a given feature.
2014-08-18 10:24:12 +02:00
Éric Lemoine ba035abb1f Change ol.TileCoord to an Array 2014-08-18 09:33:24 +02:00
Peter Robins e35531e7c6 Rename BrowserFeature to browserfeature 2014-08-15 13:53:20 +00:00
Frederic Junod f2638ddfbf Reuse tileRange in ol.renderer.Layer#manageTilePyramid
This avoids a lot of garbage.
2014-08-12 14:37:46 +02:00
Frederic Junod ae98ee8b4a Restore context opacity after drawing layers
Closes #2455
2014-08-05 16:05:23 +02:00
Frederic Junod 86268bcf58 Rename olx.FrameState#skippedFeatureUids_ skippedFeatureUids
To let the ol.Map#skippedFeatureUids_ property to be renamed by the compiler.
2014-07-31 11:30:39 +02:00
Bart van den Eijnden f468239e71 Merge pull request #2394 from tonio/style_order
Give precedence to feature styles
2014-07-25 11:34:24 +02:00
Tim Schaub 2b0284a342 Only request tiles within the layer extent
Layer renderers are now responsible for requesting data within a limited extent.
2014-07-24 10:26:07 -06:00
Tim Schaub 234cff4de5 Limit image layer requests to layer extent
This has two nice consequences that can be seen in the wms-image.js and mapbuide-untiled.js examples:
 * no images are requested when you browse outside of the layer extent
 * when the layer extent is within the viewport extent, cached images are used since the intersecting extent is the same for multiple viewport extents
2014-07-24 10:26:07 -06:00
Antoine Abt ba8077010a Add link support for source logos 2014-07-24 15:22:19 +02:00
Antoine Abt b7b5de659b Distinct style function types 2014-07-16 11:25:16 +02:00
Antoine Abt 60f1874766 Give precedence to feature style 2014-07-16 11:25:16 +02:00
Tim Schaub 4cf5ab4620 Use @api annotation instead of @todo api 2014-07-05 15:41:14 -04:00
Tim Schaub 2ec63b6c58 Unnecessary ol.Tile requires 2014-06-27 19:57:54 -04:00
Tim Schaub 997517110c Unnecessary ol.Image require 2014-06-27 19:51:38 -04:00
Tim Schaub e802902f9b Rename ol.extent.getForView2DAndSize to ol.extent.getForViewAndSize 2014-06-27 09:59:39 -04:00
Tim Schaub b9f444a008 Rename olx.View2DState to olx.ViewState and use viewState property 2014-06-27 09:58:25 -04:00
Andreas Hocevar f67767aaf0 Add ol.renderer.vector.getSquaredTolerance and ol.SIMPLIFY_TOLERANCE 2014-06-27 12:10:46 +02:00
Éric Lemoine 6cf4c95762 Flush the vector context after replaying the batch 2014-06-26 14:06:56 +02:00
Andreas Hocevar ba2d49d715 Finish the replay group after dispatching the compose event 2014-06-26 13:16:34 +02:00
Éric Lemoine 18d117dff6 Hit detection for features drawn at pre/postcompose 2014-06-25 18:32:02 +02:00
Éric Lemoine 49a1215f75 Pass a replay group to ol.render.Event 2014-06-14 14:21:34 +02:00
Éric Lemoine 7a1e605f14 Skipped features support to ol.source.ImageVector 2014-06-11 16:26:21 +02:00
Hadrien Tulipe 7aab28afcc Provide ol.RendererType structure through ol.renderer.Map
It was previously in ol.Map, but it could not be provided because
of circular dependencies.
2014-05-27 22:47:02 +02:00
Hadrien Tulipe 1d6f9ca80b Expose the map renderer type to the public API
In the case  where the map decides itself which renderer to use. It can
be convenient for the developer to have knowledge of the choice made.
2014-05-27 22:47:02 +02:00
Éric Lemoine 8cd5f6d642 Merge pull request #2109 from elemoine/visibleandinrange
Hit detection respects min and maxResolution
2014-05-25 14:43:44 +02:00
Éric Lemoine fd8a46dcae Hit detection respects min and maxResolution 2014-05-25 14:35:07 +02:00
Andreas Hocevar eb6a938062 Do not document object literals as interfaces
Instead, object literals with properties that should not be
renamed can go in externs/olx.js.
2014-05-22 15:48:47 +02:00
Frederic Junod 2f918ea2a4 Remove unused goog.require 2014-05-21 16:06:32 +02:00
Tim Schaub e4e3b2229a Defines in ol namespace defined in ol.js 2014-04-30 08:54:30 -06:00
Tim Schaub cec41c4b0a Add missing requires
Without explicit requires, it is possible that a build would exclude ol.js.
2014-04-30 08:37:52 -06:00
Andreas Hocevar 13e072cb63 Merge pull request #1955 from ahocevar/canvas-no-taint
Test canvas size with an untainted canvas
2014-04-07 13:52:09 +02:00
ahocevar d685c79e02 Use ol.dom.createCanvasContext2D and remove canvas variable 2014-04-07 13:25:49 +02:00
ahocevar 3848e7f823 Make comment about shrinking the canvas more descriptive 2014-04-06 23:54:59 +02:00