Commit Graph
22 Commits
Author SHA1 Message Date
Austin Hyde 03b7d6ee92 Add jquery to examples for backwards compatibility with IE7/8 2014-02-05 15:42:58 -05: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
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 eebf730b66 Improve control styling for legacy IE versions
IE < 9 does not support RGBA transparency, so instead fall back to
more readable alternatives where possible.

Conflicts:
	css/ol.css
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
Austin Hyde 6ea1482ecf Fix issue with valueExtent_ being cleared while updating extents, but never being repopulated 2014-01-03 15:54:26 -05:00