Tom Payne
6dedac6ed8
Improve type checking in ol.interaction.TouchPan
2013-12-13 18:59:24 +01:00
Tom Payne
408a75426b
Improve type checking in ol.control.Zoom
2013-12-13 18:59:24 +01:00
Tom Payne
35768f8b48
Improve type checking in ol.interaction.Interaction
2013-12-13 18:59:24 +01:00
Tom Payne
b39ae367e7
Improve type checking in ol.canvas.SUPPORTED
2013-12-13 18:59:24 +01:00
Tom Payne
8f6952c56c
Fix use of ol.IView2D in ol.interaction.TouchPan
2013-12-13 18:59:24 +01:00
Tom Payne
49369b8800
Fix use of ol.IView2D in ol.interaction.DragRotate
2013-12-13 18:04:48 +01:00
Tom Payne
d43eb6dcb7
Fix use of ol.IView2D in ol.interaction.DragRotateAndZoom
2013-12-13 18:04:48 +01:00
Tom Payne
d81c8d6f92
Fix use of ol.IView2D in ol.interaction.DragPan
2013-12-13 18:04:48 +01:00
Tom Payne
2bf7dc5568
ol.interaction.Interaction methods should take ol.IView2Ds, not ol.View2Ds
2013-12-13 18:04:48 +01:00
Tom Payne
3bb2306f79
Work around compiler not detecting implementation of abstract methods
2013-12-13 18:04:47 +01:00
Tom Payne
0b1a2325cd
Define isDef on ol.IView2D, ol.IView3D and ol.View
2013-12-13 18:04:47 +01:00
Tim Schaub
0ed59f7be3
Merge pull request #1348 from tschaub/beforechange
...
Add `ol.ObjectEvent` for changes to `ol.Object` properties. Previously, `ol.Object` dispatched instances of `goog.events.Event` with type `change`. Now `ol.ObjectEvent` instances will be dispatched on property changes. The events include a `getKey` method to get the name of the property being changed. The `beforepropertychange` type event is fired before a property value changes, and the `propertychange` type event fires after the property value changes.
2013-12-13 07:28:36 -08:00
Éric Lemoine
93e605b119
Merge pull request #1350 from elemoine/gutter
...
Add gutter support to ol.source.TileWMS
2013-12-13 01:11:42 -08:00
Éric Lemoine
ca07b4ef47
Merge pull request #1371 from elemoine/getbrowserevent
...
Add ol.MapBrowserEvent#getBrowserEvent
2013-12-12 23:41:01 -08:00
Éric Lemoine
b8a0112a91
Merge pull request #930 from elemoine/externs
...
Use @exportSymbol instead of @exportClass|Function
2013-12-12 23:40:44 -08:00
Tim Schaub
20d74810ab
Export a getKey method on ol.ObjectEvent
2013-12-12 16:59:34 -07:00
ahocevar
95c717ad32
Merge pull request #1370 from ahocevar/unnest-loops
...
Unnest loops
2013-12-12 15:12:19 -08:00
ahocevar
c4ec53bbdb
Unnest loops
...
Reusing the iterator in a nested loop is not a good idea. And in
this case it is better to not have nested loops at all, because
we only have to create one array.
2013-12-12 17:57:14 +01:00
Éric Lemoine
b709820777
Use olx for some parser options types
2013-12-12 15:22:47 +01:00
Éric Lemoine
f15694844d
Line is too long
2013-12-12 15:22:18 +01:00
Éric Lemoine
f95e0eb785
Treat WMSGetFeatureInfoOptions as other options types
2013-12-12 15:21:49 +01:00
Éric Lemoine
7732c19874
Some options types are defined in the code
...
The sed script caught those, so manually adjusting here.
2013-12-12 15:19:37 +01:00
Éric Lemoine
7b81bfab5c
Change @exportClass to @exportSymbol
...
sed command used: find src/ol -name '*.exports' -exec sed -ri 's/@exportClass\s+(\S+)\s+(\S+)$/@exportSymbol \1/' \{\} \;
2013-12-12 15:05:52 +01:00
Éric Lemoine
d9e293109e
Change @exportFunction to @exportSymbol
...
sed command used: find src/ol -name '*.exports' -exec sed -ri 's/@exportFunction\s+(\S+)\s+(\S+)\s+(\S+)$/@exportSymbol \1 \1/' \{\} \;
2013-12-12 15:05:39 +01:00
Éric Lemoine
315c42f0a7
Use olx namespace for options types in source code
...
sed command used: find src/ol -name '*.js' -exec sed -ri 's/\{ol(\.(\w|\.)+Options\=?\})/{olx\1/' \{\} \;
2013-12-12 15:02:03 +01:00
Tom Payne
7b7ebb8609
Add missing "new"s in ol.structs.RBush
2013-12-12 13:01:25 +01:00
Éric Lemoine
701b2d63ef
Add gutter support to ol.renderer.webgl.TileLayer
2013-12-12 10:59:32 +01:00
Éric Lemoine
5c71ec4922
Add gutter support to ol.renderer.dom.TileLayer
2013-12-12 10:59:32 +01:00
Éric Lemoine
2db8ce566b
Add gutter support to ol.renderer.canvas.TileLayer
2013-12-12 10:59:32 +01:00
Éric Lemoine
55f56aaf03
Add ol.source.Tile#getGutter
2013-12-12 10:59:31 +01:00
Éric Lemoine
e14d8add85
Add gutter support to TileUrlFunction
2013-12-12 10:59:31 +01:00
Éric Lemoine
fd438f232b
Add gutter option to ol.source.TileWMS
2013-12-12 10:59:31 +01:00
Tim Schaub
69385f4ff0
More consistent event types
2013-12-11 16:54:01 -07:00
Tim Schaub
625007f364
Make enum property name like its value
...
Where an enum value is used as an event type, it should be alllowercase (to follow DOM events). Property names should be ALLUPPERCASE in this case (just as camelCase and PascalCase are converted to CONSTANT_CASE).
2013-12-11 16:54:01 -07:00
Tim Schaub
c8985b9906
Using unique event type values for distinct events
...
Any event target can be used to dispatch generic goog.events.Event instances with an arbitrary type. In cases where we dispatch custom events, we should not use type values that collide with those used for generic events (at least internally). This allows listeners a better chance of knowing what kind of argument they will receive.
As subsequent change will clean up the enumeration and add a bit more consistency.
2013-12-11 16:53:52 -07:00
Tim Schaub
17e91feb52
Listen for property changes in layer group
...
This avoids a future bug when the ol.ObjectEventType.CHANGE value becomes something different than the goog.events.EventType.CHANGE value.
2013-12-11 12:23:05 -07:00
Tim Schaub
153cb307e0
Handle beforechange events for bound properties
2013-12-11 11:25:51 -07:00
Tim Schaub
9d3a4e3c6c
Add beforechange event type and provide key with change events
...
If you know ahead of time that you only want to listen for changes for a specific property, the foo:change type events can be useful. If you want to listen for changes on all properties, the change event becomes more useful if it provides information on what changed. And the beforechange event allows listeners to access values before they change.
2013-12-11 11:25:50 -07:00
Tim Schaub
5a5d1dec40
Remove unused handleLayerVisibleChange
2013-12-11 01:38:44 -07:00
Tim Schaub
a792a224f6
Avoid duplicate change event on visibility change
2013-12-11 01:28:55 -07:00
Tim Schaub
858fe14163
No need for handleLayerChange in base layer
2013-12-11 01:23:51 -07:00
Tim Schaub
8fbfac52d4
Avoid firing duplicate change events in ol.layer.Layer
2013-12-11 01:20:07 -07:00
Tim Schaub
3e905d804c
Merge pull request #1335 from tschaub/geometry-type
...
Change geometry type enum and mark as stable.
2013-12-10 08:50:54 -08:00
ahocevar
211e288f33
Remove original handling on ol.Feature
...
This is another attempt to bring master closer to the
vector-api branch. In anticipation of the ability to keep track
of modifications on ol.Object through a beforechange event
(d7e4be0), we will be able to manage originals on the
application level or in a separate component outside of
ol.Feature.
2013-12-09 18:33:34 +01:00
ahocevar
d53ad07279
Merge pull request #1346 from ahocevar/set-srsname
...
Set the srs name when writing GetFeature
2013-12-09 08:28:14 -08:00
ahocevar
2fc89b967a
Define type for applyWriteOptions call
2013-12-09 17:19:03 +01:00
ahocevar
8328db26d4
Set the srs name when writing GetFeature
...
Also make clear that srsName is only optional for WFS 1.0.0.
2013-12-09 16:57:11 +01:00
ahocevar
8d55e14986
Safeguard against the case where no features are modifiable
2013-12-09 13:25:14 +01:00
Éric Lemoine
3877f87a26
Add ol.MapBrowserEvent#getBrowserEvent
2013-12-09 12:29:05 +01:00
Tom Payne
87f147db60
Merge pull request #1341 from twpayne/mapguide-clean-ups
...
Tidy up ol.source.MapGuide and add ratio option
2013-12-06 12:50:43 -08:00