Commit Graph

166 Commits

Author SHA1 Message Date
wp_xxyyzz
0562f757ef LazMapViewer: Cleanup
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9321 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-04 16:10:32 +00:00
wp_xxyyzz
2d0654b66a LazMapViewer: Fix transparency of marker images in the RGBGraphics drawing engine.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9320 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-04 16:08:39 +00:00
wp_xxyyzz
d8caf811af LazMpaViewer: Keep the alpha channel when a new image is assigned to the TMapView.POIImage.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9319 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-03 22:17:47 +00:00
wp_xxyyzz
63972ead2e LazMapviewer: Update RGBGraphicsDrawingEngine to support qt6
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9316 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-03 16:54:09 +00:00
wp_xxyyzz
7d571238f8 LazMapViewer: Rework text drawing in TRGBGraphicsDrawingEngine to avoid by-pass to LazIntfImage in favour of built-in graphics routines.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9313 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-03 16:06:28 +00:00
wp_xxyyzz
9be8f8eb5e LazMapViewer: Move public TCustomDrawingEngine.DrawBitmapOT to protected section of TIntfGraphicsDrawingEngine, not needed anywhere else.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9312 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-02 21:44:36 +00:00
wp_xxyyzz
9fcf346d74 LazMapViewer: Improved text rendering by IntfGraphicsDrawingEngine when text color is white
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9310 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-02 20:36:17 +00:00
wp_xxyyzz
fb42932f2e LazMapViewer: Improved text rendering by IntfGraphicsDrawingEngine
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9309 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-02 20:23:37 +00:00
wp_xxyyzz
2f00c05ab1 LazMapViewer: Rework text drawing code in IntfGraphicsDrawingEngine for simplification and to avoid occasionally opaque text background in Linux/gtk2 although it should be transparent.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9308 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-02 15:22:28 +00:00
wp_xxyyzz
b2c7b67f03 LazMapViewer: Fix package compilation and elevations demo with Laz 2.0.12
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9307 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-02 13:58:49 +00:00
alpine-a110
7e5d6eff6b LazMapViewer: HitTest method added to TMapItem, TMapCollection. Intersect() zerodiv fix. TMapView.LatLonToScreen overload with lat,lon.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9306 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-04-02 10:54:31 +00:00
wp_xxyyzz
2b3c16e686 LazMapViewer: Fix text size calculation in intfgraphics drawingengine for qt5
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9304 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-30 19:17:37 +00:00
wp_xxyyzz
30180acdfb LazMapViewer: Add URL encoding method to DownloadEngine to fix failure in searching for city names with unsafe characters in mvGeoNames unit.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9302 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-30 00:10:45 +00:00
alpine-a110
b1be720320 LazMapViewer: TMapViewer.CacheOnDisk property initialization fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9300 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-29 16:31:09 +00:00
wp_xxyyzz
f2e3491fa5 LazMapViewer: Deprecate also TRealPoint.Init in favour of TRealPoint.InitXY and TRealPoint.InitLatLon
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9299 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-29 09:15:14 +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
5e78c55b9f LazMapViewer: Added TMapPoint.AssignTo methods.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9296 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 23:20:17 +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
cbeaba4e2c LazMapViewer: amend [r9292]
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9293 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 14:37:52 +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
6995a6c863 LazMapViewer: Track segments connection. Z Orders fix. GPX load/store new props. ClipPolyToRect function added.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9291 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 14:20:58 +00:00
alpine-a110
8eaa889f85 LazMapViewer: Track segment marks and GPX track loading. TryStrToGpxColor fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9290 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 14:15:23 +00:00
alpine-a110
6a13ae7fb3 LazMapViewer: Rehaul of TMapItem/TMapCollection, TMapTrack, TMapTrackPoint, TMapTrackPoints. TTrackSegmentExtraData added.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9289 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 13:45:53 +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
8651b681b3 LazMapViewer: mvde_bgra.pas TextOut native.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9287 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-28 13:32:38 +00:00
alpine-a110
7c414d3da5 LazMapViewer: Drawing engines BrushStyle fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9283 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-19 09:42:10 +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
3689d1f46d LazMapViewer: TMapLayersPropertyEditor form added.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9268 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-04 14:12:37 +00:00
alpine-a110
7f604013a0 LazMapViewer: TMapLayersPropertyEditor with Load/Save single layer to .gpx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9267 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-04 14:03:49 +00:00
alpine-a110
f3338c7249 LazMapViewer: Added TGpxWriter (rudimentary) into mvGPX.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9266 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-04 13:38:29 +00:00
alpine-a110
58f994c821 LazMapViewer: Added CacheLocation property to the TMapView
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9265 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-04 13:36:32 +00:00
alpine-a110
d85d2a6abd SetOnDrawPoint fix.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9264 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-03-04 13:31:34 +00:00
alpine-a110
db74c8f70c LazMapViewer: Added TPointOfInterest.OnDrawPoint event.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9241 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-14 16:29:55 +00:00
alpine-a110
8ffdac8479 LazMapViewer: Added POI collection to the map layers.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9237 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-13 18:15:14 +00:00
alpine-a110
234c16404d LazMapViewer: Default map center at (0,0) with zoom=1
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9233 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-10 17:53:13 +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
004f1a9328 LazMapViewer: Corrected spelling error, Lattitude -> Latitude.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9229 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-02-09 16:41:53 +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
df9baf8a9c LazMapViewer: Fix compilation with FPC 3.0.x
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9173 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-25 16:56:22 +00:00
wp_xxyyzz
03e6f8bcd5 lazmapviewer: Fix across-dateline track disappearing when start point is vertically outside the viewport. Patch by Yuliyan Ivanov.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9170 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-24 23:08:48 +00:00
wp_xxyyzz
ed3cdb19ab lazmapviewer: Fix for tracks starting/ending at same longitude. Patch by Yuliyan Ivanov.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9167 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-24 08:29:53 +00:00
wp_xxyyzz
7df5988462 lazmapviewer: Improved drawing of tracks across the dateline. Patch by Yuliyan Ivanov.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9166 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-23 23:10:13 +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
2403a04edb LazMapViewer: In TMapView, replace some calls to Engine.Redraw by Invalidate
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9143 8e941d3f-bd1b-0410-a28a-d453659cc2b4
2024-01-15 12:15:22 +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