Commit Graph

55 Commits

Author SHA1 Message Date
132a03fb08 LazMapViewer: Update map providers, new provider 2GIS (issue #39052, patch by regs01). Split off provider registration into include file
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8872 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-07-03 17:27:45 +00:00
71a45035c5 LazMapViewer: Disable creating the cache directory at designtime. Partial sync with main full_demo project.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8840 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-20 10:45:59 +00:00
875a3a826d LazMapViewer: Implement zoomed preview tiles. Patch by Ekkehard Domning. Adapt drawing engines and full demo projects.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8835 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-13 15:39:47 +00:00
d9eb6e9065 LazMapViewer: Introduce fast FillPixels as new drawingengine method in order to avoid using the blank tile image.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8834 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-13 11:26:22 +00:00
834d895879 LazMapView: More additional map providers, submitted by kangozidev (https://github.com/wp-xyz/lazmapviewer/issues/2)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8833 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-12 13:10:44 +00:00
a547bbc37f LazMapViewer: Destroy empty tile image introduced in r8830.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8832 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-12 10:12:11 +00:00
afa88e8709 LazMapViewer: Avoid drawing artefacts when the mapview is dragged. Patch by Ekkehard Domning.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8830 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-11 22:17:22 +00:00
2b8e8ceeff LazMapViewer: Some more Google map providers, submitted by kangozidev.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8829 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-10 10:13:39 +00:00
bb5792ab0a LazMapViewer: Fix URL of "Google Satellite" map provider. Patch by kongozidev
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8828 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-06-09 18:39:29 +00:00
8e3014d9ab LazMapViewer: Fix issue with marker disappearing at small zoom when the window is wider than the full map. Patch by Ekkehard Domning. Prevent POIImage exception in the fulldemo_with_addons. Show "Cyclic view" checkbox in fulldemo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8815 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-26 20:31:30 +00:00
6bf9e8a2c7 LazMapViewer: Restore parts of commits #8796 and #8798.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8810 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-25 21:28:43 +00:00
f704502528 LazMapViewer: Reactivate commit #8789 (panning across dateline).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8805 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-25 11:30:49 +00:00
4ca84b72c3 LazMapViewer: Add new property Cyclic (not functional yet)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8804 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-25 11:19:04 +00:00
daa01d1ce6 lazmapviewer: Revert "periodic world" commits #8789, #8796, #8798 (too many issues).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8799 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-22 09:48:34 +00:00
df77354886 LazMapViewer: Fix markers disappearing occasionally if set near E/W border. Patch by Ekkehard Domning.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8796 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-20 13:32:52 +00:00
649286bb6b LazMapViewer: Add unit test for distance calculation
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8793 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-18 17:48:01 +00:00
7ce64ac4b8 lazmapviewer: Fix issue in new function ZoomFactor
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8791 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-17 16:01:03 +00:00
7a09190330 mapviewer: Replace repeated calls to IntPower(2,..) by table lookup function ZoomLevel. Add elemental unit tests.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8790 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-17 15:42:06 +00:00
a530b02b06 lazmapviewer: Allow to scroll beyond the date limit. Patch by Ekkehard Domning (https://www.lazarusforum.de/viewtopic.php?p=135037).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8789 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-15 09:44:43 +00:00
e343a8232f LazMapViewer: Improved handling of download uri protocol.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8702 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-12 17:39:04 +00:00
5747ba1ca5 LazMapViewer: Fix rounding error in GPS float to degrees-minutes-seconds conversion.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8582 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-10-28 15:34:01 +00:00
a4971e7930 LazMapViewer: Fix centering error when either longitude or latitude of center point is changed. Sourceforge bug #51.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8184 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-12-30 23:24:38 +00:00
ca72aa00be LazMapViewer: Make sure that the Cache path exists.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8107 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-30 22:16:04 +00:00
9fcf5de570 LazMapViewer: Add new properties LineColor and LineWidth to TGpsTrack. Add demo showing several individually colored tracks. Add some utility functions.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8102 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-29 15:11:12 +00:00
6a58c84249 LapMapViewer: Update of Yandex URLs. Patch by regs01 (https://gitlab.com/freepascal.org/lazarus/ccr/-/issues/39010).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8065 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-07 21:47:05 +00:00
b84c87da3c MapViewer: misc updates
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7971 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-02-15 17:59:50 +00:00
ef821b4227 LazMapViewer. Introduce "ZoomToCursor" feature. Issue #38284, patch by regs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7953 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-31 18:09:46 +00:00
b66f416f71 LazMapViewer: Simplify calculation of earth eccentricity
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7951 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-30 15:50:27 +00:00
4276dd6196 LazMapViewer: Fix support of OpenCycleMap and OpenStreetMap_Transport map providers which require an API key.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7950 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-30 15:46:25 +00:00
6450459dc4 LazMapViewer: Add Yandex map provider. Issue #38279, patch by regs. Cleanup.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7949 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-30 14:59:05 +00:00
46db12e26f LazMapViewer: Introduce map projections (EPSG3857, EPSG3395). Refactor calculation of projection. Issue #38279, patch by regs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7948 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-30 14:42:32 +00:00
49db2e4ea8 LazMapViewer: Refactor map provider identification. Issue #38279, patch by regs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7947 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-30 10:31:41 +00:00
cac83daa65 LazMapViewer: Change license to modified LGPL as discussed in https://forum.lazarus.freepascal.org/index.php/topic,49075.0.html. All authors agreed on the license change. License header added to all component files. Set version to 0.2.2 for new OPM release.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7365 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-04-09 11:06:15 +00:00
7c43c78f0c LazMapViewer: Set version number 0.2.1. Change license to "LGPL 2 or later" instead of "GLP 2 or later" - see forum discussion https://forum.lazarus.freepascal.org/index.php/topic,34297.msg354142.html#msg354142.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7340 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-23 23:01:18 +00:00
8c879bfca5 lazMapViewer: Fix memory leaks. Patch by jc99 (https://forum.lazarus.freepascal.org/index.php/topic,47164.msg337315.html#msg337315).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7171 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-25 08:44:07 +00:00
0bce9628fc LazMapViewer: Clean up. Consistent naming of drawing engine classes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6927 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-18 22:31:49 +00:00
1aaebb2780 LazMapViewer: Zoom to bounds of points in loaded gpx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6921 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-17 20:28:46 +00:00
2e29cc575c LazMapViewer: Add urls for OpenWeatherMaps.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6889 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-04 17:11:26 +00:00
f3098589fc lazmapviewer: Fix download of HERE maps with fphttpclient.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6888 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-01 15:40:15 +00:00
5c2ed7f07a lazmapviewer: Add HERE maps (registration required).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6887 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-30 22:22:18 +00:00
7cde99951d lazmapviewer: Remove links to the Ovi maps which do not exist any more.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6885 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-29 17:06:31 +00:00
d295accb2e LazMapViewer: Fix crash of demo when deleting a GPS point.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6880 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-28 16:31:34 +00:00
efd629624c lazmapviewer: Use E/W and N/S suffixes to GPS coordinates.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6868 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-25 19:42:50 +00:00
fb276886e4 lazmapviewer: Improved numerical stability of geo distance calculation.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6867 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-25 17:43:20 +00:00
6ec131a022 lazmapviewer: Add geo distance calculation (patch by sstvmaster, https://forum.lazarus.freepascal.org/index.php/topic,12674.msg318879.html#msg318879).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6865 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-24 22:36:59 +00:00
327fca5d9e LazMapViewer: Add OpenTopoMaps map provider.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6840 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-03-29 09:27:34 +00:00
d37e9b5a6e LazMapViewer: Add import/export of map providers to/from xml file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6839 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-03-27 18:56:52 +00:00
0d88ca9dcc LazMapViewer: Add URLs for Google maps.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6838 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-03-27 11:56:21 +00:00
70aa57d3bb lazmapviewer: Cosmetic changes
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6809 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-01-27 18:44:08 +00:00
d5f756b59e lazmapviewer: Less hints and warnings. Some cosmetic changes.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6807 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-01-27 10:42:57 +00:00