Commit Graph

15151 Commits

Author SHA1 Message Date
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
2c58b03669 Merge pull request #887 from tschaub/default-renderer
Use the Canvas renderer by default.
v3.0.0-beta.3
2014-04-02 12:40:54 -06: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
Frédéric Junod
72e5a347b9 Merge pull request #1937 from fredj/heatmap-render-order
Set render order to null in ol.layer.Heatmap
2014-04-02 12:06:26 +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
Frédéric Junod
3c32f8b9e4 Merge pull request #1934 from fredj/ol.dom.createCanvasContext
Add ol.dom.createCanvasContext function
2014-04-02 10:52:29 +02:00
Frederic Junod
55de0a54b9 Add ol.dom.createCanvasContext2D function 2014-04-02 09:37:41 +02:00
Tim Schaub
0b21c6bea7 Merge pull request #1936 from tschaub/curly
Typo in objectliterals.jsdoc.
2014-04-01 19:05:17 -06: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
Tom Payne
0906605878 Merge pull request #1932 from twpayne/fix-draw-order
Stop draw order from preventing batch reuse
2014-04-01 14:04:12 +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
Frédéric Junod
bbb39fc930 Merge pull request #1931 from fredj/popup-scroll
Stop 'mouseweel' events in ol-overlaycontainer-stopevent div
2014-04-01 12:31:58 +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
Frédéric Junod
ac25c3ad57 Merge pull request #1930 from fredj/export
Export ol.coordinate.add
2014-03-31 23:24:38 +02:00
Bart van den Eijnden
17ecccdb23 Put reference to workshop in QuickStart 2014-03-31 21:03:10 +02:00
Bart van den Eijnden
5f20be93a5 Mention the workshop in the readme 2014-03-31 20:55:58 +02:00
Frederic Junod
ef74d8c5dc Export ol.coordinate.add 2014-03-31 17:03:58 +02:00
Antoine Abt
ef546888c8 Merge pull request #1750 from tonio/default_editing_style
Share editing default styles
2014-03-31 11:03:35 +02:00
Marc Jansen
43a9dbd6a8 Merge pull request #1925 from marcjansen/keyboard-interaction-docs
Correct documentation for `keyboardEventTarget`.
2014-03-31 10:34:54 +02:00
Antoine Abt
7122906214 Select interaction options are now optional 2014-03-31 10:24:17 +02:00
Antoine Abt
5cc1a986c2 Share editing default styles 2014-03-31 10:24:17 +02:00
Marc Jansen
8b538d765a Correct documentation for keyboardEventTarget. 2014-03-31 10:23:39 +02:00
Frederic Junod
fa640cf094 Compute anchor value only once 2014-03-31 10:20:52 +02:00
Tim Schaub
24ad507710 Merge pull request #1917 from tschaub/node-deps
Update node packages.
2014-03-28 17:44:13 -06:00
Tim Schaub
2dd3bd88ea Update node packages
* closure-util - Driving the compiler, not watching spurious files
 * async - Bugfixes not related to our use, but this may sidestep the Travis errors we're seeing
2014-03-28 17:27:41 -06:00
Éric Lemoine
2add376113 Merge pull request #1922 from elemoine/modify
Fixes to modify interaction
2014-03-28 16:43:05 +01:00
Éric Lemoine
c82d5ba88e Make the Modify interaction more robust
This prevents a JavaScript error when features are added while the interaction does not have a map.
2014-03-28 16:09:52 +01:00
Éric Lemoine
afa5f35cef Create the R-Tree in the Modify constructor
In this way features can be added/removed to/from the R-Tree even when the interaction does not have a map.
2014-03-28 16:07:03 +01:00
Éric Lemoine
c33a3372d9 Fix initial state of the Modify interaction
Features that are in the features collection need to be added to the R-Tree.
2014-03-28 16:03:34 +01:00
Frédéric Junod
b2e4c4bc1a Merge pull request #1921 from fredj/text-offset
Scale the text offset by the device's pixel ratio
2014-03-28 15:37:12 +01:00
Tom Payne
8545aa83a9 Merge pull request #1915 from twpayne/select-interaction
Restore select interaction behaviour
2014-03-28 14:07:26 +01:00
Andreas Hocevar
37eea9340e Merge pull request #1283 from ahocevar/delete-vertex
Add a way to delete vertices with the Modify interaction
2014-03-28 12:39:28 +01:00
Frederic Junod
e0278e0e9c Scale the text offset by the device's pixel ratio
Fixes #1918
2014-03-28 12:22:12 +01:00
ahocevar
8b99fd9bc1 Updates to pass jshint validation 2014-03-28 12:02:08 +01:00
ahocevar
b9cd512ffc Lower pixel tolerance to avoid accidental vertex deltion 2014-03-28 11:37:06 +01:00
ahocevar
e612330dd7 Add a way to delete vertices with the Modify interaction
After this change, vertices can be deleted by simply clicking on
them. This is the same behaviour as e.g. in geojson.io.
2014-03-28 11:36:13 +01:00
Tom Payne
baab8dab63 Merge pull request #1916 from twpayne/fix-object-uid
Fix location of call to goog.getUid, thanks @elemoine
2014-03-27 22:57:29 +01:00
Tom Payne
7db06b61de Fix location of call to goog.getUid, thanks @elemoine 2014-03-27 22:22:54 +01:00
Tom Payne
f5e272fb3d Remove stray option in modify-features example 2014-03-27 21:54:41 +01:00
Tom Payne
15efba8a23 Restore ol.interaction.Select options 2014-03-27 21:54:41 +01:00