Commit Graph

4804 Commits

Author SHA1 Message Date
Tom Payne
41f193e8b9 Allow ol.Map renderer option to be a string 2014-02-06 19:26:15 +01:00
Tom Payne
8701942d40 Merge pull request #1655 from twpayne/vector-context
Rename IRender to IVectorContext
2014-02-06 18:52:53 +01:00
Éric Lemoine
261832c629 Merge pull request #1657 from elemoine/renderer
Do not expose both renderer and renderers options
2014-02-06 18:37:27 +01:00
Tom Payne
09d5d31fc7 Rename ol.render.IRender to ol.render.IVectorContext 2014-02-06 18:03:27 +01:00
Éric Lemoine
57f77bb444 Merge pull request #1638 from elemoine/featureoverlay
Rename ol.render.FeaturesOverlay to ol.FeatureOverlay
2014-02-06 18:00:09 +01:00
Éric Lemoine
09beba69ad Remove the map renderers option 2014-02-06 16:56:15 +01:00
Tom Payne
f1276e86a1 Add projection option to ol.source.IGC 2014-02-06 16:48:42 +01:00
Antoine Abt
8f9e2ea88d Merge pull request #1649 from tonio/geometrycollection_change
Make GeometryCollection propagate change events of its geometries.
2014-02-06 16:33:13 +01:00
Antoine Abt
f2c18fafb8 Make GeometryCollection dispatch change event'
When one of its component changes.
2014-02-06 15:55:02 +01:00
Éric Lemoine
45495869a5 Merge pull request #1653 from elemoine/select-options
Passing options to the select interaction is mandatory
2014-02-06 15:24:51 +01:00
Éric Lemoine
90155ad519 Passing options to the select interaction is mandatory 2014-02-06 15:07:08 +01:00
Tom Payne
b5da2d387b Merge pull request #1651 from twpayne/fix-rbush-remove
Fix ol.structs.RBush#remove
2014-02-06 13:56:24 +01:00
Tom Payne
2993efb04f Ensure MultiPolygons are rendered if only one of fill and stroke are set 2014-02-06 13:50:22 +01:00
Éric Lemoine
c2d0cab07a Add tests for ol.style.IconImageCache 2014-02-06 12:59:39 +01:00
Éric Lemoine
d13d2fdc6a Remove a FIXME 2014-02-06 12:59:39 +01:00
Éric Lemoine
63aadc5c0f Factor out icon image loading code 2014-02-06 12:59:39 +01:00
Éric Lemoine
f9e04ad7d5 Use ol.renderer.Map#scheduleExpireIconCache 2014-02-06 12:59:39 +01:00
Éric Lemoine
b43dd6db44 Add ol.renderer.Map#scheduleExpireIconCache 2014-02-06 12:59:39 +01:00
Éric Lemoine
c2fe25ee26 Use the icon image cache 2014-02-06 12:59:39 +01:00
Éric Lemoine
065663b242 Introduce an icon image cache 2014-02-06 12:59:38 +01:00
Éric Lemoine
bf8520096e Vector image source uses new image style interface 2014-02-06 12:59:38 +01:00
Éric Lemoine
78aef2f58c Vector renderer uses new image style interface 2014-02-06 12:59:38 +01:00
Éric Lemoine
3626ff5b16 Icon images are handled by a separate class 2014-02-06 12:59:38 +01:00
Tom Payne
286284b0c4 Move remove from ol.structs.RBush to ol.structs.RBushNode 2014-02-06 12:48:52 +01:00
Tom Payne
7f64a09e3c Return, and check, boolean value from ol.structs.RBush#remove indicating whether value was removed 2014-02-06 12:48:51 +01:00
Tom Payne
09326519d3 Replace faulty iterative ol.structs.RBush#remove with less faulty recursive version 2014-02-06 12:48:51 +01:00
Frederic Junod
ce721bc42f Assert that an element is removed in ol.structs.RBush#remove_ 2014-02-06 12:48:51 +01:00
Austin Hyde
7930d1a129 If the map has a background, zIndex=-1 puts the layers behind the background 2014-02-05 15:42:22 -05:00
Tom Payne
3436c7e6f9 Fix capitalisation of ol.Map in docs 2014-02-05 17:12:35 +01:00
Austin Hyde
298674d14f Only do the IE-safe event cloning in legacy IE 2014-02-05 10:32:14 -05:00
Austin Hyde
27f45d73ba Remove a now-unused define 2014-02-05 10:32:14 -05:00
Austin Hyde
ff4f4be8aa Fix typo, simplify a legacy IE check 2014-02-05 10:32:14 -05:00
Austin Hyde
9ffed5bf5f Add a compile-time flag to enable legacy IE support 2014-02-05 10:32:14 -05:00
Austin Hyde
74a9a155b1 Dispose of the IE dblclick listener, add goog.require 2014-02-05 10:32:14 -05:00
Austin Hyde
c9ca219286 Fix the root cause of the IE mouseup event bug.
When the event object is reference outside the call stack of the
original event handler (like in a setTimeout), accessing its
properties results in a "member not found" error. The solution is to
clone the event object and use the clone.
2014-02-05 10:32:14 -05:00
Austin Hyde
fb360c019e Fix line lengths from 6a83778 2014-02-05 10:31:16 -05:00
Austin Hyde
de3b315ad7 Round CSS offsets to nearest integer 2014-02-05 10:31:16 -05:00
Austin Hyde
dfe3927a12 Add assertion to verify layerRenderer is an instanceof ol.renderer.dom.Layer 2014-02-05 10:31:16 -05:00
Austin Hyde
b4d2ab5c13 Fix issue with DOM layers in wrong order
When removing/inserting layers back-to-back, the layer elements can
get out of order because createLayerRenderer always appends to the
layer pane. This makes it always reattach the layer node at the
correct index, ensuring correct layer ordering.
2014-02-05 10:31:16 -05:00
Austin Hyde
48cf5926b8 Fix IIFE invoking Canvas APIs that don't exist in early IE
Changed ol.interaction.Draw.defaultStyleFunction to be a getter, so
that it only calls Canvas APIs when needed, rather than on script load
2014-02-05 10:31:16 -05:00
Austin Hyde
b0849cc85c Wrap setOpacity to make it IE7-8 compatible 2014-02-05 10:31:15 -05:00
Austin Hyde
e16de6f8af Add support for scaling/translating transforms in IE 7-8
Adds support for the IE-specific Matrix filter and adds fixes
that enable IE 7-8 to render transformations without distortion
2014-02-05 10:31:15 -05:00
Austin Hyde
d891670950 Enable CSS transforms based on feature detection
Also adds the msTransform property for IE 9
2014-02-05 10:31:15 -05:00
Austin Hyde
d3b2b1cd9e Prevent the default image dragging behavior in IE < 9 2014-02-05 10:31:15 -05:00
Austin Hyde
1215f58241 Add explicit text nodes to zoom in/out controls
IE < 9 does not support CSS content properties, so the +/- does not
get rendered. Instead, add the +/- as text nodes when creating the
DOM nodes for the control.
2014-02-05 10:31:15 -05:00
Austin Hyde
f7ec082411 Fix weird IE7 bug with mouseup events
In IE7, handling some mouseup events are causing the native event
underlying goog.events.BrowserEvent to be invalidated, and it would
error out with a "Member not found" message. By passing the Closure
event rather than the native event around, we avoid this case.
2014-02-05 10:31:15 -05:00
Austin Hyde
0e05cd2263 If naturalWidth/Height properties aren't available, mimic them 2014-02-05 10:29:16 -05:00
Éric Lemoine
40276ab6ba Merge pull request #1216 from probins/keyboard
Clarify keyboard events and focus in docs
2014-02-05 16:14:04 +01:00
Tom Payne
0b4b6e2a75 Merge pull request #1639 from twpayne/kml-ie9
KML support for Internet Explorer
2014-02-05 14:23:07 +01:00
Éric Lemoine
7fb2088a22 Merge pull request #1623 from elemoine/1623
ol.interaction.DragBox.getGeometry returns non-closed polygon
2014-02-04 22:10:11 -08:00