Commit Graph

81 Commits

Author SHA1 Message Date
wp_xxyyzz
244c9fa2b2 LazMapViewer: Undo r9494, not usable. Scale all tiles to the size specified by global TileSize variable. Alpha-channel of RGB32BBitmap and BGRABitmap drawing engines not correct, so far. (Issue #39078).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9497 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-11-04 17:20:17 +00:00
wp_xxyyzz
873d0f4a91 LazMapViewer: Improved restricted panning along the edge of the allowed area.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9495 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-11-02 23:40:32 +00:00
wp_xxyyzz
1f22d2634b LazMapViewer: Support tile sizes other than 256x256 (experimental feature). Add OpenRailwayMap provider for 512x512 tiles.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9494 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-11-02 14:58:29 +00:00
wp_xxyyzz
eb6ddb92e4 LazMapViewer: Add OnCenterMoving and OnZoomChanging events. Issue CCR-#39077
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9493 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-31 12:46:24 +00:00
wp_xxyyzz
a204dfcd7a LazMapViewer: Avoid new cache-downloadengine to hang when cache file does not exist.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9490 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-22 15:32:25 +00:00
wp_xxyyzz
b6619dd30e LazMapViewer: Add download engine which accesses only the local cache.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9489 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-10-22 12:33:30 +00:00
wp_xxyyzz
243e25f62b LazMapViewer: Less hints and warnings
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9473 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-09-30 15:44:03 +00:00
wp_xxyyzz
744fe8c3a3 LazMapViewer: Fix TMapViewerEngine.CrossesDateLine. Based on patch by Ekkehard Domning. Less hints and warnings.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9352 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-05-26 21:18:18 +00:00
wp_xxyyzz
93167ada8b LazMapViewer: Remove duplicate distance calculation in TGPSPoint. Had to move some general-purpose geo-math routines to a new units mvGeoMath. Old functions kept in mvEngine, but marked as deprecated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9337 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-15 23:11:21 +00:00
wp_xxyyzz
d0103c8182 LazMapViewer: Add functions named "LatLon" in addition to the old ones named as "LonLat" and mark the old ones as deprecated.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9298 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-29 08:59:35 +00:00
alpine-a110
1962802720 LazMapViewer: ZoomMin and ZoomMax restrictions when zooming with the mouse.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9295 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 14:51:19 +00:00
alpine-a110
9f6e255450 LazMapViewer: TMapView.CyclicPointsOf fix of array length. CalcIntermedPoint parameters check.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9294 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 14:48:50 +00:00
alpine-a110
0c1a27965b LazMapViewer: Calculation of bearing, target point by bearing, midpoint, intermediate point. First, Last of TMapCollection, TMapPoint.ToScreen property. TGPSTrack draw event and ConnectColor/Width properties. Better GPX import/export.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9292 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 14:28:13 +00:00
alpine-a110
b651135f37 LazMapViewer: Drag button check (mbLeft) moved from Engine to MapView. Added Start/End/AbortDragging methods. GetObjectsInArea with a class filter.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9288 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 13:36:09 +00:00
alpine-a110
3f0fa39576 LazMapViewer: Added option TMapViewOption.mvoLatLonInDMS to show/edit Latitude and Longitude in deg-min-secs.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9270 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-05 16:57:24 +00:00
alpine-a110
f991ac6415 LazMapViewer: Map providers defaults to NONE. Map view cannot be activated in such a case.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9232 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-10 16:55:28 +00:00
alpine-a110
e9e5b18ab3 LazMapViewer: Check compatability of provider projection type against the base provider.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9227 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-09 12:50:20 +00:00
alpine-a110
ea1efb8066 LazMapViewer: Added layers collection and center point to the map. Map can be activated into the form designer.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9226 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-09 06:46:54 +00:00
wp_xxyyzz
1b0cc03ff5 LazMapviewer: Enable/disable zooming and panning of the map. Issue #39069, patch by Yuliyan Ivanov. Update colored_tracks demo.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9182 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-29 13:04:09 +00:00
wp_xxyyzz
a0a6aee91f LazMapViewer: Improved drawing (PaintToCanvas with origin), fix of hang due to arithmetic error, improved cyclic drawing. Patch by Yuliyan Ivanov.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9151 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-19 17:55:12 +00:00
wp_xxyyzz
3750b0a3d7 lazmapviewer: Improved drawing code. Extend both fulldemo projects by map layers. Patch by Yuliyan Ivanov. Issue #39063.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9150 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-18 12:11:41 +00:00
wp_xxyyzz
c7b2a5efda LazMapViewer: Remove drawing residues outside the map tiles. Patch by Yuliyan Ivanov.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9142 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-15 11:51:35 +00:00
wp_xxyyzz
a28a2371ee LazMapviewer: New optimization by Yuliyan Ivanov (Fixed arithmetic overflow errors for 32 bit target; Fixed ExtractISODateTime() bad ISO date handling resulting in range errors when no milliseconds; Track drawing, fixed segment disappearing when both ends invisible; Tile drawing mode implementation in addons. Tile layer objects in mvMapViewer; Tile drawing mode introduced for additional tile layers; Added TGPSObj.Visible property; DragObj as a public property; added Polyline, Polygon, PolyBezier drawing methods; Minor drawing optimisation: skip invisible part of the track)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9139 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-13 16:41:07 +00:00
wp_xxyyzz
59ed6984f4 LazMapViewer: Massive re-work of the drawing engines by Yuliyan Ivanov, issue #39063
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9116 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-02 22:00:06 +00:00
wp_xxyyzz
4b37ed5ca7 LazMapViewer: Fix trackdemo project not updating track marker. Patch by Yuliyan Ivanov.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9093 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-12-19 11:04:23 +00:00
wp_xxyyzz
b95f2c36b8 LazMapViewer: Fixes issues with painting/multithreading. Issue #39063, patch by Yuliyan Ivanov.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9092 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2023-12-18 16:56:22 +00:00
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
wp_xxyyzz
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
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
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
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