Commit Graph

112 Commits

Author SHA1 Message Date
Tom Payne
0653546e44 Fix non-view-related typecasts in ol.control.Attribution 2013-01-07 13:18:59 +01:00
Augustus Kling
a73c15c988 Discard documentation for attributioncontrol.js and map.js to make refactoring easier due to @elemoine's request 2012-12-03 22:47:33 +01:00
augustus
f253c1bcf8 Some comments (no changes to code) 2012-11-09 16:26:59 +01:00
Tom Payne
e5d39724c9 Give each source file a unique name 2012-10-26 11:25:26 +02:00
Éric Lemoine
576c54eb61 Move object literal exports to their own file 2012-10-24 17:05:33 +02:00
Éric Lemoine
d81b232587 Granularize the exports
This commit decomposes exports.txt into multiple, per-component, export files.  This will be required for custom builds;
2012-10-20 22:31:33 +02:00
Éric Lemoine
0b411ad69c Have disposeInternal call parent 2012-10-11 17:46:22 +02:00
Éric Lemoine
655e04368b disposeInternal implementation for ol.control.Control 2012-10-10 20:24:32 +02:00
Tom Payne
9d253ab6bb Refactor exports and externs 2012-10-04 15:11:26 +02:00
Tom Payne
a95e9b9c8b Avoid unecessary style changes in attribution control 2012-10-03 18:51:33 +02:00
Tom Payne
71e42b2448 Refactor build system
This rather large commit refactors the build system to solve a number of
problems:
- Object literal types are now declared in just one place
- There are no more circular dependencies
- There is no need for concealed subclasses in build-standalone mode

When building in standalone mode, you need to include the source in
build/src/external.  This declares object literal types as externs so
that their properties are not renamed.

When building with the application, you need to include the source in
build/src/internal.  This declares object literal types as typedefs so
that their properties can be renamed and removed.

Note also that ol.MapOptions has been merged into ol.Map, with some
renaming.
2012-09-29 11:51:53 +02:00
Tom Payne
62dc6a1b45 Port @ahocevar's drag box control to the new control architecture 2012-09-28 17:24:17 +02:00
ahocevar
6b395cafb5 Stop click event, as previously promised
This should have gone in with 3910318f1b.
2012-09-28 16:47:54 +02:00
Tom Payne
7bcb5886ad Use CSS rule to separate attributions 2012-09-28 14:57:54 +02:00
Tom Payne
ed67bdc489 Make attribution control less ugly 2012-09-28 14:53:45 +02:00
Tom Payne
a341df3b41 Fix not-up-to-date transform bug in mouse position control 2012-09-28 13:48:20 +02:00
ahocevar
3d62b67172 Introducing ol.overlay.Overlay and an overlayContainer
ol.overlay.Overlay can be used to bind DOM elements to a
coordinate on the map. It has positioning options to support
e.g. popups or image markers that have an anchor at the bottom
and an unknown size.

The overlayContainer stops propagation on mousedown and
touchstart events, so clicks and gestures on overlays don't
trigger any MapBrowserEvent. To make this work reliably, we now
only fire dblclick in mapbrowserevent.js when there was a
previous mousedown or touchstart. The default container for
controls is now the overlayContainer.
2012-09-28 13:01:56 +02:00
Tom Payne
e7eccb302d Cope with map being null 2012-09-28 12:51:10 +02:00
Tim Schaub
eb29e6a43c Using null instead of null or object or undefined 2012-09-28 12:08:21 +02:00
Tom Payne
7415a11c63 More responsive zoom buttons on touch devices thanks to @ahocevar 2012-09-27 18:07:17 +02:00
Tom Payne
0faab71e3f Implement new control architecture 2012-09-27 17:54:20 +02:00
Tom Payne
65b4041aa3 Remove ol.control.DragBox temporarily 2012-09-27 17:54:20 +02:00
Éric Lemoine
bd0f3d2015 Zoom control does not know about the constraints 2012-09-27 13:42:30 +02:00
Tom Payne
65b8e0f915 Use object literals and use generic tile layer 2012-09-27 12:45:00 +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
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
Tom Payne
290d03e76f s/store/source/ 2012-09-26 19:43:23 +02:00
ahocevar
e390ff80ea Adding zoom control 2012-09-26 18:27:45 +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
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
Tom Payne
c43e04ea77 Refactor to support stricter new compiler 2012-09-25 00:03:53 +02:00
Tom Payne
8394147df1 Satisfy gjslint 2012-09-24 21:25:29 +02:00
ahocevar
002e23cb74 Satisfy latest Closure library/tools. 2012-09-24 17:59:34 +02:00
Tim Schaub
ed754fbfdf Control in the ol.control namespace. 2012-09-24 17:15:30 +02:00
Tim Schaub
1f9e2aa3c4 Move Layer into ol.layer namespace. 2012-09-24 17:08:36 +02:00
Tom Payne
f8c31ba45c s/ol3/ol/ 2012-09-24 14:21:41 +02:00
Tom Payne
4aff22e980 ol3 is now internal, ol is now external
As discussed with @ahocevar, @elemoine and @tschaub.
2012-08-29 20:46:42 +02:00
Éric Lemoine
83994081b5 mouseposition listens to mousemove and mouseout on map viewport 2012-08-20 21:51:23 +02:00
Tom Payne
44cd3ceccb Re-order functions alphabetically 2012-08-16 17:56:19 +02:00
Tom Payne
4f2b6a0c22 Initialize all member variables in constructor 2012-08-16 16:42:56 +02:00
Tom Payne
d9eb9eda60 Add missing check 2012-08-13 21:31:41 +02:00
Tom Payne
5ae3d25f52 Add some FIXMEs 2012-08-13 17:24:31 +02:00
Tom Payne
e9e1b8eaa9 Improve handling of undefined coordinates 2012-08-13 17:24:25 +02:00
Tom Payne
85ca630935 Add ol.control.MousePosition 2012-08-13 16:45:10 +02:00
Tom Payne
ec3475806e s/View/Control/, thanks @elemoine 2012-08-13 16:45:10 +02:00
Tom Payne
208db33bfc s/Control/Interaction/, thanks @elemoine 2012-08-13 16:45:10 +02:00