Commit Graph

7189 Commits

Author SHA1 Message Date
Tom Payne 7dbc70bcac Don't try to be too clever with size changes 2012-09-27 14:05:19 +02:00
Tom Payne 7625607fd1 Only resize canvas when renderering 2012-09-27 14:05:19 +02:00
Tom Payne ac0e02039c s/POST_RENDER/POSTRENDER/ 2012-09-27 14:05:19 +02:00
Éric Lemoine d61a117787 Remove CenterConstraint entirely 2012-09-27 13:44:24 +02:00
Éric Lemoine bd0f3d2015 Zoom control does not know about the constraints 2012-09-27 13:42:30 +02:00
Éric Lemoine 87189293b5 Make the resolution constraint configurable through map options 2012-09-27 13:36:57 +02:00
Tom Payne 1f55d139b2 Remove stray script element 2012-09-27 13:00:52 +02:00
Tom Payne 65b8e0f915 Use object literals and use generic tile layer 2012-09-27 12:45:00 +02:00
Tom Payne 5ddbf17c8d Run lint on specs 2012-09-27 12:42:13 +02:00
Tom Payne b7def4c8c4 Clean up some lint problems in specs 2012-09-27 12:42:13 +02:00
Tom Payne c908e88dce Fix overly-aggressive clean step 2012-09-27 12:42:13 +02:00
ahocevar 26e3179b2e Making linter and Travis happy 2012-09-27 12:18:05 +02:00
ahocevar caaec7c366 Use the map's zoom method instead of our own
This also allows us to get rid of the resolutions constraint and configuration.
2012-09-27 12:05:53 +02:00
Éric Lemoine f78cad0d77 Merge pull request #27 from elemoine/constraints
Refactoring to make constraints work at the map level
2012-09-27 01:42:45 -07:00
ahocevar 1b18dbedb7 Dispatch MapBrowserEvent before interactions get it
By doing so, application event handlers can preventDefault on the event, and interactions won't get the event any more. This means that interactions are default behavior that can be prevented by application event handlers.
2012-09-27 09:54:16 +02:00
Éric Lemoine cf20fd3e49 Replace map.zoomIn and map.zoomOut by map.zoom(delta) 2012-09-27 09:37:19 +02:00
Tom Payne d3b9af30d0 Don't modify return type of method 2012-09-27 09:36:55 +02:00
Tom Payne 96bd703271 s/tilesource/source/ 2012-09-27 09:36:55 +02:00
Tom Payne 50334b7971 s/ol.TileLayer/ol.layer.TileLayer/ 2012-09-27 09:36:55 +02:00
Tom Payne ccf8eb3c97 Don't pass viewport size monitor to ol.Map constructor 2012-09-27 09:36:55 +02:00
Tom Payne 8ffdaad5f5 Only re-run lint when source files have changed 2012-09-27 09:36:55 +02:00
Tom Payne 9c798f410e Work around circular dependency bug 2012-09-27 09:36:55 +02:00
Éric Lemoine 25e00e5d74 Add FIXME to control/zoom.js 2012-09-27 00:10:54 +02:00
Éric Lemoine 79166dc1d6 Constraint objects moved to ol namespace from ol.interaction namespace 2012-09-27 00:10:54 +02:00
Éric Lemoine b6bb05bf76 Refactoring to set the constraints to the map 2012-09-27 00:09:29 +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