Commit Graph

21 Commits

Author SHA1 Message Date
Antoine Abt ec832bdf6e Modify interaction takes style & features options
Instead of a FeatureOverlay
2014-02-21 12:35:30 +01:00
Antoine Abt 7cea6f3240 Make select interaction create its FeatureOverlay
You can now configure it with a `style` option.
2014-02-21 11:59:43 +01:00
Tim Schaub 6abb691224 Give feature overlays a style option 2014-02-13 10:25:16 -07:00
Tim Schaub 1072f6dfa7 Use style option in vector layer examples
Providing a styleFunction option still works because the layer property is still named styleFunction.
2014-02-13 10:25:16 -07:00
Antoine Abt 715966a8d1 Add MultiPoint to modify example 2014-02-12 15:24:32 +01:00
Antoine Abt 25ba60db9f Use closure for styles & fix case 2014-02-10 11:52:58 +01:00
Antoine Abt 919fbe335f Use strings for GeometryType in examples 2014-02-10 11:26:14 +01:00
Antoine Abt f9b6eabfef %s/render.FeaturesOverlay/FeatureOverlay/ 2014-02-10 11:26:14 +01:00
Antoine Abt c95ffe381b Render style for Point inside GeometryCollection. 2014-02-10 11:26:14 +01:00
Antoine Abt 72675bf6ad Make interaction ctor only have an option object 2014-02-10 11:26:13 +01:00
Antoine Abt 9d591ba7ef Use Select interaction in modify interaction example. 2014-02-10 11:26:13 +01:00
Antoine Abt ad1cec84a1 Add style for Geomettry Collection 2014-02-07 14:52:59 +01:00
Antoine Abt 20ea1b5141 Bring MultiPolygons back in examples 2014-02-07 14:52:59 +01:00
Antoine Abt a1d20182fe Make modify interaction use FeaturesOverlay
Instead of a whole map.
2014-02-07 14:52:58 +01:00
oterral 3155d681be Add modify feature interaction and its example 2014-02-07 14:52:57 +01:00
Tom Payne 4e65fefc00 Move vector code out of the way 2013-11-20 11:39:21 +01:00
Tim Schaub 22da054774 Determine the callback count while iterating through all layers
Previously, if a layer didn't have a `getFeature*ForPixel` type method, the loop count would be decremented.  This means that all layers would not be considered.  Instead, the callback count should be incremented before requests are made and decremented in the callback.
2013-11-13 07:36:54 -07:00
Tim Schaub a2b55b04e8 Rename layerFilter option to layers and accept array 2013-11-12 22:08:59 -07:00
Tim Schaub d577466de6 Common style for drawing and modifying 2013-11-13 00:44:37 +01:00
Tim Schaub af6edadebe Update example with more distinct colors and no social links
Conflicts:
	examples/modify-features.html
2013-11-13 00:44:37 +01:00
ahocevar 292b851a74 Adding ModifyFeature interaction
This is a first draft. The way geometry changes are handled for
now is a bit clumsy. Both updating the feature cache RTree and
making the layer aware of feature and geometry changes could be
handled in a smarter way if these changes would be made through
the layer instead of directly on the geometry or feature.
2013-11-13 00:44:36 +01:00