Commit Graph

846 Commits

Author SHA1 Message Date
Frederic Junod 1439ceafa1 Simplify goog.object.forEach call 2014-08-19 11:58:50 +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
ahocevar 09021dffd4 Do not shrink test canvas 2014-04-06 14:29:32 +02:00
ahocevar 95795ea301 Test canvas size with an untainted canvas 2014-04-06 11:38:51 +02:00
Tim Schaub 7826036307 Make getLayerStatesArray return an array of layer states 2014-04-04 07:39:54 -06:00
Tim Schaub aa3a20e911 Provide layer states array in frame state 2014-04-04 07:36:42 -06:00
Éric Lemoine 266f573922 Merge pull request #1943 from elemoine/ht
Hit detection skips layers in invisible groups
2014-04-04 09:08:29 +02:00
Éric Lemoine 8b0ae9e4da Hit detection skips layers in invisible groups 2014-04-03 16:54:39 +02:00
Tom Payne ed586bad39 Use forEachFeatureInExtentAtResolution in ol.renderer.canvas.VectorLayer 2014-04-03 15:23:24 +02:00
Tom Payne b24e122d4f Add projection argument when loading features 2014-04-03 15:12:22 +02:00
Tom Payne 8c984cc8f7 Load features before rendering 2014-04-03 15:08:03 +02:00
ahocevar ea58f38275 Make testCanvasSize a static function 2014-04-03 11:18:26 +02:00
ahocevar 54ba06ae3b Initialize canvasTooBig_ member 2014-04-03 11:18:12 +02:00
ahocevar 58b5fef3da Allow to make canvas smaller when it is too big
For performance reason, we only make the canvas bigger, but not
smaller. With this change, we also make it smaller, but only
when we know that its current size exceeds the maximum
dimensions.
2014-04-02 16:44:57 +02:00
ahocevar 4dce59fe95 Add method for testing whether the canvas size is valid
This is a way to detect whether a canvas exceeds the maximum
dimensions if these are limited on the target device. See
https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/CreatingContentforSafarioniPhone/CreatingContentforSafarioniPhone.html
for limitations on iOS devices.
2014-04-02 16:44:39 +02:00