Commit Graph

6096 Commits

Author SHA1 Message Date
Éric Lemoine f7e81f84db Zoom control should not act on a null view 2014-09-17 13:32:45 +02:00
Éric Lemoine 79932ee2f2 Rotate control should not act on a null view 2014-09-17 13:32:31 +02:00
Éric Lemoine 8660f00917 Do not exec animation functions when frameState is null 2014-09-17 12:49:46 +02:00
Éric Lemoine cb8b896230 Make ol.Map#setView do not accept undefined
With this change map.setView(null) is permitted, but map.setView(undefined) is not. map.getView now always returns a defined value, which may be null is setView was called with null.
2014-09-17 11:47:24 +02:00
Éric Lemoine 163cc5b873 Merge pull request #2696 from gberaudo/consistent_circle_transform
Consistent circle transform.
2014-09-16 14:39:17 +02:00
Guillaume Beraudo d67cefdf3a Consistent circle transform
Depending on compilation flags, applying a transform used to either:
- work;
- fail throwing an abstract method not implemented message;
- fail silently.

Now it should consistently work, like the other geometries.

Adding a polygon factory method creating an approximation of a circle on
a plane would be useful for users wanting the circle to be deformed.
It would be similar to the `circular` function which creates an
approximation of a circle on a sphere.
2014-09-16 13:41:17 +02:00
Frederic Junod e136b4b4db Change the control visibility by using css class
Instead of changing the button opacity in the control, only add/remove
a css class (ol-hidden). This let the developer easily change the
behavior by updating the css.
2014-09-16 11:00:44 +02:00
Frederic Junod ec9386acfe Set the opacity directly to element.style.opacity
goog.style.setOpacity handles the IE8 case (but we are doing the same
above in the same function) and Firefox prior to version 3.5 (latest
stable release in April 2011).

See https://developer.mozilla.org/en-US/docs/Web/CSS/opacity
2014-09-15 16:01:24 +02:00
Frédéric Junod 8bf43f5f22 Merge pull request #2647 from fredj/closure-lib-upgrade
Upgrade closure library version
2014-09-15 14:36:17 +02:00
Frédéric Junod 007fc34a23 Merge pull request #2549 from fredj/assume-array-native
Use goog.array.ASSUME_NATIVE_FUNCTIONS define
2014-09-15 13:28:14 +02:00
Andreas Hocevar b431487435 Merge pull request #2684 from ahocevar/notify-change
Rename ol.Observable#dispatchChangeEvent() to #changed()
2014-09-11 15:51:22 -07:00
Andreas Hocevar 3da9a67162 Merge pull request #2678 from ahocevar/mutable-styles
Mutable symbolizer properties for styles
2014-09-11 13:14:43 -07:00
Andreas Hocevar 267a950435 Mention the need to re-render in a single place only 2014-09-11 13:13:17 -07:00
Bart van den Eijnden 19319356d7 Auto configure ol.format.GML if not configured with a featureNS/featureType 2014-09-11 20:03:02 +02:00
Frederic Junod fb87c22359 Set goog.array.ASSUME_NATIVE_FUNCTIONS to true 2014-09-11 13:24:13 +02:00
Andreas Hocevar 6eda02f208 StaticVector is not an abstract base class 2014-09-09 13:44:56 -07:00
Frederic Junod 20ce664068 Remove mousewheel event name workaround
Fixed upstream https://github.com/google/closure-library/pull/308
2014-09-09 15:03:18 +02:00
Frederic Junod 2b395d3160 Add missing goog.require 2014-09-09 15:03:18 +02:00
Frédéric Junod ad1f255211 Merge pull request #2687 from fredj/legacy-ie
Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define
2014-09-09 09:25:56 +02:00
Frederic Junod c0c14cb09c Remove undefined from ol.Map#getLayers return type
It's already assumed that the collection is defined in ol.Map#addLayer
and ol.Map#removeLayer.
2014-09-08 15:47:14 +02:00
Éric Lemoine 96f7d6323a Change signature of ol.layer.Group#getLayers
This commit changes the signature of ol.layer.Group#getLayers from {ol.Collection.<ol.layer.Base>|undefined} to {!ol.Collection.<ol.layer.Base>}. In this way the caller is guaranteed that getLayers returns a dereferencable object.
2014-09-08 15:45:58 +02:00
Frederic Junod 23745cd043 Use ol.LEGACY_IE_SUPPORT and ol.IS_LEGACY_IE define
See #1605
2014-09-06 17:52:13 +02:00
Andreas Hocevar 0e14639633 Update docs for changes proposed in #2684 2014-09-04 21:01:50 -06:00
Andreas Hocevar ebe3b48e0a Rename ol.Observable#dispatchChangeEvent() to #changed()
Since dispatchChangeEvent does not only dispatch a change event, but
also increases the revision counter, the method name should reflect
this.
2014-09-04 19:30:48 -06:00
Andreas Hocevar 88c30795d3 Doc improvements 2014-09-04 13:20:25 -06:00
Andreas Hocevar ec00cd3222 Make tileSize a config option for ol.source.XYZ 2014-09-04 11:59:43 -06:00
Andreas Hocevar 0c36d7606b No need to have a mutable_ flag
Instead, educate users to call setStyle.
2014-09-04 11:47:32 -06:00
Frédéric Junod 5de537001f Merge pull request #2534 from fredj/polygon-api
Document ol.geom.Polygon#getLinearRing function
2014-09-04 17:57:12 +02:00
Andreas Hocevar 13d84e75ad Additional documentation 2014-09-03 18:31:01 -06:00
Andreas Hocevar a50f6d7a2f Mutable symbolizer properties for style functions
This change adds setters for symbolizer properties. In addition, it
introduces a mutable flag on all styles. By default, this is set to
true. ol.style.createStyleFunction sets it to false for all static
styles.

