Commit Graph

5347 Commits

Author SHA1 Message Date
Éric Lemoine 4561e0b901 Merge pull request #1960 from elemoine/stopevent
Implement shouldStopEvent in DragBox interaction
2014-04-07 17:23:46 +02:00
Éric Lemoine ce0b1d2a47 Use goog.functions.identity where it makes sense 2014-04-07 16:59:04 +02:00
Éric Lemoine eac9b71b95 Set shouldStopEvent to identity in DragBox
This fixes a bug where the map is panned when boxes are drawn.
2014-04-07 16:57:02 +02: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 78324fb54b Remove layers array from frame state 2014-04-04 07:36:42 -06:00
Tim Schaub aa3a20e911 Provide layer states array in frame state 2014-04-04 07:36:42 -06:00
Tim Schaub 9d5451b1d6 Provide a reference to the layer 2014-04-04 07:36:42 -06:00
ahocevar bf06129256 Initialize snappedToVertex_ 2014-04-04 14:11:02 +02:00
ahocevar 523b51d69a Add missing goog.requires; fix types and a typo 2014-04-04 14:05:19 +02:00
ahocevar 2cb045b0b3 Better documentation for the singleclick condition 2014-04-04 14:05:19 +02:00
ahocevar f2acbd332c Use the pixelTolerance to determine whether to snap to a vertex 2014-04-04 14:05:19 +02:00
ahocevar 8fc9b23ab8 Do not return as handled unless a geometry was modified
With this change, it is more straightforward to determine
whether an event is considered as handled, which results in the
removal of the modifiable_ and lastVertexCoordinate_ states.
Instead, we only need to know whether we're on a real vertex or
a virtual one. For that a new snappedToVertex_ flag is
introduced.

To stop a click after vertex deletion from triggering a feature
selection, vertex deletion is now triggered by a configurable
event condition, which defaults to singleclick (same as in the
select interaction) with no modifier keys.
2014-04-04 14:05:18 +02: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
Bart van den Eijnden 6a3d349409 Merge pull request #1863 from htulipe/ows-capabilities
Add basic reading support for OWS Capabilities documents.
2014-04-03 19:57:27 +02:00
Éric Lemoine 8b0ae9e4da Hit detection skips layers in invisible groups 2014-04-03 16:54:39 +02:00
Tom Payne 0de380c7d2 Merge pull request #1744 from twpayne/remote-vector
ol.source.RemoteVector
2014-04-03 16:12:16 +02:00
Tom Payne c155b70281 Export ol.source.ServerVector#readFeatures 2014-04-03 15:57:44 +02:00
Tom Payne f13debbbc9 Load vector tiles for current resolution 2014-04-03 15:23:24 +02:00
Tom Payne 96b7700d63 Use forEachFeatureInExtentAtResolution in ol.source.ImageVector 2014-04-03 15:23:24 +02:00
Tom Payne ed586bad39 Use forEachFeatureInExtentAtResolution in ol.renderer.canvas.VectorLayer 2014-04-03 15:23:24 +02:00
Tom Payne 3a8504b799 Add ol.source.Vector#forEachFeatureInExtentAtResolution 2014-04-03 15:12:23 +02:00
Tom Payne 683483f8a4 Add ol.source.TileVector 2014-04-03 15:12:22 +02:00
Tom Payne 4a484a7ad3 Separate out feature reading and feature adding 2014-04-03 15:12:22 +02:00
Tom Payne a31ad69ec4 Make tile URL functions more general 2014-04-03 15:12:22 +02:00
Tim Schaub 86c5a582c7 Rename loadingStrategy to strategy 2014-04-03 15:12:22 +02:00
Tim Schaub ce8d805201 Rename loadingFunction to loader 2014-04-03 15:12:22 +02:00
Tom Payne db1a06ac31 Use a BBOX loading strategy by default 2014-04-03 15:12:22 +02:00
Tom Payne 9e75684823 Replace extentUrlFunction with generic loadingFunction 2014-04-03 15:12:22 +02:00
Tom Payne b8869805a7 Rename ol.loading to ol.loadingstrategy 2014-04-03 15:12:22 +02:00
Tom Payne de4a17b8e2 Rename ol.source.RemoteVector to ServerVector 2014-04-03 15:12:22 +02:00
Tom Payne b24e122d4f Add projection argument when loading features 2014-04-03 15:12:22 +02:00
Tom Payne cbbcab926e Export ol.format.OSMXML 2014-04-03 15:08:03 +02:00
Tom Payne 50c4961b9f Add ol.source.RemoteVector 2014-04-03 15:08:03 +02:00
Tom Payne 2842d1b254 Add ol.loading 2014-04-03 15:08:03 +02:00
Tom Payne 8c984cc8f7 Load features before rendering 2014-04-03 15:08:03 +02:00
Tom Payne b008dd1805 Rename ol.source.FormatVector#loadFeatures to loadFeaturesFromURL 2014-04-03 15:05:55 +02:00
Tom Payne 073f83cd22 Factor out ol.source.FormatVector 2014-04-03 15:05:55 +02:00
Tom Payne 77933d0ab3 Rename ol.source.VectorFile to ol.source.StaticVector 2014-04-03 15:05:55 +02:00
ahocevar 8df95bc674 Handle skipped features when setting the map
When a Select interaction is removed from the map, it should
remove its selected features from the map's skippedFeatures
collection. When it is added to a map, it should add them.
2014-04-03 14:30:58 +02:00
Andreas Hocevar e44e59311b Merge pull request #1896 from ahocevar/nodragclick
Add click event as responsive alternative to singleclick
2014-04-03 13:34:14 +02:00
Andreas Hocevar 7f2a628223 Merge pull request #1928 from ahocevar/recover-from-canvas-too-big
Recover from situations where the maximum canvas size is exceeded
2014-04-03 11:46:19 +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
Tim Schaub 5653d57712 Change default renderer to Canvas 2014-04-02 11:43:20 -06: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