ahocevar
d76eea8ac4
Fixing tests.
2012-07-09 08:26:25 +02:00
ahocevar
7bf1ffe606
Nice improvement of the wheel zooming experience.
2012-07-08 20:27:10 +02:00
ahocevar
4132ded263
Merge branch 'events'
2012-07-08 12:19:32 +02:00
ahocevar
ca2414c9d6
Simplify controls by registering click events on own elements.
...
This makes sense for all controls that provide buttons or similar UI elements that don't interfer with map interaction.
2012-07-08 12:17:11 +02:00
ahocevar
a38a331085
Allow for events on other elements than the map viewport.
...
Not registering browser events as priority events makes it easy for controls to preventDefault or stopPropagation when events are registered on children of the map viewport element.
2012-07-08 12:14:26 +02:00
ahocevar
e67e9049ca
preventDefault and stopPropagation convenience functions.
...
These functions can directly be used as browser event listeners.
2012-07-08 12:12:19 +02:00
ahocevar
e8ac3f1a6b
preventDefault for mousemove and touchmove.
...
This avoids panning of the browser page when drag-panning the map.
2012-07-08 11:55:31 +02:00
ahocevar
578f74eb86
Less magic.
...
Each control is responsible for its handlers. And all controls are rendered into an overlay, not any more depending on assumptions about link click handling.
2012-06-29 09:44:52 +02:00
ahocevar
f28fe4912f
I think we decided to name events in a noun+verb fashion.
2012-06-26 13:34:34 +02:00
ahocevar
8541490f53
Be more explicit about object properties to get rid of warnings.
2012-06-26 09:56:50 +02:00
ahocevar
b7c8486289
Testing Control.js.
2012-06-26 00:18:29 +02:00
ahocevar
56542de1f3
More Events.js tests.
2012-06-26 00:00:36 +02:00
ahocevar
f962b78caa
If no listeners are registered, triggerEvent does nothing now.
2012-06-25 06:32:10 +02:00
ahocevar
87459deb65
Removing unused variable.
2012-06-25 06:32:10 +02:00
ahocevar
9c46aadd22
Adding attribution control and attribution.
2012-06-24 22:22:18 +02:00
ahocevar
dfc21754c9
Adding addLayers method and addlayer event.
2012-06-24 22:14:48 +02:00
ahocevar
c218e7a139
Adding missing return type.
2012-06-24 22:12:58 +02:00
ahocevar
9758910fc6
Making Element/Node types more consistent.
2012-06-24 22:12:38 +02:00
ahocevar
eabc2d9922
Shortcut to register events.
2012-06-24 20:03:58 +02:00
ahocevar
1b93856e89
Keep track of the number of events we have registered.
...
This is needed to reliably prevent the handleBrowserEvent method to perform potentially expensive calculations.
2012-06-24 20:03:16 +02:00
ahocevar
d8599f28b9
Let the controls decide about stopPropagation and preventDefault.
2012-06-24 19:53:42 +02:00
ahocevar
68498bc36e
Fixing the way we prevent the extra click.
2012-06-24 19:48:59 +02:00
ahocevar
bd8354c831
Adding destroy method.
...
The control now removes its markup from the DOM. A nice aspect of our event handling is that no events need to be registered on any of the dom elements that controls create.
2012-06-24 17:08:32 +02:00
ahocevar
45222ac5cb
Adding getStaticOverlay method.
...
This will be used by overlays, e.g. to display layer attribution.
2012-06-24 17:07:02 +02:00
ahocevar
bc37121ae0
Accessibility - now we can use the keyboard to zoom in and out.
2012-06-24 13:45:32 +02:00
ahocevar
218ad77103
preventDefault now happens in Events.js for all handled events.
2012-06-24 13:43:53 +02:00
ahocevar
fcadf842e5
stopPropagation and preventDefault when the event was handled.
2012-06-24 13:43:11 +02:00
ahocevar
446a434c06
New isEnterOrSpace method for keyboard navigation.
2012-06-24 13:42:34 +02:00
ahocevar
7f01528311
Proper destruction.
2012-06-24 13:41:00 +02:00
ahocevar
2fbb29efa0
Using goog.object.clear in destroy.
2012-06-24 12:46:09 +02:00
ahocevar
53a1f9b579
Adding tests for Loc.add.
2012-06-24 12:02:45 +02:00
ahocevar
fdfccb7a82
Fixing type of maxResolution.
2012-06-24 11:40:18 +02:00
ahocevar
0c9b3d1d58
Making map_ protected instead of private.
2012-06-24 11:39:42 +02:00
ahocevar
81577d6dce
Adding Loc.add method.
2012-06-24 10:09:24 +02:00
ahocevar
12fb6c5af4
Merge branch 'master' of github.com:openlayers/ol3
2012-06-23 17:03:57 +02:00
ahocevar
bba7500ab7
Making Popup tests pass.
2012-06-23 17:00:58 +02:00
ahocevar
81b8a472d8
No longer need to calculate the anchor transformation.
2012-06-23 16:16:37 +02:00
ahocevar
026b60826e
Removing stub method, and use the real method in Popup.
2012-06-23 16:16:37 +02:00
ahocevar
ad8568a259
New setCenterAndZoom and setZoom methods.
2012-06-23 16:16:37 +02:00
ahocevar
abf4f41eab
Check for renderer before calling methods on it.
2012-06-23 16:16:37 +02:00
ahocevar
c656bac601
Making the pointer position the zoom origin.
2012-06-23 14:22:54 +02:00
ahocevar
d391c65ac6
New pixel conversion and zoom/center related methods.
2012-06-23 14:21:37 +02:00
ahocevar
6d7c79a9b9
Merge branch 'master' of github.com:openlayers/ol3
2012-06-23 14:18:25 +02:00
ahocevar
43adc61b26
No click event at the end of a drag sequence.
2012-06-23 14:18:02 +02:00
ahocevar
3adf04f728
Merge branch 'master' of github.com:openlayers/ol3
2012-06-23 13:41:35 +02:00
ahocevar
e03595fdac
Priority flag for unregistering priority events.
2012-06-23 13:37:39 +02:00
ahocevar
cdd9439bbd
Consistency: get/setMaxResolution instead of get/setMaxRes.
2012-06-23 09:10:01 +02:00
ahocevar
a6069bb78e
Center tranformation in the api; moveByPx implemented.
2012-06-22 20:49:58 +02:00
ahocevar
c72f803038
Adding scroll sequence and scroll support for the Navigation control.
2012-06-22 19:51:35 +02:00
ahocevar
6b8000d963
Removing debug output.
2012-06-22 19:48:05 +02:00
ahocevar
f504fe87b8
Removing incorrect comments.
2012-06-22 18:27:06 +02:00
ahocevar
84ee96fbd0
Don't subclass fx.Dragger - just use it.
2012-06-22 18:27:06 +02:00
ahocevar
6c1d510bf0
Getting rid of compiler warnings.
2012-06-22 17:17:25 +02:00
ahocevar
f12a20d7aa
Stop the event chain when we have handled the event.
2012-06-22 17:14:46 +02:00
ahocevar
0420d2efb9
Adding Zoom control.
...
Tests still missing.
2012-06-22 17:14:22 +02:00
ahocevar
d9537b558a
Simplified ISequence API; add object property also for browser events.
2012-06-22 17:12:29 +02:00
ahocevar
65ae7eb7a7
Adding 'object' property to event object.
2012-06-22 15:58:58 +02:00
ahocevar
494305d725
Simplified the ISequence interface and sequence event handling.
2012-06-22 14:14:10 +02:00
ahocevar
deb84cf212
Removing unused code.
2012-06-22 11:42:17 +02:00
ahocevar
fbcca9642c
Use renderTo instead of el as method/option name.
2012-06-22 11:17:27 +02:00
ahocevar
4776b11658
Now the map also has overlay divs.
2012-06-21 19:40:04 +02:00
ahocevar
ed62cc00a7
Fixing typos.
2012-06-21 19:36:11 +02:00
ahocevar
188615391d
Using a map for controls also.
2012-06-21 19:33:33 +02:00
ahocevar
9bd507e9b8
Adding a map of sequence providers
2012-06-21 19:27:18 +02:00
ahocevar
a06de64f37
Minimal demo.
2012-06-21 18:57:07 +02:00
ahocevar
e9e5fd27dc
The map now has a viewport and can render to a container.
2012-06-21 18:56:48 +02:00
ahocevar
8d8819ec3c
Removing unused file and code.
2012-06-21 17:30:23 +02:00
ahocevar
81a55eb320
Finally fixing event sequences.
2012-06-21 17:26:23 +02:00
ahocevar
5b747cf7fd
Temporarily removing Drag sequence.
2012-06-21 14:14:36 +02:00
ahocevar
6213e07f96
Navigation control with Drag sequence Dragger
...
This is totally unfinished, but tests pass, and it is only meant to give the map a Navigation control.
2012-06-21 14:08:50 +02:00
ahocevar
5a31638da8
Updating name.
2012-06-20 23:21:58 +02:00
ahocevar
6ddda53a70
Initial port of Control.js and Navigation.js.
...
This also adds an Events instance to the map, so the Navigation control can register events on the map.
Tests still missing.
2012-06-20 23:21:44 +02:00
ahocevar
a36972fd35
Exporting the API.
2012-06-20 19:07:11 +02:00
ahocevar
74d1a06177
No need for cross browser handling here.
2012-06-20 19:07:11 +02:00
ahocevar
c4c595862f
Support for event sequences, and a drag sequence.
...
Tests still missing.
2012-06-20 18:35:42 +02:00
ahocevar
05e13e86a3
Adding drag sequence. Tests still missing.
2012-06-20 18:32:27 +02:00
ahocevar
f74d265dec
Verified isSingleTouch and isMultiTouch functions.
2012-06-20 16:02:41 +02:00
ahocevar
66a5a8ad7a
countFn not needed - do everything with logFn.
2012-06-20 15:53:01 +02:00
ahocevar
8c4b528ded
Better cleanup.
2012-06-20 15:52:24 +02:00
ahocevar
80f76a91e1
Always provide a proper event object.
2012-06-20 15:52:08 +02:00
ahocevar
733f1478dc
Merge branch 'master' of github.com:openlayers/ol3
2012-06-20 15:50:56 +02:00
ahocevar
2fa71057b1
Finalizing tests for ol.Events
2012-06-20 15:26:02 +02:00
ahocevar
b63e13d09c
More Events tests.
2012-06-20 11:29:07 +02:00
ahocevar
4854eee97c
Getting rid of debugger statement.
2012-06-20 11:26:33 +02:00
ahocevar
25d4ef17fd
Fixing types and getting rid of evt.touches warning.
2012-06-20 11:23:48 +02:00
ahocevar
dfc35282ff
Fixing API docs
2012-06-20 09:59:19 +02:00
ahocevar
fb8b1e878d
Events.js ported, with tests stub. More tests to be added.
2012-06-20 01:09:21 +02:00
ahocevar
c8161ed4ee
Updating note about the "dimension" attribute.
2012-06-15 11:49:14 +02:00
ahocevar
96dcf6063e
Merge pull request #530 from ahocevar/srs-dimension
...
Respect the srsDimension attribute. r=@bartvde
2012-06-14 06:42:44 -07:00
ahocevar
6052d19c2f
Note about mysterious "dimension" attribute.
2012-06-14 15:27:22 +02:00
ahocevar
88982e043f
Moving SRSReferenceGroup parser from Base to v3.
2012-06-14 15:18:26 +02:00
ahocevar
fa90a42806
Respect the srsDimension attribute.
...
This also fixes http://trac.osgeo.org/openlayers/ticket/2762 . Note: it seems there is no "dimension" attribute for posList in the spec. This attribute name is only used in some examples of the GML 3.1 specification, but it is not mentioned in any of the XSDs.
2012-06-14 12:44:20 +02:00
ahocevar
3a5abf552a
Merge pull request #519 from ahocevar/zoom-click
...
New zoomOnClick option for ZoomBox control. r=@bartvde
2012-06-11 10:24:06 -07:00
ahocevar
8ad7ad326a
Review comments from @bartvde.
2012-06-11 19:22:05 +02:00
ahocevar
958544f2a7
New zoomOnClick option for ZoomBox control.
...
This change also finally adds tests for the ZoomBox control.
2012-06-11 19:07:17 +02:00
ahocevar
96359fbc99
Fixing test that broke in FF with ff1f99a03f.
2012-06-11 13:38:42 +02:00
ahocevar
8b2bab9d51
Improvements for Android: no buggy tile transitions, no flicker when tapping.
2012-06-02 22:18:49 +02:00
ahocevar
df64798bbb
Updating tests after #487 .
2012-06-02 14:41:44 +02:00
ahocevar
d455d3a62f
Merge pull request #487 from ahocevar/better-cache
...
Don't reuse tile images unless we have a new url to load
2012-06-02 05:23:39 -07:00
ahocevar
a29009be91
Revert "URL switching for all REST encoded WMTS layers."
...
This was accidentally committed to master.
This reverts commit df44a79e1b .
2012-06-02 01:43:31 +02:00