Tim Schaub
7826036307
Make getLayerStatesArray return an array of layer states
2014-04-04 07:39:54 -06:00
Tim Schaub
9d5451b1d6
Provide a reference to the layer
2014-04-04 07:36:42 -06:00
Tim Schaub
a1f714f7dc
Add setStyle and getStyle methods to ol.layer.Vector
...
The setStyle method accepts a single style, an array of styles, or a style function. The getStyle method returns what was set. Internally, we use the getStyleFunction method which always returns a function. When calling setStyle, a change event is dispatched (fixes #1671 ).
2014-02-13 10:25:17 -07:00
Tim Schaub
5c21f24df5
Add tests for vector layer
2014-02-13 10:25:16 -07:00
Tom Payne
b59eec7a83
Merge remote-tracking branch 'openlayers/master' into vector-api
2013-12-13 20:22:06 +01:00
Éric Lemoine
35d5158454
Merge remote-tracking branch 'upstream/master' into vector-api
...
Conflicts:
src/objectliterals.jsdoc
src/ol/attribution.js
src/ol/geom/geometry.js
src/ol/geom/geometrycollection.js
src/ol/geom/linestring.js
src/ol/layer/vectorlayer.exports
src/ol/layer/vectorlayer.js
src/ol/map.js
src/ol/proj/proj.js
src/ol/renderer/canvas/canvasvectorlayerrenderer.js
src/ol/source/imagewmssource.js
src/ol/source/tilewmssource.js
src/ol/source/vectorsource.exports
src/ol/source/vectorsource.js
src/ol/source/wmssource.js
src/ol/style/style.js
src/ol/tilegrid/tilegrid.js
src/ol/tilegrid/wmtstilegrid.js
src/ol/tilegrid/xyztilegrid.js
2013-12-13 12:53:57 +01: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
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
8b8563f0fd
Test change events on layer groups
2013-12-11 01:46:23 -07:00
Tim Schaub
a792a224f6
Avoid duplicate change event on visibility change
2013-12-11 01:28:55 -07:00
Tim Schaub
8fbfac52d4
Avoid firing duplicate change events in ol.layer.Layer
2013-12-11 01:20:07 -07:00
Tim Schaub
2000b0af78
Vector layer/source refactor
...
This moves the feature cache from ol.layer.Vector to ol.source.Vector. These are the minimum changes required to maintain the existing functionality and make tests pass. More refactoring to come.
2013-11-27 12:20:42 -07:00
Tom Payne
4e65fefc00
Move vector code out of the way
2013-11-20 11:39:21 +01:00
Tim Schaub
67fab12fef
Listen for feature events and fire layer events
2013-10-03 15:51:00 -06:00
ahocevar
87e755e9e4
Sort symbolizer groups by zIndex
...
Now rendering order can be controlled by setting the zIndex
symbolizer property.
2013-10-03 09:37:08 -06:00
ahocevar
dbb9525515
No longer group features by geometry type
...
With symbolizer literals now being geometry type specific, we no
longer need the overhead to query the RTree separately for each
geometry type and render symbolizer groups by geometry type.
The geometry type index of the FeatureCache is no longer needed.
The filtering functionality of the FeatureCache's
getFeaturesObject method can be removed because it is no longer
used.
2013-10-03 08:35:11 -06:00
Tom Payne
167b309242
Replace source ready flag with loading/ready/error enum
2013-09-30 13:30:54 +02:00
Tim Schaub
bbef15e50e
Consider resolution when applying rules
2013-09-27 11:46:48 +02:00
Bruno Binet
fa484cca8c
Fix tests for min/maxResolution
2013-09-19 16:59:38 +02:00
Tim Schaub
511e5ad5e8
Vector layer updates for new extent structure
2013-09-14 21:13:46 -06:00
Tom Payne
fc2975f346
Rename ol.layer.LayerGroup to ol.layer.Group
2013-09-09 14:23:16 +02:00
Tim Schaub
6078fe7b02
Line literal color instead of strokeColor etc.
2013-08-15 10:37:18 -04:00
Tim Schaub
c36ceab2a0
Separate stroke and fill
2013-08-15 10:37:18 -04:00
Bruno Binet
1aa695580b
Add tests for layer.getLayerState()
2013-08-13 12:27:38 +02:00
Bruno Binet
31c8644716
Add tests for ol.layer.LayerGroup
2013-08-13 12:27:38 +02:00
ahocevar
9095032014
Removing unused methods and changing getFeaturesObjectForExtent
...
With this change, getFeaturesObjectForExtent may return null if
the source does not have data loaded for the provided extent.
A callback can be passed to getFeaturesObjectForExtent to get
notified when the requested data is available.
2013-07-17 11:28:48 +02:00
Frédéric Junod
07d790260c
Merge pull request #690 from fredj/layer-options
...
ol.layer.Layer: default values
2013-06-27 04:35:02 -07:00
Tim Schaub
2577d3f7d6
Rename ol.expression to ol.expr
2013-06-25 12:15:34 -06:00
Tim Schaub
b04a36ede7
Replace use of filter with expressions
...
The canvas vector layer still has the (API candidate) `getFeatures` method that accepts an arbitrary expression (was filter). This, and the `getFeaturesObject` method under it are only used in the tests. The rendering code that was using filters is now calling `layer.getFeaturesObjectForExtent` with an explicit extent and optional geometry type.
2013-06-25 12:15:33 -06:00
Tim Schaub
5e309e244b
Using ol.expression.parse
2013-06-25 12:11:50 -06:00
Frederic Junod
cd13e700ac
Pass options to the base class
2013-06-25 13:13:41 +02:00
Tom Payne
aa1a71ed96
Don't attempt to constrain values in setters
2013-06-19 13:38:57 +02:00
Tom Payne
46553c719c
Rename ol.projection to ol.proj
2013-05-30 18:55:58 +02:00
Tom Payne
71e06761f0
Fix use of dispose in ol.layer.Vector tests
2013-04-22 17:16:44 +02:00
Tom Payne
3c541045bb
Fix use of dispose in ol.layer.Layer tests
2013-04-22 17:16:43 +02:00
Tom Payne
01168e805a
Port ol.filter.ExtentFilter to new extents
2013-04-19 10:03:35 +02:00
Bruno Binet
9b1c389c80
Remove unused goog.require directives
2013-03-14 11:39:43 +01:00
Tobias Bieniek
47261124fc
test: Added expect(spy).to.be.called() syntactic sugar
2013-03-13 17:18:23 +01:00
Tobias Bieniek
d5d8afc858
Converted "vector" branch unit tests to mocha, expect.js and sinon
2013-03-13 04:48:08 +01:00
Tobias Bieniek
8273d880d5
Merge remote-tracking branch 'origin/master' into mocha
...
Conflicts:
test/jasmine-extensions.js
2013-03-13 04:46:16 +01:00
Tobias Bieniek
89ab68cde7
Replaced jasmine testing framework by mocha, expect.js and sinon
...
as discussed in #319
2013-03-13 04:32:43 +01:00
Tim Schaub
ee75c4b90e
Use new projection getter
2013-03-07 23:48:10 -07:00
Tim Schaub
4422e3e73b
Merge branch 'master' of github.com:openlayers/ol3 into vector
2013-03-07 23:10:06 -07:00
Tim Schaub
faee18bae1
Use fillColor and strokeColor instead of fillStyle and strokeStyle
...
The color names are more intuitive. And if we want to support pattern strokes or fills, we'll need additional proerties to represent other pattern properties.
2013-03-07 22:51:14 -07:00
Tom Payne
afcbec469a
Rename ol.projection.getFromCode to ol.projection.get
2013-03-07 13:29:39 +01:00
Tim Schaub
e1c3faa53e
Vector related exports
2013-03-05 18:13:10 +01:00
Tim Schaub
12bee3178e
Moving the feature management to the layer
...
The source will be responsible for fetching vector data.
2013-03-05 12:46:55 +01:00
Tim Schaub
1d6cd1bd1b
Lint-free tests
2013-03-04 21:30:23 +01:00
Tim Schaub
c29fabebef
Merge branch 'master' of github.com:openlayers/ol3 into vector
2013-03-04 21:06:13 +01:00
Tom Payne
df5f74b3c0
Add missing requires to specs
2013-03-04 20:02:55 +01:00