Commit Graph
100 Commits
Author SHA1 Message Date
Antoine Abt a51e834fef Merge pull request #2027 from tonio/rotate
Add a rotate control
2014-05-06 15:36:01 +02:00
Antoine Abt 603be52b1a Remove useless test in default controls 2014-05-02 14:12:31 +02:00
Antoine Abt 0bec5b5590 Add base control class, to simplify stylesheet 2014-05-02 14:12:31 +02:00
Antoine Abt 04fd0ecf53 Add rotate control to defaults. 2014-05-02 14:12:31 +02:00
Antoine Abt 229ae5e883 Add rotate control
- displayed when rotation ≠ 0
 - reset rotation on click
2014-05-02 14:12:31 +02:00
Antoine Abt 050f0cede6 Merge pull request #1974 from tonio/selectfeature
Automatically skip features on select’s collection changes
2014-04-10 14:41:52 +02:00
Antoine Abt 5147a0b060 Automatically skipFeatures on select’s collection changes 2014-04-10 14:24:39 +02:00
Antoine Abt ef546888c8 Merge pull request #1750 from tonio/default_editing_style
Share editing default styles
2014-03-31 11:03:35 +02:00
Antoine Abt 7122906214 Select interaction options are now optional 2014-03-31 10:24:17 +02:00
Antoine Abt 5cc1a986c2 Share editing default styles 2014-03-31 10:24:17 +02:00
Antoine Abt 4879f79094 Merge pull request #1877 from tonio/skip_features
Replace renderGeometryFunction by skippedFeatures
2014-03-21 09:57:19 +01:00
Antoine Abt 6a4c2bccc5 Coding style 2014-03-20 13:08:10 +01:00
Antoine Abt 78039aceb8 Use a hash to store features uids 2014-03-20 13:03:31 +01:00
Antoine Abt d0f2dd354b Trigger render on skippedFeatures change 2014-03-20 10:25:45 +01:00
Antoine Abt e1e4969599 Name frameState skippedFeaturesIds as private 2014-03-20 10:24:39 +01:00
Antoine Abt 0d87516135 Map stores skippedFeatures instead of layers 2014-03-19 17:24:58 +01:00
Antoine Abt e91db0f9af Check for null layers (for postcompose hitdetection) 2014-03-19 12:33:48 +01:00
Antoine Abt c8de4d908d Skip features in select interaction 2014-03-19 12:33:32 +01:00
Antoine Abt c2c3798087 Update select-features example styles 2014-03-19 12:31:45 +01:00
Antoine Abt 9f7cba0ac0 Skipped features replaces RenderGeometryFunction 2014-03-19 12:31:45 +01:00
Antoine Abt c915e1209a Merge pull request #1761 from tonio/chrome_buttons
Fix button tips not disappearing on Chrome
2014-02-26 18:24:29 +01:00
Antoine Abt d53fa8f45a Fix chrome not to blur on mouseout/focusout
may be related to https://code.google.com/p/chromium/issues/detail?id=321264 ?
2014-02-26 11:24:54 +01:00
Antoine Abt 7426da61ea Make ZoomToExtent listen on button click
& not its container
2014-02-26 11:15:03 +01:00
Antoine Abt e213bccef7 Merge pull request #1740 from tonio/interaction_api
Editing interaction api cleanup
2014-02-24 08:46:49 +01:00
Antoine Abt a971928bbe Add features option to draw interaction 2014-02-21 13:41:07 +01:00
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
Antoine Abt b6005fc834 Merge pull request #1725 from tonio/a11y-enhanced-zoomcontrol
Enhance controls accessibility
2014-02-20 17:15:12 +01:00
Antoine Abt ae3ad24928 Reorder default controls 2014-02-20 16:52:09 +01:00
Antoine Abt 3e21ad6dd2 Wording in description 2014-02-20 16:47:34 +01:00
Antoine Abt 30bc97755a Restore preventDefault call that shouldn’t have been removed 2014-02-20 16:47:34 +01:00
Antoine Abt 2a48197234 Css tweaks for touch devices 2014-02-20 16:47:34 +01:00
Antoine Abt fd9b4a7ee9 Use «em» based positioning 2014-02-20 16:47:34 +01:00
Antoine Abt ed8e0e8552 Minor cleanups 2014-02-20 16:47:34 +01:00
Antoine Abt d52f62fb5a Make Fullscreen control use <button> instead of <a> 2014-02-20 16:47:33 +01:00
Antoine Abt b3abc166a4 Make zoomToExtent control use <button> instead of <a> 2014-02-19 09:34:04 +01:00
Antoine Abt b6052320ad Coding style 2014-02-18 15:49:45 +01:00
Antoine Abt 1a44fb2ff3 Make zoom control tip texts configurable 2014-02-18 15:25:58 +01:00
Antoine Abt a1d838c10c Use «em» for buttons sizing 2014-02-18 15:18:58 +01:00
Antoine Abt f8cfa9a24d Better integration of button tooltips 2014-02-17 16:43:35 +01:00
Antoine Abt aa51edbeef Make fullscreen control use shared styles 2014-02-17 12:30:57 +01:00
Antoine Abt e567383269 Share styles between zoom & extent control 2014-02-17 12:30:57 +01:00
Antoine Abt edd69ac95f Remove unneeded selectors, share font-family definitions 2014-02-17 12:30:57 +01:00
Antoine Abt a658435e38 Merge pull request #1705 from tonio/geojson_null_geometry
Allow GeoJSON features to have `null` geometries.
2014-02-17 08:23:05 +01:00
Antoine Abt 04f1f2120b Merge pull request #1697 from tonio/remove_renderer_guess
Remove `ol.RendererHints.createFromQueryData` from the library
2014-02-17 08:21:18 +01:00
Antoine Abt 24ee4cb742 [GeoJSON] Add support for feature with null geometries 2014-02-14 15:12:16 +01:00
Antoine Abt d9c5102bcd Add failing test for feature with null geometries 2014-02-14 15:02:49 +01:00
Antoine Abt 1970285066 Merge pull request #1704 from tonio/fix_fullscreen
Prevent OSX Safari to display distorted map
2014-02-14 13:55:28 +01:00
Antoine Abt bb50d5936f Prevent OSX Safari to display distorded map 2014-02-14 11:32:00 +01:00
Antoine Abt 4478d6c34c Fixes mobile fullscreen example (no mode chooser) 2014-02-14 09:32:14 +01:00
Antoine Abt 4dd8c248f5 Remove ol.RendererHints.createFromQueryData 2014-02-14 09:32:14 +01:00
Antoine Abt 21bfdb1d1e Add example extern for exampleNS 2014-02-14 09:32:14 +01:00
Antoine Abt b169ef2094 Add renderer guess in example shared file
& use it in every example.
2014-02-13 17:21:03 +01:00
Antoine Abt 2369ac62eb Load example-behaviour before example script 2014-02-13 17:21:02 +01:00
Antoine Abt 196f6cccfd Merge pull request #1689 from tonio/fix_modify
Check for geometries type instead of `instanceof`
2014-02-12 15:51:32 +01:00
Antoine Abt f8a748d7f4 Fix MultiPoint modify 2014-02-12 15:26:57 +01:00
Antoine Abt 56a1f053ff Check geometry type instead of instanceof 2014-02-12 15:25:47 +01:00
Antoine Abt 715966a8d1 Add MultiPoint to modify example 2014-02-12 15:24:32 +01:00
Antoine Abt 0764ea99ee Merge pull request #1654 from tonio/vector-api-modify
Add Modify Interaction
2014-02-11 16:59:43 +01:00
Antoine Abt 03624b5f78 Check segment writers existence 2014-02-11 14:36:54 +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 0272659118 Remove useless style method 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 5325af26d6 Store mouse last position to draw vertex at feature selection 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 e64766f01f Add support for GeometryCollection in modify interaction 2014-02-10 11:26:13 +01:00
Antoine Abt a60203f931 Move segment writers in their own methods 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 1c4926b591 Ensure styles are defined in FeaturesOverlay 2014-02-07 14:52:59 +01:00
Antoine Abt 933ef64db1 Force remove vertexFeature when there’s no features left in FeaturesOverlay 2014-02-07 14:52:59 +01:00
Antoine Abt fb637aedca Move variables declaration at the top 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
Antoine Abt 8f9e2ea88d Merge pull request #1649 from tonio/geometrycollection_change
Make GeometryCollection propagate change events of its geometries.
2014-02-06 16:33:13 +01:00
Antoine Abt f2c18fafb8 Make GeometryCollection dispatch change event'
When one of its component changes.
2014-02-06 15:55:02 +01:00
Antoine Abt ef27ed7aef Add failing test for change event propagation 2014-02-06 10:31:01 +01:00
Antoine Abt af45161ea2 Merge pull request #1496 from tonio/vector-api-topojson
[vector-api] Add TopoJSON format
2014-01-16 05:55:40 -08:00
Antoine Abt 58d90e31ff Better styling in example 2014-01-16 10:25:20 +01:00
Antoine Abt c8e7c9f64e Add support for reading id & properties 2014-01-16 10:25:19 +01:00
Antoine Abt 1dce04b6ec Make TopoJSON tests use new format 2014-01-16 10:25:19 +01:00
Antoine Abt 938d74a785 Add TopoJSONOptions literals for source & format 2014-01-16 10:25:18 +01:00
Antoine Abt d2e8b9f3bb Bring tests back 2014-01-16 10:25:18 +01:00
Antoine Abt a69f62e238 Add TopoJSON source & use it in example 2014-01-16 10:25:18 +01:00
Antoine Abt 000e9ad82d Bring topojson examples back 2014-01-16 10:25:18 +01:00
Antoine Abt dfbdd61701 Add new TopoJSON format. 2014-01-16 10:25:17 +01:00
Antoine Abt 979b7485b5 Move format exports into child classes.
To only export implemented methods.
2014-01-16 10:25:17 +01:00
Antoine Abt fec4fd6d2f Merge pull request #1452 from tonio/vector-api-dragbox-webgl
[vector-api] Re-enable dragzoom for every renderer
2014-01-03 07:46:14 -08:00
Antoine Abt 2ebfba2235 add Immediate renderer to webgl layer postcompose event 2014-01-03 16:38:25 +01:00
Antoine Abt 6dd504dcb2 Animate DragZoom 2014-01-03 16:38:25 +01:00
Antoine Abt 3461b026b6 Do not draw a rotated box, in dragbox/dragzoom
Use pixels to draw a straight box, perserving rotation while zooming
2014-01-03 11:55:28 +01:00
Antoine Abt 47d9fd354b Remove dragzoom example
Since it has been re-added to default controls
2014-01-03 11:55:28 +01:00
Antoine Abt 39cf993b39 Revert "Remove DragZoom from default interactions"
This reverts commit c2330b9786.
2014-01-03 11:55:27 +01:00
Antoine Abt 1142d55565 Add skeleton for webgl immediate renderer 2014-01-03 11:55:27 +01:00
Antoine Abt f93a404adf Merge pull request #1422 from tonio/vector-api-dragbox
[vector-api] Refactor DragZoom
2013-12-20 06:32:34 -08:00
Antoine Abt 8354400e52 Add dragzoom example, configured with canvas renderer 2013-12-20 15:24:53 +01:00
Antoine Abt c2330b9786 Remove DragZoom from default interactions
As it only works with canvas renderer.
2013-12-20 15:24:53 +01:00
Antoine Abt adfe20dd12 Make DragBox interaction dispatch events
- boxstart/boxend events are dispatched,
- behavior is removed,
- geometry drawn by box render is a simple polygon instead of one with hole.
2013-12-20 15:24:53 +01:00