Commit Graph

7165 Commits

Author SHA1 Message Date
Tom Payne 9c798f410e Work around circular dependency bug 2012-09-27 09:36:55 +02:00
ahocevar 2991fa1178 Adding important comment 2012-09-26 22:39:21 +02:00
Tom Payne 04325ee3fd Remove unnecessary require, thanks @fredj 2012-09-26 19:46:13 +02:00
Tom Payne 290d03e76f s/store/source/ 2012-09-26 19:43:23 +02:00
Tom Payne 228e5a8dbf Move requires to end of the file to ensure tests run even if goog.require fails 2012-09-26 19:40:16 +02:00
ahocevar d6f6b828f1 preventDefault on mousedown
This is needed to avoid native image dragging.
2012-09-26 18:48:57 +02:00
ahocevar 303960731c CSS for previous commit 2012-09-26 18:33:07 +02:00
Tom Payne ea81ce33dd Add consistent API demo 2012-09-26 18:28:06 +02:00
Tom Payne 546f1f4b9f Add initial exports and externs 2012-09-26 18:28:06 +02:00
Tom Payne 3b11398f35 Remove unnecessary precision 2012-09-26 18:28:05 +02:00
Tom Payne a578dd6786 Remove unnecessary parentheses 2012-09-26 18:28:05 +02:00
ahocevar e390ff80ea Adding zoom control 2012-09-26 18:27:45 +02:00
ahocevar 47c343ce4f We can rely on the click event
No need to use the mousedown/touchstart event here, because the click event gives us both clientX/clientY and button on touch devices.
2012-09-26 18:27:12 +02:00
ahocevar 4257f5c7c6 Removing unneeded preventDefault calls 2012-09-26 18:26:11 +02:00
ahocevar c7a32b33da Fixing indentation 2012-09-26 15:11:47 +02:00
ahocevar 78c380c9a5 Type cast to make the compiler happy 2012-09-26 15:05:52 +02:00
ahocevar fa16adec02 Making more use of Closure 2012-09-26 14:38:29 +02:00
Tim Schaub 3510c37e43 Handle map size changes in the renderer 2012-09-26 14:10:16 +02:00
Tim Schaub 5b36cf1312 Only adjust tile when necessary 2012-09-26 13:12:36 +02:00
ahocevar bdd8a75123 Remove the box also if we don't zoom 2012-09-26 13:03:41 +02:00
Tom Payne e7063953d7 Don't create a class for map options 2012-09-26 12:54:53 +02:00
Tom Payne 013e6c6320 Use zoom option 2012-09-26 12:54:53 +02:00
Tom Payne b73b2d12c4 Replace ol.createMap with friendlier ol.Map constructor 2012-09-26 12:54:53 +02:00
ahocevar 3bd204fb6a DragBox control provides visual shiftdragzoom feedback
Adding a new DragBox control and using it in the shiftdragzoom interaction to provide visual feedback of the zoom box. The control is nicely separated from the interaction - it only draws the box and does not perform any action.
2012-09-26 12:50:14 +02:00
Tim Schaub 24edce24f1 Add alternate tiles under tiles at target z
When zooming or panning, if we have tiles at alternate resolutions, those tiles are inserted in the DOM before the tiles at the target resolution.  This means you should see blurry tiles instead of whitespace when panning (assuming you've already zoomed in a bit).
2012-09-26 12:18:11 +02:00
Tom Payne 9f1743cb4d Remove unused @export tags 2012-09-26 11:28:26 +02:00
Tom Payne 5db8724b9c Use consistent whitespace in Makefile 2012-09-26 11:19:14 +02:00
Tom Payne 0eeae68ee9 Don't build demos with simple optimizations 2012-09-26 11:19:14 +02:00
Éric Lemoine 7a6acb670f Update readme.md 2012-09-26 12:17:01 +03:00
Tim Schaub 48c4cbc1e5 Correcting comment typos 2012-09-26 11:11:51 +02:00
Tim Schaub 8e38ab0fdc Lint free. 2012-09-26 10:58:17 +02:00
Tim Schaub 3479e20b0a Merge branch 'alt-tiles' 2012-09-26 10:55:25 +02:00
Tim Schaub 7f58d1a8c6 Proper handling of out-of-range and alt-z tiles
Tile pruning code separated into to methods for clarity.  Alt-z tiles are only removed when all current-z tiles have loaded.  Thanks @elemoine for the excellent debugging session.
2012-09-26 10:52:17 +02:00
Tom Payne 68f8f3d5b1 Use new extra compiler checks 2012-09-26 00:04:28 +02:00
Tim Schaub 299173194c First pass at alt-tile rendering for dom renderer 2012-09-25 20:06:20 +02:00
Tom Payne a32460945d Use Plovr built on 2012-09-25 2012-09-25 19:51:56 +02:00
ahocevar 86336b42e6 Ignoring index.html instead of debug.html 2012-09-25 19:47:26 +02:00
ahocevar 36a8dd81ee Missing change from previous commit
This should have gone in with ef383ee7b6.
2012-09-25 19:35:12 +02:00
ahocevar 3c099a96b7 No longer tap-selecting elements on touch devices
This finalizes the effort to improve map browser event handling.
2012-09-25 19:32:08 +02:00
ahocevar ef383ee7b6 Examples using a script loader
This makes it possible to run examples hosted on hosts other than localhost. To get that version by default, debug.html has been renamed to index.html.
2012-09-25 19:06:29 +02:00
Éric Lemoine c696356586 Update readme.md 2012-09-25 19:31:26 +03:00
ahocevar 5a97655983 Optimizing touch device handling
The native event of the touchstart/mousedown event needs to be cloned; change includes some compiler optimizations.
2012-09-25 18:30:23 +02:00
ahocevar ce977e5364 Map browser event handling for touch devices
By handling click, dblckick and drag sequences in MapBrowserEvent, we can overcome closure issues with touch events. In particular, these issues were double drag events (from mousemove and touchmove) and a missing dblclick event on touch devices.
2012-09-25 17:28:01 +02:00
ahocevar b151304630 Prevent default on mousedown and touchstart for all renderers
By doing this on the map renderer, we do not need to duplicate code for the webgl and dom renderers.
2012-09-25 17:28:01 +02:00
Éric Lemoine 019bc09cea Update readme.md 2012-09-25 16:41:54 +02:00
Éric Lemoine 745c906846 Run Travis builds for any branch 2012-09-25 16:23:42 +02:00
Éric Lemoine 95d2cac09f Add Travis config file 2012-09-25 16:07:07 +02:00
Éric Lemoine 4a6b13ed39 Add a download plovr target to Makefile 2012-09-25 16:06:37 +02:00
Éric Lemoine 0130915f00 Makefile - clean target adjustments 2012-09-25 15:38:09 +02:00
Éric Lemoine e3de55e7cb Makefile - serve target needs build/ol-all.js as a source 2012-09-25 15:37:13 +02:00