Commit Graph

2475 Commits

Author SHA1 Message Date
Tom Payne 8d9cee2ee1 Add map parameter to ol.LayerRenderer 2012-07-14 21:51:04 +02:00
Tom Payne 669a83ff78 Add ol.webgl.LayerRenderer 2012-07-14 21:50:35 +02:00
Tom Payne b30d0c314b Add pixel to/from coordinate transforms 2012-07-14 19:54:41 +02:00
Tom Payne caba3814f7 Don't clone center or extent 2012-07-14 19:26:35 +02:00
Tom Payne ba9a62120b Only redraw if visible layers are added or removed 2012-07-14 19:23:25 +02:00
Tom Payne f66016af2e Handle resizing 2012-07-14 19:23:08 +02:00
Tom Payne c7f418240f Check projection when adding layers 2012-07-14 18:34:39 +02:00
Tom Payne acb8c14d28 Shortcut projection equivalence test 2012-07-14 18:34:26 +02:00
Tom Payne fcf552ea40 Merge Camera into Map 2012-07-14 18:34:02 +02:00
Tom Payne b80ce1fc26 Set camera defaults when layers is changed 2012-07-14 17:47:43 +02:00
Tom Payne 9266b7fdb2 Create new extent if no existing one 2012-07-14 17:47:18 +02:00
Tom Payne dbb26dc68d Add ol.Camera.isFullyDefined 2012-07-14 17:46:50 +02:00
Tom Payne c0aa3b77fe Configure default camera when first layer is added 2012-07-14 16:14:12 +02:00
Tom Payne fab1bca1fb Recalculate map extent when camera property changes 2012-07-14 16:13:54 +02:00
Tom Payne 461552a72e Correct camera property change handling 2012-07-14 16:12:56 +02:00
Tom Payne c59e6e1462 Return cloned size rather then reference 2012-07-14 16:12:24 +02:00
Tom Payne 9e8c8ad316 Add extent handling to ol.Map 2012-07-14 16:11:52 +02:00
Tom Payne 8c4d408795 ol.Store should not inherit from ol.Object 2012-07-14 15:31:36 +02:00
Tom Payne a8138cfe17 Remove ol.TileGrid.getMaxResolution 2012-07-14 15:30:35 +02:00
Tom Payne 7107b8d105 Add ol.Extent.getCenter 2012-07-14 15:29:36 +02:00
Tom Payne d5e706d9ff Remove unused requires 2012-07-14 15:29:21 +02:00
Tom Payne d1e5906e2c Merge Map and MapRenderer 2012-07-14 13:36:24 +02:00
Tom Payne 19ea6a0cba Import WebGL code from WebGL Maps 2012-07-13 19:27:48 +02:00
Tom Payne a35cd158be Snapshot WebGLMapRenderer 2012-07-13 19:14:34 +02:00
Tom Payne f5790e14f2 Use goog.nullFunction 2012-07-13 19:13:51 +02:00
Tom Payne 8279e79818 Handle undefined properties 2012-07-13 19:13:17 +02:00
Tom Payne bb1e81b72a Add ol.MapRenderer.forEachLayerRenderer 2012-07-13 19:12:40 +02:00
Tom Payne 773590345a Bind Map to MapRenderer properties 2012-07-13 19:12:14 +02:00
Tom Payne 152c0e9f78 Export ol.MapRendererProperty 2012-07-13 19:11:47 +02:00
Tom Payne 8ac2cb7103 Provide default layer change handlers 2012-07-13 19:11:01 +02:00
ahocevar fd2ac782cf Using high level map event instead of browser event. 2012-07-13 17:54:34 +02:00
ahocevar 1c07c38a70 Using minus sign instead of ndash. 2012-07-13 17:53:33 +02:00
Éric Lemoine 226480af90 fix mousewheel handler tests 2012-07-13 16:20:23 +02:00
Éric Lemoine 1f62bd8cd6 fix typo in drag handler 2012-07-13 16:19:42 +02:00
Éric Lemoine 2b9df6442b Revert "Allow for using a different set of default behaviors."
This reverts commit 3cc069186c.
2012-07-13 15:38:06 +02:00
Éric Lemoine f34aa03109 Revert "Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control."
This reverts commit c2a30f4ac4.
2012-07-13 15:37:39 +02:00
Éric Lemoine c2a30f4ac4 Replace the navigation control by two controls, namely DragPan and MouseWheelZoom. DragPan is the map default drag control. MouseWheelZoom is the map default mouse wheel control. 2012-07-13 08:57:40 +02:00
ahocevar ba986e536d We decided to be explicit about bubble/capture. 2012-07-12 23:47:37 +02:00
ahocevar 8183164298 The underlying event will be needed frequently.
But there will also be events that don't have an underlying event, so we make it optional.
2012-07-12 23:47:16 +02:00
ahocevar 3cc069186c Allow for using a different set of default behaviors.
The default behavior of dragging and wheel zooming feels specific to 2D maps. So I think it makes sense to introduce a special type of controls (ol.control.DefaultControl) that implement default behaviors. This change also re-introduces the Navigatin control, which is a container for the default behaviors that were previously defined in the map handlers. Maybe this control needs to be renamed to Navigatin2D in the future, and there could be a different Navigation control for 3D maps.
2012-07-12 20:51:47 +02:00
ahocevar 42c4c9d869 No need to pass the element to the constructor.
If MapHandler subclasses could live without a map, it would make sense to have a constructor with a target and an element. But because the target is always the map, and the handler need to know about the map for performing default behavior, we always assume the map's viewport as element.
2012-07-12 20:44:32 +02:00
Tom Payne 964bbf41bd Add scope to ol.Array.forEach 2012-07-12 19:23:06 +02:00
ahocevar f672303f0a New MapHandler base class; better API docs 2012-07-12 15:21:15 +02:00
ahocevar 1ad915b428 Shuffling resources; better variable names; better type declarations. 2012-07-12 13:43:47 +02:00
Éric Lemoine 8206f11372 be more explicit when calling goog.events.listen and unlisten 2012-07-12 08:20:42 +02:00
Éric Lemoine dea307e53a typed objects for map events 2012-07-12 08:18:22 +02:00
Éric Lemoine d4106f166d remove reference to ol.control.Navigation from ol.export.js 2012-07-12 08:17:23 +02:00
Éric Lemoine 8801542744 add code comments to click and mousewheel handlers 2012-07-12 08:14:21 +02:00
Éric Lemoine d517bdc5cd use of goog.events.Event.stopPropagation instead of our own function 2012-07-12 07:35:14 +02:00
Tom Payne 7ae4fc3eb5 Add initial ol.WebLGLMapRenderer experiments (size not working) 2012-07-11 21:58:18 +02:00