Commit Graph

5334 Commits

Author SHA1 Message Date
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
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
Frederic Junod
6469b6c889 Set render order to null in ol.layer.Heatmap
For performance reasons: the render order is not relevant for a
heatmap representation and this avoids to sort the features each frame.
2014-04-02 10:53:04 +02:00
Frederic Junod
55de0a54b9 Add ol.dom.createCanvasContext2D function 2014-04-02 09:37:41 +02:00
Tim Schaub
2770e61e6c Curly instead of bar 2014-04-01 16:15:22 -06:00
Andreas Hocevar
39bf863335 Merge pull request #1886 from ahocevar/touchend-button
Zoom happens twice on Android browser
2014-04-01 17:07:34 +02:00
ahocevar
a3be9e720a Register pointer event handlers as disposable 2014-04-01 15:31:39 +02:00
Frédéric Junod
e5d59fd7f1 Merge pull request #1933 from fredj/null-renderOrder
Don't sort the features when renderOrder is null
2014-04-01 14:47:44 +02:00
Frederic Junod
ea28b3716c Don't sort the features when renderOrder is null 2014-04-01 14:11:51 +02:00
ahocevar
e05cff670b Use pointer events for button clicks 2014-04-01 13:46:58 +02:00
Tom Payne
ba0d35668f Stop draw order from preventing batch reuse 2014-04-01 13:45:15 +02:00
Frederic Junod
849b534159 Stop 'mouseweel' events in ol-overlaycontainer-stopevent div 2014-04-01 09:42:08 +02:00
Frederic Junod
13224fd479 Use ol.MapBrowserEvent.EventType.POINTERDOWN
Instaed of a hardcoded string
2014-04-01 09:35:34 +02:00
Frederic Junod
ef74d8c5dc Export ol.coordinate.add 2014-03-31 17:03:58 +02:00