Commit Graph
100 Commits
Author SHA1 Message Date
Antoine Abt c1f7db9611 Set type=button to avoid forms submit 2014-07-24 15:22:19 +02:00
Antoine Abt a314203e12 Fixes wording in comments 2014-07-24 15:22:19 +02:00
Antoine Abt a43c546667 Uncollapse when there’s only logos 2014-07-24 15:22:19 +02:00
Antoine Abt a71714e8b6 Allow string & object to be passed as map logo 2014-07-24 15:22:18 +02:00
Antoine Abt 7fbc4e3bff Rename ol3Logo to logo in map options 2014-07-23 16:27:01 +02:00
Antoine Abt f57a364534 Merge pull request #2370 from gingerik/classlist
Use goog.dom.classlist functions (2)
2014-07-14 16:09:32 +02:00
Antoine Abt aafa578805 Merge pull request #2159 from tonio/attributions
Merge Logo control into Attribution
2014-07-11 11:48:21 +02:00
Antoine Abt e707e918aa Use @api annotation 2014-07-11 10:31:03 +02:00
Antoine Abt 1c8fc8358a Remove reference to ol-logo 2014-07-11 10:31:03 +02:00
Antoine Abt f0f9291161 Add attributions example
Showing how to dynamically change collapsed/collapsible properties for ≠
map sizes.
2014-07-11 10:31:03 +02:00
Antoine Abt 4f087f1b84 Add getter/setter for collapsed & collapsible 2014-07-11 10:18:56 +02:00
Antoine Abt 6744713a54 Register button handlers the new way 2014-07-11 10:18:56 +02:00
Antoine Abt d5d5f58809 Do not collapse Attributions when using OSM source 2014-07-11 10:18:55 +02:00
Antoine Abt 4d150e6b84 Move Logos in attributions 2014-07-11 09:53:25 +02:00
Antoine Abt da74fbf529 Remove Logo Control 2014-07-11 09:53:25 +02:00
Antoine Abt aeaa172abe Remove Logo Control from defaults 2014-07-11 09:36:14 +02:00
Antoine Abt 5a1e92830f Make attribution control collapsible. 2014-07-11 09:36:14 +02:00
Antoine Abt 5926611cd1 Merge pull request #2168 from tonio/keyboard_controls
Restore control’s keyboard navigation
2014-06-10 08:45:19 +02:00
Antoine Abt 09719bdc70 Fixes button handlers event type 2014-06-06 09:32:39 +02:00
Antoine Abt 75cd5572aa Restore control’s keyboard navigation 2014-06-04 16:55:02 +02:00
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