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
db3ad70a3d
Remove use of goog.bind and use ES5 .bind
2016-01-15 22:10:55 +13: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
Andreas Hocevar
2b2ac47b1f
Remove ol.source.TileVector
2015-10-28 10:29:04 +01:00
Andreas Hocevar
6e2f82c397
Introduce ol.render.Feature
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
ed3dcd636f
Replace !goog.isDefAndNotNull() with falsey checks
2015-09-29 09:32:51 -06:00
Tim Schaub
29a1ea9ae3
Remove remaining goog.isDef() calls
2015-09-27 11:13:58 -06:00
Tim Schaub
e3951fa3c6
Inline simple goog.isDef() calls
2015-09-27 10:34:44 -06:00
Tim Schaub
b36d697585
Inline goog.isDef() property checks
2015-09-27 10:21:50 -06:00
Marc Jansen
fb9ba22c30
Add message to assertions.
2015-03-30 22:53:03 +02:00
acanimal
086202cfdd
Added short description on getSource() method
2015-02-25 07:54:14 +01:00
tsauerwein
f4500c8f89
Rename *AtPixel to *AtCoordinate if coordinate
2015-01-30 10:00:37 +01:00
tsauerwein
054227fd26
Make signature for *AtPixel methods more consistent
...
pixel/coordinate is the first argument.
2015-01-30 10:00:36 +01:00
tsauerwein
7feb8b22f6
Rename forEachGeometryAtPixel
2015-01-30 10:00:36 +01:00
Éric Lemoine
ddc51ee267
Unconditionally draw Replay's
2014-12-18 13:04:29 +01:00
Éric Lemoine
fdf52c1865
Simplify hit detection code
2014-12-05 15:42:54 +01:00
oterral
345c5c5eb7
Give priority to feature's style instead of source's style
2014-10-14 17:39:51 +02:00
Éric Lemoine
f8702e2038
Call loadFeatures from ol.source.ImageVector
2014-09-23 09:36:00 +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
c81dfdc69b
Do not hit-detect the same feature multiple times
...
In other words forEachFeatureAtPixel should not call the user-provided callback more than once for a given feature.
2014-08-18 10:24:12 +02:00
Bart van den Eijnden
f468239e71
Merge pull request #2394 from tonio/style_order
...
Give precedence to feature styles
2014-07-25 11:34:24 +02:00
Antoine Abt
4b8ceca8eb
Move defaults style into style.js
2014-07-25 09:50:53 +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
Antoine Abt
60f1874766
Give precedence to feature style
2014-07-16 11:25:16 +02:00
Éric Lemoine
49b91998f9
Pass tolerance to ReplayGroup
...
The tolerance instead of the squared tolerance must be passed to the ReplayGroup constructor.
2014-07-10 09:52:13 +02:00
Tim Schaub
4cf5ab4620
Use @api annotation instead of @todo api
2014-07-05 15:41:14 -04:00
Andreas Hocevar
f67767aaf0
Add ol.renderer.vector.getSquaredTolerance and ol.SIMPLIFY_TOLERANCE
2014-06-27 12:10:46 +02:00
Éric Lemoine
7a1e605f14
Skipped features support to ol.source.ImageVector
2014-06-11 16:26:21 +02:00
Peter Robins
41d9f0360a
Add @classdesc to classes
2014-06-09 12:10:19 -04:00
Andreas Hocevar
fbdbbfb7a7
Get rid of stability annotations and document stability with api
...
This change adds a stability value to the api annotation, with
'experimental' as default value.
enum, typedef and event annotations are never exportable, but
api annotations are needed there to make them appear in the
docs.
Nested typedefs are no longer inlined recursively, because the
resulting tables get too wide with the current template.
2014-04-29 09:53:07 -06:00
Tim Schaub
fb497f5288
Annotations for exports
2014-04-29 09:53:05 -06:00
oterral
a277cbf548
Add getSource getter in ol.source.ImageVector
2014-04-17 15:21:11 +02:00
Tom Payne
96b7700d63
Use forEachFeatureInExtentAtResolution in ol.source.ImageVector
2014-04-03 15:23:24 +02:00
Frederic Junod
55de0a54b9
Add ol.dom.createCanvasContext2D function
2014-04-02 09:37:41 +02:00
Antoine Abt
78039aceb8
Use a hash to store features uids
2014-03-20 13:03:31 +01:00
Antoine Abt
9f7cba0ac0
Skipped features replaces RenderGeometryFunction
2014-03-19 12:31:45 +01:00
Tim Schaub
88efda1a1f
Track resolution and buffer max extent to capture strokes
2014-03-13 20:40:18 -04:00
Tim Schaub
f4746687e8
Keep track of max extent for replay
2014-02-25 21:47:57 -07:00
Tom Payne
fe420ce1eb
Pass view rotation to replay
2014-02-21 11:56:34 +01:00
Tim Schaub
c64c24d3dc
Common code for creating a style function
2014-02-13 10:25:16 -07:00
Tim Schaub
b309c44020
Give vector image source a style option
2014-02-13 10:25:16 -07:00
Éric Lemoine
63aadc5c0f
Factor out icon image loading code
2014-02-06 12:59:39 +01:00
Éric Lemoine
bf8520096e
Vector image source uses new image style interface
2014-02-06 12:59:38 +01:00
Tom Payne
4917cc8437
Add stability annotation to ol.source.ImageVector
2014-02-03 14:59:16 +01:00
Éric Lemoine
542cf80da9
Better typing
2014-01-14 12:26:50 +01:00
Éric Lemoine
849e50517c
Add ol.source.ImageVector#forEachFeatureAtPixel
2014-01-14 12:26:50 +01:00
Éric Lemoine
ffcd4e8cc2
Fix hit detection on retina displays
2014-01-13 14:10:51 +01:00
Éric Lemoine
babd133cf6
Export ol.source.ImageVector's styleFunction option
2014-01-13 07:43:02 +01:00