Commit Graph

113 Commits

Author SHA1 Message Date
2b8ffd7796 LazMapViewer: Attempting to fix occasional crash at destruction. Patch by Ekkehard Domning
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8794 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-04-20 11:09:34 +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
7b29fa40dc LazMapViewer: Fix track demos (hick-up with previously used map provider).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8774 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-03-24 14:00:36 +00:00
55c9a60bbb LazMapViewer: Add downloadengine based on WinInet (Windows only). Update fulldemo_with_addons. Remove Synapse openssl units from package.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8703 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-12 23:02:11 +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
f083df12eb LazMapViewer: Extend download engines to be able to handle local files (https://www.lazarusforum.de/viewtopic.php?f=18&t=14790).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8701 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-02-12 13:28:53 +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
3c11c8c7d0 LazMapViewer: Extend fulldemo to show how a map can be printed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8273 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-05-03 11:46:11 +00:00
05745e2252 LazMapViewer: Repeat incomplete previous commit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8268 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-27 16:44:11 +00:00
6b48ad28ce LazMapViewer: Fix write-permission and file-not-found issues in fulldemo on Mac.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8267 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-04-27 16:28:40 +00:00
a788601c66 lazmapviewer: Fix usage of UTF-8 in search function. SourceForge issue #52, patch by Manhisz Vanna
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8200 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2022-02-25 21:25:02 +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
7c3d69fa44 LazMapViewer: Fix crash in demo when "go to point" is selected after loading a saved track.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8183 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-12-30 23:22:49 +00:00
83b7ffa66d LazMapViewer: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8128 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-10-27 16:38:32 +00:00
97d465e2b3 LazMapViewer: Fix trackdemo sample. Add checkbox to use threads.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8110 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-30 22:38:03 +00:00
362b046840 LazMapViewer: Use threads in colored_tracks sample project.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8109 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-30 22:22:25 +00:00
2388ef8a3d LazMapViewer: Add missing GPSItems.Lock/Unlock to DrawTrack method.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8108 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-30 22:18:20 +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
c155c7646e LazMapViewer: Add new TMapView method ObjsAtScreenPt to detect the GPS object under the mouse.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8106 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-30 12:57:54 +00:00
d6c8a34a63 lazmapviewer: Cleanup, less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8105 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-29 21:51:08 +00:00
fc027d9ceb LazMapViewer: Add new GPSPoint type, TGpsPointOfInterest, which has an ImageIndex into the new POIImages of the MapViewer. Enhanced FullDemo to show the imagelist.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8104 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-29 21:46:44 +00:00
77fcea1a54 LazMapViewer: Fix colored_tracks demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8103 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-09-29 16:45:18 +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
9448894c7c LazMapViewer: Move sample projects to common folder "examples". New demo project "trackdemo".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8079 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-20 13:05:28 +00:00
b10c38f5d7 MavViewer: Easier usage of GpsPoint and GpsTracks. Less hints and warnings. GpxReader LoadFromFile/Stream returns the ID of the items loaded.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8078 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-20 10:23:04 +00:00
6312921fac LazMapViewer: Add method TGpsPoint.MoveTo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8077 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-08-19 22:50:40 +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
2fdad93862 LazMapViewer: Add missing "inherited".
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8051 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-06-12 16:19:18 +00:00
9063163a69 LazMapViewer: Lock list of gps items during painting.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8006 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2021-05-02 12:24:25 +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
9d506bfa25 LazMapViewer: Extend TRealPoint with methods to convert from/to radians. Issue #38279, patch by regs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7946 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-30 09:28:31 +00:00
0e430a07bc LazMapViewer: Set new development version number (v0.2.5).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7915 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-02 13:05:08 +00:00
371b77567f LazMapViewer: Set version number to 0.2.4 for next release.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7914 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-12-02 12:14:35 +00:00
d4b3fedddd LazMapViewer: Fix compilation with FPC 3.2. Fix rgbgraphics package name.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7913 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-11-30 21:26:40 +00:00
d7364ed9f8 lazmapviewer: set "maximize compatibility" flag of packages to make them readable for non-trunk Laz versions.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7600 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-08-12 15:16:21 +00:00
074d9a39b8 LazMapviewer: Extend the demo to provide an UI for changing how GPS points are displayed.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7460 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-05-16 17:50:12 +00:00
984af77ce6 LazMapViewer: Set version number of development version to v0.2.3.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7366 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-04-09 11:44:44 +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
c6e498585b LazMapViewer: Add icon for BGRADrawingEngine to resource. Less hints.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7338 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-22 17:08:13 +00:00
9ab37029e4 LazMapViewer: Set version number of main package and add-on packages to v0.2 for release in OPM.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7337 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-22 16:13:53 +00:00