diff --git a/docs/docs/AllConstants.html b/docs/docs/AllConstants.html index f25ef57..559d81f 100644 --- a/docs/docs/AllConstants.html +++ b/docs/docs/AllConstants.html @@ -18,80 +18,70 @@
Default Width (Horizontal dimension) and Height (Vertical dimension) of cache image in number of tiles.
Default W and H of cache image in number of tiles.
Default margin that is added to cache image to hold view area, in number of tiles
Default W and H of cache image in pixels
Default size of margin for labels on map, in pixels
Margin that is added to cache image to hold view area, in number of tiles
Default style of mapmark caption.
Default style of mapmark glyph.
Default pattern of tile file path.
Capabilities of Synapse engine
Capabilities of WinInet engine
Default overall limit is 10k per process, choose reasonable number below this limit
Number of GDI handles per TBitmap
Number of GDI handles per TPngImage
Prefix to add to proxy URLs if it only contains host:port - some URL parsers handle such inputs as proto:path
Size of margin for labels on map, in pixels
Converts geo point in degrees to map point in pixels
Converts geo rect in degrees to map rect in pixels
Converts geo rect in degrees to map rect in pixels
Converts geo point in degrees to map point in pixels
Converts map point in pixels to geo point in degrees
Converts map rect in pixels to geo rect in degrees
Converts map rect in pixels to geo rect in degrees
Converts map point in pixels to geo point in degrees
Returns width of map at zoom level Zoom
in pixels
Capabilities of RTL engine Function executing a network request.
Function executing a network request.
Function executing a network request.
Calculates distance between two geo points in meters
Default W and H of cache image in number of tiles.
Default Width (Horizontal dimension) and Height (Vertical dimension) of cache image in number of tiles.
Default W and H of cache image in pixels
Default margin that is added to cache image to hold view area, in number of tiles
Margin that is added to cache image to hold view area, in number of tiles
Default size of margin for labels on map, in pixels
Calculates distance between two geo points in meters
Default style of mapmark caption.
Default style of mapmark glyph.
Default pattern of tile file path.
Capabilities of Synapse engine
Capabilities of WinInet engine
Ensures point Pt
is inside a map at zoom level Zoom
, corrects values if necessary
Ensures rect Rc
is inside a map at zoom level Zoom
, corrects values if necessary
Default overall limit is 10k per process, choose reasonable number below this limit
Number of GDI handles per TBitmap
Number of GDI handles per TPngImage
Converts geo rect in degrees to map rect in pixels
Converts geo point in degrees to map point in pixels
Calculates parameters of map scalebar according to zoom level Zoom
Prefix to add to proxy URLs if it only contains host:port - some URL parsers handle such inputs as proto:path
Checks if rect Rc
is inside a map at zoom level Zoom
Checks if point Pt
is inside a map at zoom level Zoom
Size of margin for labels on map, in pixels
Checks if rect Rc
is inside a map at zoom level Zoom
Returns width of map at zoom level Zoom
in pixels
Capabilities of RTL engine Function executing a network request.
Function executing a network request.
Function executing a network request.
Convert absolute map coords to a point inside a viewport having given top-left point
Convert absolute map rect to a rect inside a viewport having given top-left point
Convert absolute map rect to a rect inside a viewport having given top-left point
Convert absolute map coords to a point inside a viewport having given top-left point
Callback to draw an image of a single tile having number (TileHorzNum
;TileVertNum
) at point TopLeft
on canvas Canvas
.
Notification of an action over a mapmark in a list
Callback to get an image of a single tile having number (TileHorzNum
;TileVertNum
).
Callback to react on selection by mouse
Notification of an action over a mapmark in a list
Convert a point inside a viewport having given top-left point to absolute map coords
Callback to react on selection by mouse
Convert a rect inside a viewport having given top-left point to absolute map rect
Convert a point inside a viewport having given top-left point to absolute map coords
Align absolute map rect to tile boundaries
Ceil vertical map coord to tile size
Floor vertical map coord to tile size
Ceil horizontal map coord to tile size
Floor horizontal map coord to tile size
Properties of a map tile
Abstract object cache class indexed by tiles with fixed capacity organised as queue.
Class that encapsulates memory and file cache of tile images.
Flags for TTileStorage
Callback to draw an image of a single tile having number (TileHorzNum
;TileVertNum
) at point TopLeft
on canvas Canvas
.
Callback to get an image of a single tile having number (TileHorzNum
;TileVertNum
).
Notification of an action over a mapmark in a list
Callback to react on selection by mouse
Flags for TTileStorage
Generic (no real network implementation) classes and declarations for requesting OSM tile images from network.
OSM map types & functions.
Implements blocking HTTP request with HTTP class from RTL.
OSM tile images cache.
Implements blocking HTTP request with Synapse framework.
Implements blocking HTTP request with HTTP class from RTL.
Implements blocking HTTP request with WinInet.
Implements blocking HTTP request with Synapse framework.
OSM map types & functions.
Implements blocking HTTP request with WinInet.
OSM tile images cache.
procedure ZoomToFit;
procedure SetCacheImageProperties(TilesHorz, TilesVert, MarginSize: Cardinal);
function SaveToBitmap(const SaveRect: TRect; DrawOptions: TMapOptions; DrawMapMarks: Boolean): TBitmap; overload;
function SaveToBitmap(DrawOptions: TMapOptions; DrawMapMarks: Boolean): TBitmap; overload;
![]() |
-property ViewRect: TRect read ViewAreaRect; |
+property LabelMargin: Cardinal read FLabelMargin write SetLabelMargin; |
![]() |
+property ViewRect: TRect read ViewAreaRect; |
+|
![]() |
property VisibleLayers: TMapLayers read FVisibleLayers write SetVisibleLayers; |
|
![]() |
+property OnGetTile: TOnGetTile read FOnGetTile write FOnGetTile; |
+|
![]() |
property OnDrawTile: TOnDrawTile read FOnDrawTile write FOnDrawTile; |
@@ -368,14 +388,7 @@ |
-Set zoom level to new value and reposition to given point -Parameters-
|
![]() |
+procedure SetCacheImageProperties(TilesHorz, TilesVert, MarginSize: Cardinal); |
+
+ +Set properties of cache image and rebuild it + |
![]() |
+function SaveToBitmap(const SaveRect: TRect; DrawOptions: TMapOptions; DrawMapMarks: Boolean): TBitmap; overload; |
+
+ +Export map fragment as bitmap. +Parameters+
Exceptions raised+
|
![]() |
+function SaveToBitmap(DrawOptions: TMapOptions; DrawMapMarks: Boolean): TBitmap; overload; |
+
+ +Export whole map as bitmap. +Parameters+
Exceptions raised+
|
![]() |
+property LabelMargin: Cardinal read FLabelMargin write SetLabelMargin; |
+
+ +Size of margin for labels on map, in pixels + |
![]() |
property ViewRect: TRect read ViewAreaRect; |
|||||||||||||||||
@@ -512,11 +591,23 @@ Properties
Generated by PasDoc 0.15.0. diff --git a/docs/docs/OSM.MapControl.html b/docs/docs/OSM.MapControl.html index 202b53a..34aed63 100644 --- a/docs/docs/OSM.MapControl.html +++ b/docs/docs/OSM.MapControl.html @@ -104,34 +104,31 @@ See also | TMapMouseMode = (...); |
|||||||||||||||||
TOnDrawTile = procedure (Sender: TMapControl; TileHorzNum, TileVertNum: Cardinal; const TopLeft: TPoint; Canvas: TCanvas; var Handled: Boolean) of object; |
+TOnGetTile = function (Sender: TMapControl; TileHorzNum, TileVertNum: Cardinal): TBitmap of object; |
|||||||||||||||||
TOnDrawMapMark = procedure (Sender: TMapControl; Canvas: TCanvas; const Point: TPoint; MapMark: TMapMark; var Handled: Boolean) of object; |
+TOnDrawTile = procedure (Sender: TMapControl; TileHorzNum, TileVertNum: Cardinal; const TopLeft: TPoint; Canvas: TCanvas; var Handled: Boolean) of object; |
|||||||||||||||||
TOnDrawMapMark = procedure (Sender: TMapControl; Canvas: TCanvas; const Point: TPoint; MapMark: TMapMark; var Handled: Boolean) of object; |
+||||||||||||||||||
TOnSelectionBox = procedure (Sender: TMapControl; const GeoRect: TGeoRect) of object; |
CacheImageDefTilesH = 8; |
-|
CacheImageDefTilesV = 8; |
-|
CacheImageDefWidth = CacheImageDefTilesH*TILE_IMAGE_WIDTH; |
+DefaultCacheImageTilesHorz = 8; |
CacheImageDefHeight = CacheImageDefTilesV*TILE_IMAGE_HEIGHT; |
+DefaultCacheImageTilesVert = 8; |
CacheMarginSize = 2; |
+DefaultCacheMarginSize = 2; |
LabelMargin = 2; |
+DefaultLabelMargin = 2; |
DefaultMapMarkGlyphStyle: TMapMarkGlyphStyle = (
@@ -321,84 +318,73 @@ |
TOnDrawTile = procedure (Sender: TMapControl; TileHorzNum, TileVertNum: Cardinal; const TopLeft: TPoint; Canvas: TCanvas; var Handled: Boolean) of object; |
+TOnGetTile = function (Sender: TMapControl; TileHorzNum, TileVertNum: Cardinal): TBitmap of object; |
-Callback to draw an image of a single tile having number ( Note for TMapControl.OnDrawTile: Note for TMapControl.OnDrawTileLoading: TileHorzNum ;TileVertNum ). Must return bitmap of a tile or Nil if it's not available at the moment
|
TOnDrawMapMark = procedure (Sender: TMapControl; Canvas: TCanvas; const Point: TPoint; MapMark: TMapMark; var Handled: Boolean) of object; |
+TOnDrawTile = procedure (Sender: TMapControl; TileHorzNum, TileVertNum: Cardinal; const TopLeft: TPoint; Canvas: TCanvas; var Handled: Boolean) of object; |
-Callback to custom draw a mapmark. It is called before default drawing. If TileHorzNum ;TileVertNum ) at point TopLeft on canvas Canvas . Must set Handled to True , otherwise default actions will be done. This type is common for both TMapControl.OnDrawTile and TMapControl.OnDrawTileLoading callbacks.
|
TOnSelectionBox = procedure (Sender: TMapControl; const GeoRect: TGeoRect) of object; |
+TOnDrawMapMark = procedure (Sender: TMapControl; Canvas: TCanvas; const Point: TPoint; MapMark: TMapMark; var Handled: Boolean) of object; |
-Callback to react on selection by mouse +Callback to custom draw a mapmark. It is called before default drawing. IfHandled is not set to True , default drawing will be done.
|
CacheImageDefTilesH = 8; |
+TOnSelectionBox = procedure (Sender: TMapControl; const GeoRect: TGeoRect) of object; |
-Default W and H of cache image in number of tiles. Memory occupation of an image: (4 bytes per pixel) * |
CacheImageDefTilesV = 8; |
-
- |
CacheImageDefWidth = CacheImageDefTilesH*TILE_IMAGE_WIDTH; |
+DefaultCacheImageTilesHorz = 8; |
-Default W and H of cache image in pixels +Default Width (Horizontal dimension) and Height (Vertical dimension) of cache image in number of tiles. Cache is init-ed with these values but could be changed later.Memory occupation of an image: (4 bytes per pixel) * TilesH * TilesV * (65536 pixels in single tile) For value 8 it counts 16.7 Mb |
CacheImageDefHeight = CacheImageDefTilesV*TILE_IMAGE_HEIGHT; |
+DefaultCacheImageTilesVert = 8; |
CacheMarginSize = 2; |
+DefaultCacheMarginSize = 2; |
-Margin that is added to cache image to hold view area, in number of tiles +Default margin that is added to cache image to hold view area, in number of tiles |
LabelMargin = 2; |
+DefaultLabelMargin = 2; |
-Size of margin for labels on map, in pixels +Default size of margin for labels on map, in pixels |
Generic (no real network implementation) classes and declarations for requesting OSM tile images from network. |
|||
OSM.SlippyMapUtils | -OSM map types & functions. |
+OSM.NetworkRequest.RTL | +Implements blocking HTTP request with HTTP class from RTL. |
OSM.TileStorage | -OSM tile images cache. |
+OSM.NetworkRequest.Synapse | +Implements blocking HTTP request with Synapse framework. |
RTLInetRequest | -Implements blocking HTTP request with HTTP class from RTL. |
+OSM.NetworkRequest.WinInet | +Implements blocking HTTP request with WinInet. |
SynapseRequest | -Implements blocking HTTP request with Synapse framework. |
+OSM.SlippyMapUtils | +OSM map types & functions. |
WinInetRequest | -Implements blocking HTTP request with WinInet. |
+OSM.TileStorage | +OSM tile images cache. |