Tim Schaub
80df1f5ae8
Move opt_useCapture arg to the end of the list
2016-02-03 11:19:38 +01:00
Andreas Hocevar
3f2d79b7fe
Replace goog.events.Event/EventTarget system with our own
...
This also removes goog.events.listen, goog.events.unlisten,
goog.events.unlistenByKey and goog.events.BrowserEvent.
2016-02-03 11:19:38 +01:00
Nicholas L
d1b6a17773
Remove goog.array.extend
2016-02-03 11:41:38 +13:00
Andreas Hocevar
ecb2a42900
Properly detect feature on unmanaged layer for toggle selection
2016-01-30 18:13:48 +01:00
Frederic Junod
b7cbd20b6f
Add missing JSDoc tags
2016-01-25 14:37:45 +01:00
Tim Schaub
13a981c94b
Fewer blank lines
2016-01-11 22:03:23 -08:00
Tim Schaub
3cf8618fc7
Prefer single line assignment to 80 character limit
2016-01-11 18:56:08 -08:00
Tim Schaub
e6f6dcc230
Partial valid-jsdoc corrections
2016-01-11 18:56:08 -08:00
Frederic Junod
eb762b6f4a
Update getExtent return value jsdoc tag
...
The extent is never `null`; if the source is empty, the extent is
`[Infinity, Infinity, -Infinity, -Infinity]`
2015-11-02 16:30:54 +01:00
Andreas Hocevar
2b2ac47b1f
Remove ol.source.TileVector
2015-10-28 10:29:04 +01:00
Andreas Hocevar
8e9b20db51
Additional tests, documentation and example
2015-10-28 10:29:02 +01:00
Marc Jansen
e1f477ad8c
Remove goog.isNull in source classes
2015-10-01 09:18:52 +02:00
Tim Schaub
1aca93d297
Remove goog.isDefAndNotNull() from vector sources
2015-09-29 09:48:19 -06:00
Tim Schaub
ed3dcd636f
Replace !goog.isDefAndNotNull() with falsey checks
2015-09-29 09:32:51 -06:00
Tim Schaub
ac7db89a91
Replace goog.isDefAndNotNull() with truthy checks
2015-09-29 09:32:51 -06:00
Marc Jansen
bc58c383ba
Replace goog.nullFunction with ol.nullFunction
2015-09-29 16:39:35 +02:00
Frederic Junod
496cece074
Remove use of goog.array.forEach
2015-09-29 10:55:17 +02:00
Tim Schaub
83c59ee255
Inline goog.isDef() calls for properties
2015-09-27 10:40:20 -06:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
a86c270f6a
Inline simple !goog.isDef() calls
2015-09-27 10:31:16 -06:00
Tim Schaub
b36d697585
Inline goog.isDef() property checks
2015-09-27 10:21:50 -06:00
Tim Schaub
7659e47e07
Inline simple goog.isDef() checks
2015-09-27 10:18:44 -06:00
Tim Schaub
cf5eadebaa
Define options
2015-09-27 10:11:30 -06:00
Andreas Hocevar
8f7cbc5ed6
Clear features properly when there is no spatial index
...
Previously clear() only kept the features collection in sync whern there
was also a features RTree.
2015-07-15 15:15:41 +02:00
Guillaume Beraudo
d48e818390
Fix assert documentation typo
2015-06-10 15:36:43 +02:00
Andreas Hocevar
57e1dda5f1
Make sure that #clear() keeps the collection in sync
2015-06-09 15:44:39 +02:00
Andreas Hocevar
f186ed3deb
Alternatively manage features in an ol.Collection
...
ol.layer.Vector can now manage both an RTree and a Collection of features.
The new useSpatialIndex option allows to opt out of RTree management, and
the new ol.Collection type of the features option allows to opt in for
Collection management.
2015-06-09 15:44:18 +02:00
Andreas Hocevar
513677fecd
Render map replay group on the correct world instead of wrapping it
...
By using the frameState's focus, we can adjust extent and transform and
render it for the world of interest instead of wrapping it and rendering
for every visible world.
2015-04-22 09:11:19 +02:00
Andreas Hocevar
a90a012e5d
Replay vector batches for each world
2015-04-18 19:10:53 +02:00
Éric Lemoine
ce83fbdbe3
Rename rBush_ to featuresRtree_ in ol.source.Vector
2015-04-08 10:22:56 +02:00
Éric Lemoine
c3658de75a
Make addFeature(s) ignore features with same id
2015-04-08 10:22:56 +02:00
Éric Lemoine
09b90c8424
Add loader and strategy to ol.source.Vector
2015-04-08 10:22:56 +02:00
Tim Schaub
5fe6f07969
Make the source.getFeaturesInExtent() method exportable
2015-04-02 16:23:53 +02:00
Marc Jansen
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
tsauerwein
f4500c8f89
Rename *AtPixel to *AtCoordinate if coordinate
2015-01-30 10:00:37 +01:00
Guillaume Beraudo
e3947fb09a
Add optional fast parameter for clearing vector source
2014-12-05 18:06:23 +01:00
Guillaume Beraudo
17e56d8357
Introduce clear event on vector source
...
Three seconds speed up when clearing 100'000 features.
Clearing is now around 350ms.
2014-12-05 15:03:23 +01:00
tsauerwein
56e3ba4578
Use bulk insertion for addFeatures
2014-10-24 17:10:02 +02:00
Tim Schaub
473023d146
Document exportable vector source symbols
2014-10-22 09:12:37 -06:00
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
Éric Lemoine
227f3bae18
Add ol.source.Vector#forEachFeatureIntersectingExtent
2014-09-17 12:26:26 +02:00
Andreas Hocevar
ebe3b48e0a
Rename ol.Observable#dispatchChangeEvent() to #changed()
...
Since dispatchChangeEvent does not only dispatch a change event, but
also increases the revision counter, the method name should reflect
this.
2014-09-04 19:30:48 -06:00
Éric Lemoine
02dc7bcc9e
Add @api stable annotations for ol.source.Vector
2014-08-22 10:19:36 +02:00
Éric Lemoine
711c4bbc8c
Merge pull request #2450 from probins/events
...
Improve and standardise event docs
2014-08-18 17:35:59 +02:00
Peter Robins
7a5a5d75e7
Improve and standardise event docs
2014-08-18 15:17:02 +00:00
Éric Lemoine
a16a678ca7
Be stricter with types
2014-08-14 10:56:48 +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
4cf5ab4620
Use @api annotation instead of @todo api
2014-07-05 15:41:14 -04:00
tsauerwein
5adb3a6a8e
Export ol.source.Vector.clear()
2014-07-02 11:53:58 +02:00