Commit Graph

82 Commits

Author SHA1 Message Date
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
a820f8ee99 LazMapViewer: Add icon for TMvBGRADrawingengine. Less hints. Preparing for release.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7336 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-22 15:53:21 +00:00
wp_xxyyzz
2ba2c46cf2 LazMapViewer: Fix compilation with Laz 1.8.4
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7333 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2020-03-20 14:51:20 +00:00
wp_xxyyzz
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
wp_xxyyzz
1a83d68689 lazmapviewer: Better fix for crash when painting outside the buffer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7170 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-24 13:09:56 +00:00
wp_xxyyzz
28f7fccd9f lazmapviewer: Add new drawingengine based on BGRABitmap. Kindly provided by forum user jc99 (https://forum.lazarus.freepascal.org/index.php/topic,47164.msg337229.html#msg337229).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7169 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-24 13:03:45 +00:00
wp_xxyyzz
7e20dce069 lazmapviewer: Fix crash when painting outside the buffer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7168 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-24 10:02:19 +00:00
wp_xxyyzz
bc42242dc3 lazmapviewer: Add synapse's ssl_openssl units to fix compilation of laz_mapviewer_synapse package.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7162 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-10-20 08:41:04 +00:00
wp_xxyyzz
07318de5e6 lazmapviewer: Make TGpsObj.IDOwner public (https://forum.lazarus.freepascal.org/index.php/topic,12674.msg323330.html#msg323330)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7008 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-06-12 22:12:40 +00:00
wp_xxyyzz
c67022ccfa LazMapViewer: Draw Point-of-interest image. Fix drawing of transparent bitmaps. Remove LCLDrawer from demo (not working).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6933 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-21 22:00:33 +00:00
wp_xxyyzz
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
wp_xxyyzz
1049b25f44 LazMapViewer: Add drawing engine based on RGBGraphics package. Register in palette. Add units missing from previous commits.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6925 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-18 21:26:38 +00:00
wp_xxyyzz
0418e4b8d4 LazMapViewer: Initial version of a LCL drawing engine. Still buggy. Extend demo project to allow selection of drawing engines.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6924 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-18 17:10:33 +00:00
wp_xxyyzz
330ea06238 LazMapViewer: Introduce a drawing engine class to avoid the IFDEF'ed drawing instructions. Implement TIntfGraphicsDrawingEngine as default.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6923 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-18 09:52:46 +00:00
wp_xxyyzz
6b3072435f LazMapViewer: Add DebugTiles property to show tile boundaries.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6922 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-17 21:29:35 +00:00
wp_xxyyzz
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
wp_xxyyzz
e3105224c0 LazMapViewer: Center gpx track after loading.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6920 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-17 16:52:19 +00:00
wp_xxyyzz
3d061ebeb1 LazMapViewer: Read track color and linewidth from gpx extensions node. Add properties DefaultTrackColor and DefaultTrackWidth.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6916 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-16 21:37:34 +00:00
wp_xxyyzz
b1b663cbbe LazMapViewer: Add support of GPX files.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6913 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-15 09:36:08 +00:00
wp_xxyyzz
505f61a073 LazMapViewer: Save gps points in demo and reload as a gps track.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6911 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-05-12 21:40:37 +00:00
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
7ea250941e lazmapviewer: Fix image format error on Linux (introduced by r6884).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6886 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-29 20:18:18 +00:00
wp_xxyyzz
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
wp_xxyyzz
8cd3f5784d lazmapviewer: Fix painting of maps on Mac.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6884 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2019-04-29 16:59:29 +00:00