The new setters assert that the mutable flag is true, so whenever an
application tries to set a symbolizer property on a style that was
assigned to a vector layer or feature overlay, the assertion will fail.
2014-09-03 16:57:50 -06:00
Éric Lemoine e854d16646 Merge pull request #2677 from gberaudo/export_text_style_offsets
Add TextStyle offsets getters to API.
2014-09-03 17:30:14 +02:00
Guillaume Beraudo 9adb12846c Add TextStyle offsets getters to API.
The other properties getters are in the API already.
2014-09-03 17:21:27 +02:00
Frederic Junod eecb5770a5 Use the feature style if defined
Same behavior as ol.layer.Vector
2014-09-03 16:34:28 +02:00
Frederic Junod d7ee71a811 Remove unnecessary type cast 2014-09-03 11:14:33 +02:00
Frederic Junod b366407038 Set ol.layer.Tile#getSource return type to ol.source.Tile 2014-09-03 11:14:33 +02:00
Frederic Junod 009cd9f840 Remove unnecessary type cast 2014-09-03 11:14:33 +02:00
Frederic Junod 0e964cb84c Set ol.layer.Image#getSource return type to ol.source.Image 2014-09-03 11:14:33 +02:00
Frederic Junod 568f854f29 Add olx.layer.ImageOptions typedef 2014-09-03 11:14:33 +02:00
Frederic Junod 4a21ad566a Remove unnecessary type cast 2014-09-02 15:17:32 +02:00
Guillaume Beraudo da2a291208 ol.layer.Vector.getSource return type specialisation. 2014-09-02 15:14:01 +02:00
Frederic Junod 4969c2cf34 Set tracking property to false on geolocation error 2014-09-02 11:13:06 +02:00
Éric Lemoine bcf5421541 Merge pull request #2662 from gingerik/delegate-transformation
Delegate transformation in ol.source.FormatVector#readFeatures to `ol.format.*`
2014-09-01 08:14:07 +02:00
Erik Timmers 1da5be6ffb Delegate transformation to ol.format.*
Fixes #2604.
2014-09-01 07:22:17 +02:00
Tim Schaub 273ba5fb00 Merge pull request #2447 from lazaruslarue/patch-1
Correct documentation typo.
2014-08-30 22:18:21 -06:00
Éric Lemoine 5df0b4ec3b Merge pull request #2641 from elemoine/sphere
Add @api to ol.Sphere
2014-08-29 12:10:00 +02:00
Éric Lemoine f7f4c7b686 Remove @api annotation from ol.sphere.WGS84 2014-08-29 11:57:44 +02:00
Éric Lemoine f452f5545a Add @classdesc to ol.Sphere 2014-08-29 11:57:44 +02:00
Éric Lemoine 91b567293e Merge pull request #2652 from fredj/collection-doc
Improve ol.Collection documentation
2014-08-29 11:49:28 +02:00
Éric Lemoine 40fb661864 Add @api to ol.Sphere 2014-08-29 11:22:08 +02:00
Frederic Junod aa40504dd5 Improve ol.Collection documentation 2014-08-29 07:27:35 +02:00