Commit Graph

2475 Commits

Author SHA1 Message Date
Éric Lemoine 406a2da466 do no export ol.Map.prototype.destroy, it is gone 2012-07-09 09:32:57 +02:00
Éric Lemoine f2e0adc24f make the drag handler prevent page scrolling 2012-07-09 09:32:18 +02:00
Éric Lemoine bc72e2e444 ol.control.Attribution no longer relies on map.getEvents 2012-07-09 09:31:33 +02:00
Éric Lemoine e0b53360d2 ol.Popup no longer relies on map.getEvents 2012-07-09 09:30:34 +02:00
Éric Lemoine 9e693f29c5 use the mousewheel handler 2012-07-09 09:28:56 +02:00
Éric Lemoine 2c61e16b55 add a mouse wheel handler 2012-07-09 09:27:36 +02:00
Tim Schaub 7f594364ca Pixels aligned top,left to origin. 2012-07-09 01:15:56 -06:00
Éric Lemoine 34a450a009 Merge branch 'master' into event
Conflicts:
	src/ol/Map.js
	src/ol/event/Drag.js
2012-07-09 08:57:55 +02:00
Tim Schaub 5a485ea856 Getting explicit about pixels and size.
Eventually, well have to ask renderers for all pixel and size related stuff.  And the map overlay renderer will do all pixel<->loc math.  For now, we let the map do this math based on its viewport - as this is where the mouse events are handled and it is pixels relative to the viewport that are being generated.  For now, the getViewportPixelForLoc and getLocForViewportPixel are now more explicitly named.
2012-07-08 20:57:36 -06:00
Tim Schaub 3d130d3325 Letting the map ask renderer for resolution. 2012-07-08 20:56:36 -06:00
Tim Schaub 4dfb5d0dee Set center on reset. Only shift if offset. 2012-07-08 20:42:15 -06:00
Tim Schaub b24d63a898 Spaces for tabs. 2012-07-08 19:34:53 -06:00
Tim Schaub 4911320eef Rework DOM composite renderer. 2012-07-08 18:37:23 -06:00
Tim Schaub ceaba3cdd4 Overlays above the renderer. 2012-07-08 18:37:23 -06:00
ahocevar 7bf1ffe606 Nice improvement of the wheel zooming experience. 2012-07-08 20:27:10 +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
Tim Schaub ddd57426b5 Allow renderer to have a buffer. 2012-07-07 16:50:22 -06:00
Tim Schaub dc409ebcc4 Resize images in case they were previously scaled. 2012-07-07 15:42:08 -06:00
Tim Schaub c0777cc003 Working with integer pixel space. 2012-07-07 15:19:49 -06:00
Tim Schaub 523f4d61fc Shift container for all layer renderers together. 2012-07-07 13:13:07 -06:00
Éric Lemoine 22e7dc67d6 add a @fileoverview to ol/handler/Drag.js 2012-07-05 14:02:13 +02:00
Éric Lemoine 2fcd76bd54 ol.handler.Drag no longer needs a disposeInternal method 2012-07-05 14:01:44 +02:00
Éric Lemoine 8e36850e7f create parent event target for the map, to allow stopping event propagation 2012-07-05 13:55:57 +02:00
Éric Lemoine 410d79faa1 rely on registerDisposable 2012-07-05 11:11:35 +02:00
Éric Lemoine 946cd33350 make ol.Map inherit from goog.EventTarget, and add an ol.handler.Drag 2012-07-05 11:11:35 +02:00
Tim Schaub 0650d93d17 Let the composite renderer manage containers. 2012-07-04 22:17:56 -06: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
Marc Jansen f477fd8ced Allow multi* geometries in Collections/collections. 2012-06-25 23:19:25 +02:00
Marc Jansen ca5b06f108 Add exports for multilinestring. 2012-06-25 23:02:35 +02:00
Marc Jansen 25202cae6d Add a LineStringLike typedef. 2012-06-25 22:46:11 +02:00
Marc Jansen 7eef78ed4c Add geom/multilinestring classes and tests. 2012-06-25 22:44:42 +02:00
Marc Jansen 6d84d4d3a1 Add geom/MultiLineString classes and tests. 2012-06-25 21:36:17 +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
Éric Lemoine fbd4023d6a [ol.layer.TileLayer] better func comment 2012-06-24 22:30:48 +02:00
Éric Lemoine 192caa1c65 [ol.layer.TileLayer] do not load tiles outside the layer's extent 2012-06-24 22:25:01 +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