Tim Schaub
6955499534
Update rtree to use new extent structure
2013-09-14 21:11:52 -06:00
Tim Schaub
60bf396e25
Update geom package to use new extent structure
2013-09-14 21:11:52 -06:00
Tim Schaub
dbccb8b231
Function for cloning extents
2013-09-14 21:11:52 -06:00
Tim Schaub
fcf00dea8b
New structure for extent: [minCoord, maxCoord]
2013-09-14 21:11:52 -06:00
Tim Schaub
3dc2b69615
Test conventions
...
* use `be` or `equal` for strict equality tests
* use `be.a` for `instanceof` checks
* use dot instead of bracket notation
2013-09-14 18:10:13 -06:00
Tim Schaub
75fffd1f47
Making use of the closure-util package
...
This provides some initial development utilities for people using Node.
Instructions for installing:
npm install
After pulling down the dependencies, you can start a developement server that provides the libraries (ol and Closure Library) in debug mode (not minified/compiled). Run the dev server with the following:
npm start
Currently, the example index page needs to be built with `build.py`. After building that, you should be able to browse all static files, view the examples and run the tests.
2013-09-14 18:10:12 -06:00
Tim Schaub
ba7e0e7da3
Merge pull request #973 from tschaub/default-style
...
Rework default style handling.
2013-09-10 07:58:44 -07:00
Tom Payne
23505799b6
Rename ol.test.source.MockTileSource to ol.test.source.TileMock
2013-09-09 15:17:36 +02:00
Tom Payne
71a396a189
Rename ol.source.TileSource to ol.source.Tile
2013-09-09 14:40:23 +02:00
Tom Payne
7d5a84ce8a
Rename ol.layer.ImageLayer to ol.layer.Image
2013-09-09 14:36:40 +02:00
Tom Payne
5967f96047
Rename ol.source.ImageSource to ol.source.Image
2013-09-09 14:33:12 +02:00
Tom Payne
fc2975f346
Rename ol.layer.LayerGroup to ol.layer.Group
2013-09-09 14:23:16 +02:00
Tim Schaub
13a937fad7
Lazily create default style
2013-09-07 09:19:11 -06:00
Tim Schaub
8b7a0a060c
Export ol.interaction namespace instead of the defaults function
2013-09-04 13:55:54 -06:00
Tim Schaub
b479909e25
Remove map from control options
2013-08-30 14:59:21 -06:00
ahocevar
0c1f2328f9
Do not implement a specific clone method
...
What we need here is a mix of deep and shallow cloning, and we
do not want to do this in a generic ol.Feature#clone() method.
2013-08-29 16:50:55 +02:00
ahocevar
0fbf07fef1
Using a renderIntent lib function instead of this identifier
...
A 'this' identifier is quite useless with compressed JavaScript,
and in fact it turned out to fail in advanced mode when trying
to access a feature's renderIntent property with it. The added
renderIntent lib function as a Call expression does the job
well.
2013-08-29 16:50:54 +02:00
ahocevar
100b85a7b0
Converting control to an interaction
...
To dispatch events, the interaction base class now inherits from
goog.events.EventTarget.
2013-08-29 16:50:53 +02:00
ahocevar
c6e61e2d23
Dynamic layers and lazy selection layer creation
...
With this change, the user provides a filter function instead of
an array of layers. Selection layers are created lazily, and
addition/removal of layers is not handled by the control to give
the user more options, as suggested by @elemoine.
2013-08-29 16:50:53 +02:00
ahocevar
a417b75c1f
Simplifying layer mapping
...
By making selectionLayer an object keyed by source layer UIDs,
we save some indexOf lookups.
2013-08-29 16:50:53 +02:00
ahocevar
56c228d009
Removing option for temporary layer
...
Instead, adding setter and getter for a private temp_ property,
as suggested by @elemoine.
2013-08-29 16:50:52 +02:00
ahocevar
4f2d37b6a3
New ThisIdentifier expression
...
This allows member expressions to use the 'this' keyword.
2013-08-29 16:50:52 +02:00
ahocevar
14b69d15f1
One selection layer per source layer
...
This way all styles can be defined on the source layer, by
defining a rule with a select renderIntent. It also will make
addition and removal of layers easier while the select control
is active.
2013-08-29 16:50:52 +02:00
ahocevar
f05629b3c3
Work with clones rather than the original features
2013-08-29 16:50:51 +02:00
ahocevar
0c54cbd9cc
Adding tests
2013-08-29 16:50:51 +02:00
Éric Lemoine
c608e15943
Merge pull request #929 from elemoine/collectionevent
...
Add ol.CollectionEvent#getElement
2013-08-28 02:16:57 -07:00
Tim Schaub
efeb00e4a5
Add x/y offset for icon symbolizers
2013-08-27 16:22:45 -06:00
Éric Lemoine
d1e879e03f
Use ol.Collection#getElement in tests
2013-08-27 22:11:33 +02:00
Tim Schaub
0c555e6e7d
Accept null crs
2013-08-27 10:54:00 -06:00
Tim Schaub
e8ddecc8b1
Merge pull request #920 from tschaub/point-examples
...
Cast to number when creating literals from symbolizers where literal properties must be numeric.
2013-08-26 11:57:09 -07:00
Tim Schaub
ecba1d78c2
Merge pull request #921 from tschaub/geojson-crs
...
Parse top-level crs member when reading features from GeoJSON.
2013-08-26 10:41:14 -07:00
Tim Schaub
eaf447759f
Merge pull request #913 from tschaub/dimension
...
Allow for vector data with unknown or inconsistent dimension.
2013-08-26 05:59:50 -07:00
Tim Schaub
7e2bd66417
Read crs from top-level object when parsing as features
2013-08-25 12:32:22 -06:00
Tim Schaub
8190178fc9
Missing test dependency
2013-08-23 18:28:44 -04:00
Tim Schaub
3c993168c4
Cast to numbers for literals
...
There are times when we parse from XML without a schema (e.g. KML). In these cases, features attributes will always be strings. We can cast to number when creating literals from symbolizers and then assert `!isNaN` instead of asserting that they are numbers before.
2013-08-23 17:30:24 -04:00
Tim Schaub
43953c8efa
Call concat instead of using math op in FE expression parsing
2013-08-23 16:46:33 -04:00
Tim Schaub
3b615fa312
Add a concat function for concatenating strings
2013-08-23 13:05:12 -04:00
Tim Schaub
554a725d1a
Merge pull request #912 from tschaub/seperate-fill-stroke
...
Separate fill and stroke symbolizers. Allow styles with no rules (and also support "else" symbolizers).
2013-08-19 15:43:06 -07:00
Tim Schaub
0f9e269057
Ignore extra dimensions and pad with NaN for missing dimensions
2013-08-18 09:57:26 -04:00
Tim Schaub
94c4d420a6
Merge pull request #911 from tschaub/expression-literals
...
Parse literal nodes in expressions in addition to text nodes.
2013-08-16 08:36:25 -07:00
Tim Schaub
9b90129b24
Merge pull request #904 from tschaub/test-correction
...
Correctly make assertions with expect.
2013-08-15 11:44:31 -07:00
Tim Schaub
183b51a1c0
Parse literal nodes in expressions in addition to text nodes
2013-08-15 14:32:47 -04:00
Tim Schaub
dd72408a88
Dependencies
2013-08-15 14:07:11 -04:00
Tim Schaub
af1cd64018
Lint
2013-08-15 13:54:37 -04:00
Tim Schaub
bad401bc17
Add support for "else" symbolizers
...
When a style has no rules, the "else" symbolizers apply. When a style has rules and none of them apply to the given feature, the "else" symbolizers apply. Note that this is different than default symbolizer properties that might be merged into all symbolizers (as in OL2) - I don't think we should support that.
2013-08-15 10:37:18 -04:00
Tim Schaub
6078fe7b02
Line literal color instead of strokeColor etc.
2013-08-15 10:37:18 -04:00
Tim Schaub
a5991aee03
Remove applyDefaultStyle method
2013-08-15 10:37:18 -04:00
Tim Schaub
a670e225cd
Clearer naming of method to create symbolizer literals
2013-08-15 10:37:18 -04:00
Tim Schaub
d5d0262b4c
Create literal with feature or geometry type
2013-08-15 10:37:18 -04:00
Tim Schaub
c36ceab2a0
Separate stroke and fill
2013-08-15 10:37:18 -04:00