Commit Graph

783 Commits

Author SHA1 Message Date
Tom Payne 167b309242 Replace source ready flag with loading/ready/error enum 2013-09-30 13:30:54 +02:00
Tim Schaub 1aa83e133b Remove dimension property from geometries
This was only necessary when using the shared vertices structure.
2013-09-27 23:18:34 +01:00
Tim Schaub 3aff5e19f1 Remove shared vertices 2013-09-27 23:18:34 +01:00
Tim Schaub 33457c48de Add transform method to geometries
In the typical sequence of parse-transform-render the most efficient place to transform coordinate values is deep within the parser immediately after values have been read (this would avoid a second pass over whatever structure is used to back geometries).  To accomplish this transform during parsing, we could add back parser read options to pass the transform function around.

Until then, a transform method on geometries is straightforward to implement.  This means we do a second pass through coordinate structures to transform, but this is typically done only once immediately after parsing.
2013-09-27 23:18:34 +01:00
Tim Schaub e1ba1d8887 Remove use of shared structures in feature parsers 2013-09-27 23:18:34 +01:00
Tim Schaub 2850c761cf Remove use of shared vertices in geom package 2013-09-27 23:18:17 +01:00
Tim Schaub bbef15e50e Consider resolution when applying rules 2013-09-27 11:46:48 +02:00
Tim Schaub 78c54addb3 Add min/maxResolution properties to rule options 2013-09-27 11:45:43 +02:00
Tim Schaub 6276e633de Merge pull request #832 from fredj/feature_getset_id
Rename setFeatureId to setId (same for get).
2013-09-20 10:31:37 -07:00
Tom Payne aa44547565 Remove ol.extent.toString 2013-09-20 12:14:41 +01:00
Bruno Binet fa484cca8c Fix tests for min/maxResolution 2013-09-19 16:59:38 +02:00
Tom Payne 98ba6b63a4 Add compiled version of mocha-phantomjs.js 2013-09-18 11:25:28 +01:00
Frederic Junod 764aacb568 Rename {get|set}FeatureId to {get|set}Id 2013-09-17 12:50:56 +02:00
Éric Lemoine 4abdac2abf Merge pull request #1030 from elemoine/touches
Exclude tiles that touches the source extent
2013-09-16 10:00:11 -07:00
Éric Lemoine 70c66d4cf1 Add ol.extent.touches 2013-09-16 15:51:12 +02:00
Tim Schaub b524de417b Rename ol.ProjectionUnits to ol.proj.Units 2013-09-15 22:04:51 -06:00
Tim Schaub 3b20cc7b53 Rename ol.Projection to ol.proj.Projection 2013-09-15 22:01:56 -06:00
Tim Schaub b192335e56 Merge pull request #1027 from tschaub/closure-util
Use the closure-util package.  Documentation will come when this is a more complete solution.  See #1027 for basic usage instructions.
2013-09-15 15:36:13 -07:00
Tim Schaub f1f319d6ad Preemptively set global properties
As mentioned in the comments, calling goog.getUid and goog.events.listen on the global object (as done in map.js and deviceorientation.js) set global properties.  To let Mocha check for other leaks, we preemptively set these properties.
2013-09-15 14:22:41 -06:00
Tim Schaub 13b55b04a8 Unnecessary spy 2013-09-15 10:41:44 -06:00
Éric Lemoine 009172951c WebGL image layer tests require the common proj 2013-09-15 10:37:22 -06:00
Éric Lemoine ecd82297a0 Better setup/teardown for ol.proj tests 2013-09-15 10:37:01 -06:00
Tim Schaub e806f51b3d Changing extent structure back to single array: [minX, minY, maxX, maxY]
This means we'll have to have a new structure and new methods for 3D envelopes.
2013-09-15 00:31:32 -06:00
Tim Schaub e84e0e1233 WebGL renderer updates for new extent structure 2013-09-14 21:14:55 -06:00
Tim Schaub 3faa035de3 Geom2 package working with new extent structure 2013-09-14 21:13:47 -06:00
Tim Schaub 511e5ad5e8 Vector layer updates for new extent structure 2013-09-14 21:13:46 -06:00
Tim Schaub 75cb19d7e1 Source updates for new extent structure 2013-09-14 21:13:46 -06:00
Tim Schaub a670b7979c Tile grid working with new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 65863614bb GeoJSON and TopoJSON tests for new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 0eb4cd6dd4 Proj support for new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 7d00159bff WMS capabilities parsing with new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 3ea6041714 GML parsing with new extent structure 2013-09-14 21:11:53 -06:00
Tim Schaub 208d86b5bf Arg order for extent function in expressions 2013-09-14 21:11:52 -06:00
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