Commit Graph

107 Commits

Author SHA1 Message Date
Frederic Junod cf8738f9f6 Rename updatefeature event to changefeature 2014-09-30 09:02:53 +02:00
Frederic Junod 79b8ef3a53 Dispatch an 'updatefeature' from the vector source 2014-09-23 16:19:00 +02:00
Andreas Hocevar ec00cd3222 Make tileSize a config option for ol.source.XYZ 2014-09-04 11:59:43 -06:00
Éric Lemoine d1bb2724a5 Stateless GetFeatureInfo for ol.source.ImageWMS 2014-08-21 11:29:44 +02:00
Éric Lemoine ba035abb1f Change ol.TileCoord to an Array 2014-08-18 09:33:24 +02:00
Frederic Junod 06df648733 Add ol.source.Cluster
Initial code by @kenny806
2014-07-29 12:29:43 +02:00
Tim Schaub caa0b568ad Remove extent option for sources
Most of our uses of source extent were cargo cult programming.  The source extent was seldom and inconsistently used.  Instead, layers can now be configured with an extent, and layer renderers limit rendering (and data requests) to the layer extent.

For vector sources, the `getExtent` method returns the extent of currently loaded features (this was the case before and after this change).  For tile based sources, we will likely want to allow easy construction of tile grids based on an extent (this is not possible before or after this change, but could be added later).
2014-07-24 10:30:06 -06:00
Tim Schaub 7bbd27e68e ol.tilegrid.TileGrid doesn't accept an extent option
Tile grids cannot currently be constructed with an extent (though we should perhaps provide a function that allows this - see https://github.com/tschaub/ol3/commit/68815dca10ef006294c767efe9592b682c48dc5f for an example).
2014-07-24 10:26:07 -06:00
Paul Spencer a02d21d4b5 Allow addFeaturesInternal to add multiple features lacking an id 2014-07-10 07:32:20 -04:00
Frederic Junod a172eda242 Remove uniqueness constraint check 2014-06-26 17:55:38 +02:00
Tim Schaub a2b81d6bd0 Disallow adding the same feature twice 2014-05-23 16:52:11 -06:00
Tim Schaub 652f11cefa Provide a method for retrieving features by id 2014-05-23 16:35:07 -06:00
Éric Lemoine 814e5d2790 Re-render on feature changes 2014-03-12 10:03:42 +01:00
Tim Schaub 30dc8195ca Rename getAllFeatruesInExtent to getFeaturesInExtent 2014-03-05 12:31:09 -07:00
Tim Schaub 333e4a9625 Rename getAllFeatures to getFeatures 2014-03-05 12:29:24 -07:00
Ivan Grcic ff32b80035 Add tests for TileWMS tileUrlFunction 2014-02-17 01:23:24 +01:00
Éric Lemoine eb19000a06 Add tests for ol.source.TileWMS#getGetFeatureInfoUrl 2014-01-19 21:52:28 +01:00
Éric Lemoine f1fa0fcfc6 Add tests for ol.source.ImageWMS#getGetFeatureInfoUrl 2014-01-19 21:49:48 +01:00
Tom Payne 58fef69fac Add pixelRatio to ol.source.Tile#getTile 2014-01-15 15:55:19 +01:00
Tom Payne d5c1e53e48 Only support square tiles 2014-01-15 09:45:49 +01:00
Tom Payne cee014ec9e Remove unused ol.source.wms.getUrl function 2014-01-09 15:27:56 +01:00
Tom Payne 8d18f25296 Add ol.source.TileWMS tests 2014-01-09 13:12:49 +01:00
Tom Payne 079cd585e6 Add ol.source.ImageWMS tests 2014-01-09 13:12:49 +01:00
Tom Payne b52a4b084e Remove pointless test 2014-01-09 13:12:49 +01:00
Tom Payne 7ce7bb2187 Merge remote-tracking branch 'openlayers/master' into vector-api 2014-01-09 11:42:14 +01:00
Frederic Junod 0fda88dca3 Remove extra parameters when calling ol.test.source.TileMock.getTile 2014-01-07 12:17:17 +01:00
Tom Payne 8a7ae264e1 Handle feature's geometries changing to and from null in ol.source.Vector 2013-12-20 14:44:21 +01:00
Tom Payne b2c822c9ca Clear null geometry features in ol.source.Vector#clear 2013-12-19 14:53:22 +01:00
Tom Payne aa0a02b935 Enable remaining ol.source.Vector tests 2013-12-04 15:03:20 +01:00
Tom Payne 79c6787e52 Add ol.source.Vector#clear 2013-12-04 14:59:30 +01:00
Tom Payne 66457a7aaf Add ol.source.Vector#isEmpty 2013-12-04 14:49:25 +01:00
Tom Payne d2fd695635 Merge branch 'master' into vector-api 2013-11-28 21:00:18 +01:00
Tim Schaub b7b14420a4 Test removeFeatures and featureremove event 2013-11-27 12:22:34 -07:00
Tim Schaub 8b5dccb742 Test featureadd event 2013-11-27 12:22:34 -07:00
Tim Schaub a5cadacb78 Test featureload event 2013-11-27 12:22:34 -07:00
Tim Schaub f9710b6698 Test forEachFeatureInExtent 2013-11-27 12:22:33 -07:00
Tim Schaub 3bcd4bf833 Tests for getFeatures method 2013-11-27 12:22:33 -07:00
Tim Schaub 1f6d9fc5ae Test for vector source load method 2013-11-27 12:22:33 -07:00
Tim Schaub 8cc4ae8dbd Separate load requests from feature requests
This separates the action of requesting an extent to be loaded from the action of requesting cached features.  The renderer (or any other consumer of a vector source) calls load to request a data extent.  A `featureload` event fires when new features are loaded.  The renderer (or any other consumer) separately asks for cached features given an extent.  This vector source only loads features once, but this separation will also work with sources that make multiple requests for data in different extents.

This also removes the `data` option from the vector source in favor of a `features` option.  Since we no longer have shared data structures for geometries, people can manually create features and pass them to a vector source.  The `addFeatures` method is exported as well.  This is used to add features to a source that don't have a representation on the "remote" (or server).
2013-11-27 12:22:32 -07:00
Tim Schaub bfaed4d52d Moving all style functionality from source to style 2013-11-27 12:20:43 -07:00
Tim Schaub 01a0b9ff8d Private source methods 2013-11-27 12:20:42 -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 8294ca9f57 Port ol.source.Vector to ol.structs.RBush 2013-11-26 11:57:37 +01:00
Tom Payne a89bf0c329 Refactor ol.geom.Point 2013-11-20 11:41:58 +01:00
Tom Payne 67cd0597bb Add ol.source.Vector#forEachFeatureInExtent and #getAllFeaturesInExtent 2013-11-20 11:41:08 +01:00
Tom Payne db40842487 Add ol.source.Vector 2013-11-20 11:41:07 +01:00
Tom Payne bd82e1aa1a Remove vector code from files 2013-11-20 11:41:04 +01:00
Tom Payne 4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01:00
Bart van den Eijnden bb53087541 make sure parameter name lookups are case-insensitive 2013-11-19 17:09:02 +01:00
Bart van den Eijnden ac730dc1f3 override URL parameter values in the GetFeatureInfo request if someone provides a param in getFeatureInfoOptions with the same name 2013-11-19 14:52:29 +01:00