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
Tom Payne
e4f729f1b9
Add ol.webglrender.IGLObject
2012-07-11 21:57:01 +02:00
Tom Payne
7a4e3aa323
Listen for target resizes in ol.MapRenderer
2012-07-11 21:21:38 +02:00
Tom Payne
5c40e1d570
Listen for all camera property changes
2012-07-11 21:20:29 +02:00
Tom Payne
9c0ce6e635
Make ol.LayerProperty public
2012-07-11 21:18:47 +02:00
Tom Payne
02113f05be
Make ol.StoreProperty public
2012-07-11 21:18:34 +02:00
Tom Payne
73abd6e8b8
Make ol.CameraProperty public
2012-07-11 21:15:28 +02:00
Tom Payne
87853a5f54
Stricter type checking on target
2012-07-11 19:33:17 +02:00
Éric Lemoine
a6b37ff83d
remove reference to ol.control.Navigation in ol.js
2012-07-11 18:00:40 +02:00
Éric Lemoine
c6b8a93394
add goog.require for ol.handler.Click in ol.js
2012-07-11 17:52:21 +02:00
Éric Lemoine
8194f05ce4
better doc strings for the mousewheel handler
2012-07-11 17:49:13 +02:00
Éric Lemoine
62aee1d7ea
remove unused function in the mousewheel handler
2012-07-11 17:48:48 +02:00
Éric Lemoine
d73531bf57
missing goog.require in the mousewheel handler
2012-07-11 17:47:16 +02:00