Commit Graph

582 Commits

Author SHA1 Message Date
Eric van der Vlist c70e7baa4b Still working on the cluster proxy 2023-01-19 21:39:52 +01:00
Eric van der Vlist 6f359b2e80 Testing clustering with a proxy. 2023-01-19 21:08:06 +01:00
Eric van der Vlist 420d75520c Adding a feature filter function 2023-01-19 14:04:32 +01:00
Eric van der Vlist 66fc287e5c Still working on clustering. 2023-01-18 22:10:23 +01:00
Eric van der Vlist fce0b54574 Clustering tileVectorSource... 2023-01-18 12:05:48 +01:00
Eric van der Vlist 370a4fa90c Trying clustering... 2023-01-17 17:34:36 +01:00
Eric van der Vlist 0ef74d94be Styling 2023-01-17 12:51:44 +01:00
Eric van der Vlist 12466d214c Moving vector tile layer's MVT to Feature (instead of RenederdFeature) to prepare for clustering. 2023-01-17 12:40:38 +01:00
Eric van der Vlist 4917d27c9c Textfield: rows without multiline doesn't work well on android (the area is 1row and not resizeable) 2023-01-17 11:49:19 +01:00
Eric van der Vlist 088c3c4e27 WPT editor 2023-01-16 22:55:08 +01:00
Eric van der Vlist bdb11a52bb Reimplementing a dialog to edit waypoints 2023-01-16 20:59:00 +01:00
Eric van der Vlist 3153ee308d Improving infos.tsx 2023-01-16 18:25:38 +01:00
Eric van der Vlist ee000862f8 Adding a button to open a POIsearch in a browser 2023-01-16 17:27:49 +01:00
Eric van der Vlist e011124dfe nom update 2023-01-16 16:55:30 +01:00
Eric van der Vlist 356c4b0eba Highlighting housing 2023-01-16 16:28:34 +01:00
Eric van der Vlist cb8e564270 Dirty display of vector tiles feature properties in Infos.tsx 2023-01-16 16:16:22 +01:00
Eric van der Vlist fa60f5229c Hiking trails styles 2023-01-16 09:28:57 +01:00
Eric van der Vlist 47a6159226 Vector tiles (adjusting styles) 2023-01-16 09:11:42 +01:00
Eric van der Vlist 944c8eee53 Still working on vector tiles 2023-01-15 21:35:08 +01:00
Eric van der Vlist b1e13e9306 Working on vector tiles 2023-01-15 19:29:09 +01:00
Eric van der Vlist 83f8d0d7c9 Playing around with vector tiles 2023-01-15 15:42:53 +01:00
Eric van der Vlist aa5dcbac3e Testing a transportation vector tile 2023-01-13 14:02:58 +01:00
Eric van der Vlist 6969b53618 Importing OSM routes, 2023-01-09 20:51:17 +01:00
Eric van der Vlist d6317ca8a4 i18n 2023-01-09 16:02:18 +01:00
Eric van der Vlist 1f1b57e4b4 Using a dialog for confirm delete alert. 2023-01-09 15:52:50 +01:00
Eric van der Vlist 1f3c1c750e Trak delete (again). 2023-01-09 14:40:37 +01:00
Eric van der Vlist 9931887f03 Still working on trk delete. 2023-01-09 14:23:41 +01:00
Eric van der Vlist 45f7c797e7 Implementing a delete method for tracks. 2023-01-08 22:05:08 +01:00
Eric van der Vlist a2149f9a43 Styling 2023-01-08 20:04:08 +01:00
Eric van der Vlist f9a44b3b70 Bug fix 2023-01-07 19:18:25 +01:00
Eric van der Vlist 1f2979b28b Improving TrkSegViewer 2023-01-07 18:46:14 +01:00
Eric van der Vlist 7483d9f904 Refactoring 2023-01-07 18:00:35 +01:00
Eric van der Vlist b23e44b576 Adding Spanish IGN maps 2023-01-07 17:26:24 +01:00
Eric van der Vlist e7b27cda4e Adding adresses to rtept rather than rte. 2023-01-07 15:41:16 +01:00
Eric van der Vlist 2ca519a53c Using peekCachedSignal to speedup GpxDialog 2023-01-07 15:14:44 +01:00
Eric van der Vlist 516d09e3c6 Trick to force a vertical scrollbar in dialogs (needed when the virtual keyboard hides a field). 2023-01-06 16:41:11 +01:00
Eric van der Vlist 040c0271d7 Trying to be more robust to find the name of a locality with nominatim... 2023-01-05 23:02:40 +01:00
Eric van der Vlist 97f11239e8 Adding buttons to reverse geocode routes. 2023-01-05 18:27:20 +01:00
Eric van der Vlist 69148f6e1d Error handling when fetching addresses. 2023-01-03 18:43:40 +01:00
Eric van der Vlist 9e3915c6ce Minor bug fix. 2023-01-03 18:24:38 +01:00
Eric van der Vlist 44ce641d6a Improving RteViewer. 2023-01-03 18:17:12 +01:00
Eric van der Vlist c1fe37d0a6 TrkViewer and TrksegViewer skeletons. 2023-01-03 15:24:50 +01:00
Eric van der Vlist 09ff9ca829 RteViewer 2023-01-03 15:02:21 +01:00
Eric van der Vlist 62b2b5552a Displaying waypoints (and installing a plugin to import SVG files as components) 2023-01-03 13:12:16 +01:00
Eric van der Vlist 6b0b394d33 Adding a GPX icon 2023-01-03 12:07:23 +01:00
Eric van der Vlist d9c4837f82 Slight refactoring. 2023-01-03 11:39:17 +01:00
Eric van der Vlist adc37fef03 Refactoring to implement visualization and edition features. 2023-01-02 17:27:55 +01:00
Eric van der Vlist 67cfd16efb Bug fix... 2022-12-30 21:12:46 +01:00
Eric van der Vlist 73aad8f2a2 Progressing in implementing a tree representation of features. 2022-12-30 21:03:37 +01:00
Eric van der Vlist a57968924f Extracting a hierarchy from a list of features (`<Infos/>`) 2022-12-29 22:55:48 +01:00
Eric van der Vlist b14db11938 Adding context properties to OL features. 2022-12-29 08:14:43 +01:00
Eric van der Vlist 91916fca88 Debouncing updates from the worker to the main thread (this was crashing the app during heavy syncs). 2022-12-28 18:50:09 +01:00
Eric van der Vlist ad9b70173f First working version with the account dialog. 2022-12-26 18:04:01 +01:00
Eric van der Vlist 8a4396fb20 Still working on the account dialog. 2022-12-26 17:31:05 +01:00
Eric van der Vlist 1d6c3a858d Still progressing... 2022-12-25 22:24:00 +01:00
Eric van der Vlist 5dbf080190 Progressing into the implementation of the Account dialog. 2022-12-25 22:09:52 +01:00
Eric van der Vlist 5ca12b6780 Adding a mechanism to postpone DB access before the DB is ready. 2022-12-25 21:37:59 +01:00
Eric van der Vlist a36c8a28a4 Implementing an 'account' dialog (WIP) 2022-12-25 16:30:47 +01:00
Eric van der Vlist 0e2ffb0cf2 Creating a second PouchDB database for local (non sync'ed) documents such as state. 2022-12-24 16:39:55 +01:00
Eric van der Vlist cef7431012 Cosmetic bug in GPX import. 2022-12-23 16:30:24 +01:00
Eric van der Vlist 55164ef2a3 Testing CouchDB sync. 2022-12-23 15:41:03 +01:00
Eric van der Vlist 6702bf8dc4 Indentation ? 2022-12-21 18:54:56 +01:00
Eric van der Vlist 70154a0f5a Moving current location (and navigate) during track recording. 2022-12-17 16:08:18 +01:00
Eric van der Vlist f2f55a22bd Moving the map on geo: intents. 2022-12-15 19:45:30 +01:00
Eric van der Vlist d71399e296 Adding a fullScreen option for our Dialog component. 2022-12-15 18:46:58 +01:00
Eric van der Vlist e90e71d151 Testing Android intents as a receiver. 2022-12-14 21:50:09 +01:00
Eric van der Vlist b797015c57 Making the app fullscreen on Android 2022-12-14 15:26:32 +01:00
Eric van der Vlist da61c8cf46 Moving the rotate control to the bottom 2022-12-14 08:50:13 +01:00
Eric van der Vlist d1a3e6bf82 Debouncing Map state db persisting 2022-12-14 08:22:51 +01:00
Eric van der Vlist 600ce534fe Removing existing features before adding new ones. 2022-12-14 08:03:42 +01:00
Eric van der Vlist 040122189c Dirty hack to store the app state and restore it at app startup. 2022-12-13 22:26:17 +01:00
Eric van der Vlist acc1d7cc1e (Re)Adding background geolocation. 2022-12-13 20:59:39 +01:00
Eric van der Vlist 4dbdcecadd Cosmetics 2022-12-13 16:40:16 +01:00
Eric van der Vlist 1d648a2187 Basic structure for recording UI 2022-12-13 16:16:30 +01:00
Eric van der Vlist 3d2db84235 Converting tracks without timestamps to routes during import. 2022-12-13 15:17:50 +01:00
Eric van der Vlist fdee3e8fcd Trying declutter again... 2022-12-13 12:54:46 +01:00
Eric van der Vlist 90fb0e6944 First version of the new importer (stiil needs to convert non timed tracks into routes). 2022-12-13 12:41:13 +01:00
Eric van der Vlist 102a2feddc Cosmetics 2022-12-13 08:24:50 +01:00
Eric van der Vlist a6b5be4f11 Isolating a GpxChooser component 2022-12-13 07:59:28 +01:00
Eric van der Vlist 56c9eb37bb Minor modifications 2022-12-12 21:35:00 +01:00
Eric van der Vlist daed8e5dc1 GpxDialog (working). 2022-12-12 20:57:25 +01:00
Eric van der Vlist 6da10713a0 GpxDialog (looking good). 2022-12-12 18:55:14 +01:00
Eric van der Vlist 7df0b41260 GpxDialog (wip) 2022-12-12 15:37:12 +01:00
Eric van der Vlist 59faede004 Begining to implement a GPX Dialog component 2022-12-12 11:41:09 +01:00
Eric van der Vlist 31bec02496 Starting to implement a proper UI for GPX import. 2022-12-11 16:20:34 +01:00
Eric van der Vlist 3a5f5260c8 Replacing PouchDB indexes (used only to get the list of Gpxes by a custom implementation. 2022-12-11 10:45:08 +01:00
Eric van der Vlist 8c82b9c040 Trying decluttering (doesn't work that well) 2022-12-10 21:58:27 +01:00
Eric van der Vlist b2955c8bbd More robust GPX parsing 2022-12-10 21:39:58 +01:00
Eric van der Vlist 882e5545fd Allowing multiple Gpx files import 2022-12-10 21:25:15 +01:00
Eric van der Vlist 86a8c823f1 Changing Gpx and Trkpt indexes so that GPX are sorted by datetime desc and Trkpt use their timestamp as indexes. 2022-12-10 18:31:51 +01:00
Eric van der Vlist be72adce05 Modifying pouchdb index. 2022-12-10 16:52:52 +01:00
Eric van der Vlist c6e1f63a85 Adding arrows to trksegs. 2022-12-10 16:23:10 +01:00
Eric van der Vlist 327f0a6910 Mechanism to add style functions 2022-12-10 12:16:46 +01:00
Eric van der Vlist 821957a4f7 Starting to refactor OL styles to be able to support arrows and point markers. 2022-12-09 21:43:54 +01:00
Eric van der Vlist da053dcb50 Displaying routes. 2022-12-09 17:31:56 +01:00
Eric van der Vlist f84c82bc32 Relying on the change handler for Gpx, Trk and Trkseg too. 2022-12-09 15:18:14 +01:00
Eric van der Vlist c2d6f6f285 Relying on the change handler for AllGpxes and FPX import. 2022-12-09 14:57:54 +01:00
Eric van der Vlist 21a63ec54c Cleanup (remove the tree/branch mechanism which isn't useful). 2022-12-08 21:27:40 +01:00
Eric van der Vlist 38224d73da Adding minZoom extension property for Wpts 2022-12-07 15:09:08 +01:00
Eric van der Vlist 008ca2ce3b Adding Wpt icons 2022-12-07 13:30:46 +01:00
Eric van der Vlist b36ad82b61 Saving Wpt after edition. 2022-12-06 21:56:23 +01:00
Eric van der Vlist 156fefae3b Working on Wpt save after edition. 2022-12-06 21:27:25 +01:00
Eric van der Vlist c8a8622c91 Begining to implement the Wpt update dialog 2022-12-06 17:09:31 +01:00
Eric van der Vlist cc121fea27 Adding an onCleanup hook to cancel dispatches and watches for Wpt 2022-12-06 14:54:59 +01:00
Eric van der Vlist 5829f93c91 Refactoring to watch WPT updates. 2022-12-06 14:36:50 +01:00
Eric van der Vlist 6465a371cb Testingpouchdb change handler 2022-12-05 18:49:36 +01:00
Eric van der Vlist 063bee4e28 Forgotten component ... 2022-12-05 18:48:57 +01:00
Eric van der Vlist 8bd0c74727 Dialog component 2022-11-30 22:44:02 +01:00
Eric van der Vlist 1e65ca2f72 More dialog, I can't stand suid/mui :( ! 2022-11-30 18:08:45 +01:00
Eric van der Vlist b5cd2cd58b GPX labels. 2022-11-30 14:46:05 +01:00
Eric van der Vlist 3fd43b09a4 i18n 2022-11-30 13:58:55 +01:00
Eric van der Vlist 3e191dbf38 Adding `<Suspense>` wrappers to start rendering Gpxes before they have all been fetched and removed auto compaction and compact db at init time. 2022-11-30 11:15:53 +01:00
Eric van der Vlist 079a36c1de Finding the moveTolerance option (great improvement with touch screens). 2022-11-29 22:38:08 +01:00
Eric van der Vlist ca37281a0b Basic info dialog 2022-11-29 22:12:50 +01:00
Eric van der Vlist 35937a933c Changing the selection UI. 2022-11-29 21:19:28 +01:00
Eric van der Vlist 82cdad5f1f Styles. 2022-11-29 21:07:46 +01:00
Eric van der Vlist d5be1b8672 Cleaner way to define styles. 2022-11-29 19:49:05 +01:00
Eric van der Vlist 4d1b1c9a06 Setting a flag to select features 2022-11-29 16:54:13 +01:00
Eric van der Vlist deb1f267ab Doing the samething for WPts 2022-11-29 15:06:39 +01:00
Eric van der Vlist ab1d644e8e Trying different ways to select and potentially update OL features 2022-11-29 14:59:57 +01:00
Eric van der Vlist 400711eb80 Adding a selectHandler (not functional yet). 2022-11-28 21:36:12 +01:00
Eric van der Vlist 42d66ecfa5 (Re)Implementing the map chooser. 2022-11-28 19:33:02 +01:00
Eric van der Vlist f10fa11348 Basic mechanism to support different tile providers. 2022-11-28 15:27:36 +01:00
Eric van der Vlist 1fb7f47c05 Adding Wpt names. 2022-11-28 12:14:09 +01:00
Eric van der Vlist 6121df68bf Adding `<Wpt>` 2022-11-28 11:52:50 +01:00
Eric van der Vlist ec5d90f768 Diffrent flags for start and finish 2022-11-28 08:38:21 +01:00
Eric van der Vlist e49f079eb2 Re-enabling live locks. 2022-11-27 22:50:47 +01:00
Eric van der Vlist 12cfa9337a Starting to add some style to trksegs. 2022-11-27 22:48:35 +01:00
Eric van der Vlist bbaf1e798b Addinf trkseg start/end points 2022-11-27 19:17:33 +01:00
Eric van der Vlist 6c2573ba8b Refreshing GPX list after importing a new GPX. 2022-11-27 18:24:17 +01:00
Eric van der Vlist 37fd31a040 Displaying trksegs through geojson. 2022-11-27 17:12:25 +01:00
Eric van der Vlist ab7374f360 `<Trkseg>` component 2022-11-27 16:18:50 +01:00
Eric van der Vlist 54f2ab06d9 `<Trk>` component 2022-11-27 16:09:08 +01:00
Eric van der Vlist 79fb39100f `<Gpx>` component 2022-11-27 15:50:08 +01:00
Eric van der Vlist 346b9a1186 Creating a `<AllGpxes>` component. 2022-11-27 14:32:21 +01:00
Eric van der Vlist d0bc9422f3 Addind a few @ts-ignore :( ... 2022-11-27 12:29:30 +01:00
Eric van der Vlist 0f9b66b0d4 File renaming 2022-11-27 12:24:57 +01:00
Eric van der Vlist 7f571882de Moving controls out of the ol map object. 2022-11-27 12:12:22 +01:00
Eric van der Vlist 83e14932a4 GPX import. 2022-11-26 22:04:08 +01:00
Eric van der Vlist 5de30283b1 Reintroducing WebWorkers (pfeeew, Vite makes it tough !) 2022-11-26 19:36:55 +01:00
Eric van der Vlist 02f02984e5 Bring back navigation buttons. 2022-11-26 12:33:26 +01:00
Eric van der Vlist 2c79c74376 Showing the current location. 2022-11-25 22:12:44 +01:00
Eric van der Vlist 1efdc30e5c Re-implementing GetLocation 2022-11-25 21:09:59 +01:00
Eric van der Vlist ef8ee5e00e Standard ol controls. 2022-11-25 17:10:49 +01:00
Eric van der Vlist 9a5808741b Map navigation. 2022-11-25 17:06:07 +01:00
Eric van der Vlist 3e66119b3e Getting stuff done in the sandbox. 2022-11-25 16:45:26 +01:00
Eric van der Vlist fd354b4e51 Fresh install 2022-11-25 16:33:59 +01:00
Eric van der Vlist 8bb8792ee2 Cleaning before switching to SoliJS 2022-11-25 16:23:31 +01:00
Eric van der Vlist 2fa6199979 ShowLocation component. 2022-11-23 18:25:23 +01:00
Eric van der Vlist 1555c00fe8 Moving the map center to the current location when required. 2022-11-22 22:10:08 +01:00
Eric van der Vlist 0ba385c476 Adding a (non yet operational) control to get the current location. 2022-11-22 18:03:53 +01:00
Eric van der Vlist 0f8f892688 Slight refactoring 2022-11-22 15:41:47 +01:00
Eric van der Vlist 0d8bc3b2f1 Basic Openlayers map. 2022-11-22 15:18:34 +01:00
Eric van der Vlist e75b2f670c Starting again... 2022-11-22 08:19:52 +01:00
Eric van der Vlist 1c403ae819 Adding a modal for the Explorer (context menu). 2022-11-22 07:48:17 +01:00
Eric van der Vlist 9459622a95 Re-implementing the map chooser 2022-11-21 17:49:09 +01:00
Eric van der Vlist c731c6a7e6 Testing the onContextMenu event. 2022-11-17 23:33:57 +01:00
Eric van der Vlist 8906bed1e7 Minor enhancement. 2022-11-17 23:11:33 +01:00
Eric van der Vlist 7c09a5536a Adding a simple cache to keep track of points 2022-11-17 23:04:47 +01:00
Eric van der Vlist 2733906196 Bug fix. 2022-11-17 22:13:07 +01:00
Eric van der Vlist a53ddfa63e Adding startTransition to defer GPX renderings. 2022-11-17 21:05:12 +01:00
Eric van der Vlist 64d928e893 Adding start and finish icons to trksegs. 2022-11-17 17:28:24 +01:00
Eric van der Vlist ad3d2125bb Switching from shared web workers (not supported by chrome on android) to "normal" web workers. 2022-11-17 16:10:44 +01:00
Eric van der Vlist e4621e4651 Adapting "slippy graphics" to the new structure. 2022-11-17 15:26:29 +01:00
Eric van der Vlist 812849cdef Using useViewport in LayerStack rather than TiledLayer to share it with slippy graphics. 2022-11-17 14:57:55 +01:00
Eric van der Vlist fa049e36e5 Creating a useViewport custom hook to ba used by both `<TiledLayer>` and slippy graphics. 2022-11-17 14:06:05 +01:00
Eric van der Vlist ef3759079c Displaying GPX tracks (1st attempt) 2022-11-17 12:55:00 +01:00
Eric van der Vlist d86d63ca61 Starting to implement GPX visualization. 2022-11-15 20:19:14 +01:00
Eric van der Vlist cd9ee67fed Removing unused indexes. 2022-11-15 16:03:36 +01:00
Eric van der Vlist 9b23bcec5c Computing bounding boxes when saving GPX files. 2022-11-15 15:24:21 +01:00
Eric van der Vlist 947f4dff3a Adding a new URI for GPX technical data and changing the index of wpt, rte and trk. 2022-11-15 14:39:52 +01:00
Eric van der Vlist 5fdd63103e Reimplementing GPX imports. 2022-11-14 18:35:04 +01:00
Eric van der Vlist a2d0e8cf6a Retrieving GPX import from master. 2022-11-14 14:13:12 +01:00
Eric van der Vlist 68ebdbdbf6 Using plainnumbers instead of BigInts for GPXids. 2022-11-14 11:39:37 +01:00
Eric van der Vlist 00ad6285d0 Updating pouchdb keys based on an updated version of docuri. 2022-11-13 20:02:11 +01:00
Eric van der Vlist 12f0a8a10d Using full ISO dates as Gpx ids to support a wider range of dates. 2022-11-09 10:32:06 +01:00
Eric van der Vlist 441c623999 Rtept 2022-11-08 22:14:29 +01:00
Eric van der Vlist 2245c1ff00 Routes 2022-11-08 22:02:06 +01:00
Eric van der Vlist 1b9c7fc261 Waypoints 2022-11-08 21:51:26 +01:00
Eric van der Vlist 16ca39a160 Track points 2022-11-08 21:09:33 +01:00
Eric van der Vlist b0f767721a Track segments 2022-11-08 20:21:34 +01:00
Eric van der Vlist b79599a350 More tests 2022-11-08 20:04:21 +01:00
Eric van der Vlist 9cc4c404b0 Adding more tests. 2022-11-08 18:57:37 +01:00
Eric van der Vlist a53c0210ea Going on with tracks. 2022-11-08 14:16:23 +01:00
Eric van der Vlist 26486b65b9 Cleanup and starting to implements tracks. 2022-11-07 22:12:50 +01:00
Eric van der Vlist 36a3199b36 Code restructuring for db updates. 2022-11-07 18:20:01 +01:00
Eric van der Vlist 2f362916da Trying to save a simple GPX. 2022-11-07 17:04:02 +01:00
Eric van der Vlist 510736a33a Starting to reimplement GPX db functions. 2022-11-07 16:38:44 +01:00
Eric van der Vlist 56b36ea063 Adding a test 2022-11-07 12:01:58 +01:00
Eric van der Vlist ebf4f39331 More fun with web workers... 2022-11-07 11:44:35 +01:00
Eric van der Vlist 94de17938e More work with web workers (pffff!) 2022-11-06 22:29:33 +01:00
Eric van der Vlist 9089b08c6e Starting to work with web workers. 2022-11-06 17:53:01 +01:00
Eric van der Vlist 74dbff2d23 Fixing a bug (the `<g>` element wasn't always available as ref.current in TiledLayer), using a useEffect seems to do the trick. 2022-11-03 22:20:14 +01:00
Eric van der Vlist 84e1ece691 PouchDB init 2022-11-03 17:27:02 +01:00
Eric van der Vlist 45ab894622 Marker bug fix 2022-11-03 12:19:21 +01:00
Eric van der Vlist ba78422a29 Markers check that they belong to the current viewport to display. 2022-11-03 11:57:04 +01:00
Eric van der Vlist c4094b28ae Refactoring to send a viewport property to slippy graphics (new, more generic, name for markers) 2022-11-03 11:37:22 +01:00
Eric van der Vlist 7f03b0bca4 Cherry picking 57d17a1fa6 (Requesting a wake lock so that the screen is not dimmed while using the app.) 2022-11-02 22:33:03 +01:00
Eric van der Vlist 8e2a68fb0f Displaying the current location. 2022-11-02 22:28:08 +01:00
Eric van der Vlist 1ed4875e5e Implementing a Marker component. 2022-11-02 21:27:29 +01:00
Eric van der Vlist 925174db79 Back/Forward buttons 2022-11-02 16:04:18 +01:00
Eric van der Vlist 8e78fbc7ec Moving fils around 2022-11-02 15:29:13 +01:00
Eric van der Vlist 61fc42b251 Handling window resize (and rotate). 2022-11-02 15:14:34 +01:00
Eric van der Vlist 7811f00779 Re-implementing (foreground) geolocation (and npm packages update). 2022-11-01 21:27:36 +01:00
Eric van der Vlist fe9cc6437d Using atomWithHash to enable back/forward actions. 2022-11-01 17:58:57 +01:00
Eric van der Vlist e1583846ed Cleanup and doc. 2022-11-01 14:37:08 +01:00
Eric van der Vlist de69aff4c9 Removing nolonger used code 2022-11-01 14:23:18 +01:00
Eric van der Vlist 19062ac126 Removing a console.log() 2022-11-01 14:17:36 +01:00
Eric van der Vlist 50114598b2 Doc and cache improvement. 2022-11-01 14:16:36 +01:00
Eric van der Vlist 352cb0d870 Cleanup 2022-11-01 11:50:59 +01:00
Eric van der Vlist 04d2aa1ac1 More cleanup for the tiled layer cache. 2022-11-01 11:46:54 +01:00
Eric van der Vlist a6f10b9ee0 Implementing a cache cleanup method. 2022-10-31 22:14:28 +01:00
Eric van der Vlist 9f9576d2f6 Bug fix... 2022-10-31 21:40:10 +01:00
Eric van der Vlist 8deed17b05 Continuing to re-plug the handlers. 2022-10-31 21:01:56 +01:00
Eric van der Vlist eb1618d009 Re-pluging handlers (on LiveMap). 2022-10-31 18:05:58 +01:00
Eric van der Vlist 8341da64a3 Making a property optional 2022-10-31 15:08:50 +01:00
Eric van der Vlist 7b5abaccd3 Refactoring to split logic between `<Map>` and a brand new `<LiveMap>` component. 2022-10-31 15:02:46 +01:00
Eric van der Vlist 425ad06e33 Cleanup 2022-10-30 22:13:10 +01:00
Eric van der Vlist 0284cdbab9 Updating test snapshots. 2022-10-30 22:09:42 +01:00
Eric van der Vlist b0c7801cd1 Using `<TiledLayer>` in `<layerStack>`. 2022-10-30 22:06:55 +01:00
Eric van der Vlist ef35ffca32 Adding a component to take care of translations and scalings around `<TileSet>` components (not used yeti but should simplify `<LayerStack>`). 2022-10-30 21:35:32 +01:00
Eric van der Vlist 7322e5f5c4 Memoising `<TileSet>` 2022-10-30 20:23:12 +01:00
Eric van der Vlist edca3f0d1b Trying to simplify. 2022-10-30 20:18:21 +01:00
Eric van der Vlist 7f9400b395 Removing the tileFactory from components props (to limit re-renderings). 2022-10-29 21:16:50 +02:00
Eric van der Vlist c800235ebb Doc 2022-10-20 16:58:33 +02:00
Eric van der Vlist d970b288e4 Using a global variable to cache <Tile>s for <TiledLayer>s. 2022-10-20 16:21:27 +02:00
Eric van der Vlist 3dee9e90d7 Starting to implement a LayerStack component 2022-10-19 18:35:20 +02:00
Eric van der Vlist 4238ce0938 Using maps instead of objects to store tiles and removing the reinititialization when TiledLayer properties are updated. 2022-10-19 14:53:22 +02:00
Eric van der Vlist b5dd10e920 Adding tests for the <Map> component. 2022-10-19 13:55:44 +02:00
Eric van der Vlist b3a8f60f1e Doc 2022-10-19 13:04:56 +02:00
Eric van der Vlist acbefa983d Using Jotai between <Map> and <Handlers> (TODO: adapt Handlers.test.tsx) 2022-10-19 11:17:24 +02:00
Eric van der Vlist 552a49e0d6 Doc 2022-10-18 20:40:12 +02:00
Eric van der Vlist 4f069ad63f Adding touch handlers. 2022-10-18 18:47:40 +02:00
Eric van der Vlist f1ad35a479 Adding double click and wheel handlers 2022-10-18 17:42:11 +02:00
Eric van der Vlist 4f64d9906c Using useRef instead of useState in <Handler/> (no need to re-render when mouse state is updated). 2022-10-18 17:18:11 +02:00
Eric van der Vlist d758775ab7 Testing mouseMove throttling 2022-10-18 17:11:07 +02:00
Eric van der Vlist 016f99daf6 Idem with <Tile/> 2022-10-18 16:57:18 +02:00
Eric van der Vlist a7f78e0fa9 Avoid uncessessary rerendering (see https://medium.com/swlh/making-stupid-react-smart-in-re-rendering-5f04b5bab327 ). 2022-10-18 16:52:24 +02:00
Eric van der Vlist ab5c8ff6bb Simple implementation of event handler throttling. 2022-10-18 14:24:21 +02:00
Eric van der Vlist 963f6037ca Managing TiledLayer from Map. 2022-10-18 13:57:46 +02:00
Eric van der Vlist 7912d0bfe8 ntegration and bug fix 2022-10-18 13:45:16 +02:00
Eric van der Vlist 90e2c833a2 Adding some tests for <Handlers/> 2022-10-18 11:44:50 +02:00
Eric van der Vlist da50441abc Re-implementing the mouse handlers. 2022-10-18 10:10:23 +02:00
Eric van der Vlist 16097c1e2e Testing negative indices fot TiledLayer components. 2022-10-17 23:04:58 +02:00
Eric van der Vlist 0d927c72cd Tests and doc 2022-10-17 22:37:07 +02:00
Eric van der Vlist 460bfbf6e5 Doc 2022-10-17 21:31:21 +02:00
Eric van der Vlist 42e2d7c2c7 Adding the Tile component. 2022-10-17 21:23:57 +02:00
Eric van der Vlist f6a0eb8963 Making sure TiledLaer's are reinitialized if their keyObject change.s 2022-10-17 20:52:10 +02:00
Eric van der Vlist ffa58ee303 Bug fix. 2022-10-17 18:30:26 +02:00
Eric van der Vlist a5dc279e4e Adding the notion of TileFactory 2022-10-17 18:17:13 +02:00