-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support offline maps and POIs #783
Comments
If we want to support Oruxmaps's offline maps, with the known download issues, the following are starting points:
|
Another thing to consider here is that if we implement rotate we'll need to switch to OpenLayers according to #669 - which has a cache layer built in. |
This feature will facilitate the entry point to looking into what's needed in order to work offline properly - it should work both with the regular browser and with the mobile app the same way. |
… Support global undo instead of undo per route #402
This is the angular implementation of it: |
This is an interesting answer related to vector tiles, openlayers and ionic (which is a superset of cordova) |
Looking into database solution for offline usage the following is what I came across: |
Here's another interesting option: PouchDB - Seems like we need a solution to state management persistence for #669 anyway so it might be a good idea to take this issue into consideration. |
Need to investigate this further due to performance issues with PouchDB and chrome. |
* Support map rotation #669 - initial commit. a complete rewrite of the site to use openlayer, still not complete. Resolves #402 - Support global undo instead of undo per route. * Support map rotation #669 - lint fixes, added north icon. * Support map rotation #669 - Fix compilation due to unused events. * Support map rotation #669 - Remove events and some leaflet usages. * Support map rotation #669 - Fix compilation, removed more $events. * Support map rotation #669 - Fix compilation * Support map rotation #669 - Fix compilation due to unneeded classes. * Support map rotation #669 - remove some unused code. * Support map rotation #669 - Added clustering and route recording, fixed tranlation typos, added missing translations, fixed other small stuff to make things work. * Support map rotation #669 - added make all route points editable. * Replaced wrench with 3 vertical dots. #669 * Support various clear route options #669 * Resolves #787 - Allow opening of a specific POI in a group. Related to #669. * Support map rotation #669 - Added mapserver support using xyz tiles. * Support map rotation #669 - Added snapping back. removed unused code. * Support map rotation #669 - bring back tests. * Support map rotation #669 - small correction related to cordova. * Support map rotation #669 - remove leaflet, fixed delete route, updated file saver. * Support map rotation #669 - Fix lint. * Support map rotation #669 - Fix tests. * Support map rotation #669 - Split android and web builds * Support map rotation #669 - Split build, fix yml. * Support map rotation #669 - Fix compilation after lint required fixes :-/ * Support map rotation #669 - Throw if angular build fails. * Support map rotation #669 - Fix android build due to split * Support map rotation #669 - Updated version to 8.0 * Support map rotation #669 - Added GPS location interaction. * Support map rotation #669 - Moved most of the popups to be overlays. * Support map rotation #669 - Fix production compilation * #669 - Moved pure map components to a folder. * #669 - fix compilation. * Fixed issue with version in GPX and improve description of uploaded OSM trace. * Support map rotation #669 - Added traces layer and ability to manipulate. * Fixes #856 - Fix failing android builds * Support map rotation #669 - Fix tests, fix issue with animation override when following GPS location. * Support map rotation #669 - facilitate drag and drop of a file. * Support map rotation #669 - Fix fit to bounds. Fix legend. Fix move to search results. * Support map rotation #669 - add zoom animation for zoom-in/out * Support map rotation #669 - remove unwanted OSM layer. * Support map rotation #669 - Moved layers and user to state management. * Support map rotation #669 - Make advance route actions under a ... button * Support map rotation #669 - Fix lint * Support map rotation #669 - Fix production build, remove opacity from base layer, changed opacity slider to be green. * Support map rotation #669 - reverse route in route properties, fixed some mouse events, fixed visibilty of route. * Support map rotation #669 - Fix toggle category layer causes collapse. * Support map rotation #669 - Fix incorrect color and weight. * Support map rotation #669 - Fix production compilation due to missing method. * Error adding routes to OSM #848 - Might be related, but might be a different issue. * Support map rotation #669 - add route direction * Support map rotation #669 - show direction only in readonly mode, show route points only in route editing mode. emit null when dragging interaction to hide hover marker. * Support map rotation #669 - Fix opening a file that has only markers. * Support map rotation #669, Support offline tiles #783 - Added PouchDB, update technology stack * #669 - Update reducer action decorator to hold all the relevant classes. * Support map rotation #669 - Show searchresult marker, fix production build * Support map rotation #669 - Fix lint, move search results to poi service. * Support map rotation #669 - Improve search results icon and some errors. * Support map rotation #669 - improve private POI UX. added icons to private POI back. * Support map rotation #669 - support database writing in another thread. * Support map rotation #669 - make sure font loads before anything else to prevent missing icons on the map. * Avoid using environment but use running context instead. * Support map rotation #669 - Fix issue with a segment with a single point. * Support map rotation #669 - add tooltip to north-up * Support map rotation #669 - do not store and read state when runnning inside iFrame. * Support map rotation #669 - Add extra data indicator. * Resolves #861 - Update to angular 7 * Support map rotation #669 - Add coordinates and height to private POI dialog. remove comments, added some TODOs. * Update to angular 7 #861 - Update typescript to 3.1.6, remove unused import. * Update to angular 7 #861 - remove css files to reduce build time? change appveyor worker cloud * Support map rotation #669 - Small fix to route editing. * Update to angular 7 #861 - downgrade to 7.0.4 to check if this solves build issues. * Another attempt to fix appveyor run... * Support map rotation #669 - Make recording work. * Support map rotation #669 - fixed issue with undo. Update to angular 7 #861 - reduce angular-cli back to 6.1.6 to prevent out of memory. * Update to angular 7 #861 - Increase memory limit to all commands. * Update to angular 7 #861 - Update typescript for cli. * Update to angular 7 #861 - Fix lint. * Fixes #866 - Geo-tagged images won't open (beta) * Moved to ngx-openlayers next version. #669
Performance issues were fixed using worker-pouch repository. Here's what I think is needed in order to make OruxMaps work with IHM app:
|
https://www.google.com/amp/s/mobilegeo.wordpress.com/2013/06/07/mbtiles-and-openlayers/amp/ |
As far as I understand, this example needs to be converted from raster tiles to vector tiles. |
Seems about right, this explains why I couldn't find where the style is being applied. I'm not sure how to use this code for vector tiles, but it will be fun to research :-) |
The following issue might show a way to use vector tiles with custom source, there's a codepen there that might be good: |
In order to insert a mbtiles to websql and "fool" chrome to think it is part of the site the following steps are needed:
This will create a database in chrome's application data folder, somewhere here: When this will be matured the following library maybe of use: |
…he process of creating it in the server and loading in the UI. updated offline sprite.
Things I would like to finish as part of this issue, other items probably should have their own issue in order to discuss them there since this feature is already too long:
|
…luding images, added some of the online images the app uses. Added offline icon. Fixed tests and lint.
Remaining for this issue before closing it:
Other issues:
I believe these are all the abilities of the site that needs the server right now. |
#783 - Fixed elevation, itm coordinates and length.
…everted to elastic 5.6 due to issues with highways search.
Current implementation allows initial testing of offline maps and POIs, no further development is expected as part of this feature. Further development will be split to other issues as needed. |
I don't know if this is related to the refactoring, but... The English version of the site has a Wikipedia POI here for which there is no OSM node. There is no such POI in the Hebrew version of the site. Both Wikipedia languages have an Image. Ref: |
The refactoring might have affected this, but this issue is now resolved. It will be better to open another issue on this subject so this won't get lost. |
Feature
The following might be a good solution to offline tiles without requiring the user to download a huge file - which sometimes fail.
https://github.com/allartk/leaflet.offline
Or this:
https://github.com/robertomlsoares/leaflet-offline
The text was updated successfully, but these errors were encountered: