diff --git a/docs/docs/AllConstants.html b/docs/docs/AllConstants.html index 21ed921..547ef52 100644 --- a/docs/docs/AllConstants.html +++ b/docs/docs/AllConstants.html @@ -53,91 +53,122 @@
Default pattern of tile file path.
Capabilities of RTL engine.
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
Constant containing all numbers of layers
Constant containing no layers
Timeout for connect and request
Headers that you could add to TNetworkRequestQueue.
Internal constant to designate OS-wide proxy
Default pattern to draw on currently loading tiles
See https://wiki.openstreetmap.org/wiki/Zoom_levels Level Degree Area m / pixel ˜Scale # Tiles 0 360 whole world 156,412 1:500 million 1 1 180 78,206 1:250 million 4 2 90 39,103 1:150 million 16 3 45 19,551 1:70 million 64 4 22.5 9,776 1:35 million 256 5 11.25 4,888 1:15 million 1,024 6 5.625 2,444 1:10 million 4,096 7 2.813 1,222 1:4 million 16,384 8 1.406 610.984 1:2 million 65,536 9 0.703 wide area 305.492 1:1 million 262,144 10 0.352 152.746 1:500,000 1,048,576 11 0.176 area 76.373 1:250,000 4,194,304 12 0.088 38.187 1:150,000 16,777,216 13 0.044 village/town 19.093 1:70,000 67,108,864 14 0.022 9.547 1:35,000 268,435,456 15 0.011 4.773 1:15,000 1,073,741,824 16 0.005 small road 2.387 1:8,000 4,294,967,296 17 0.003 1.193 1:4,000 17,179,869,184 18 0.001 0.596 1:2,000 68,719,476,736 19 0.0005 0.298 1:1,000 274,877,906,944 20 0.00025 mid-sized bldng 0.149 1:5,00 1,099,511,627,776
See https://wiki.openstreetmap.org/wiki/Zoom_levels
+ ++Level Degree Area m / pixel ˜Scale # Tiles +0 360 whole world 156,412 1:500 million 1 +1 180 78,206 1:250 million 4 +2 90 39,103 1:150 million 16 +3 45 19,551 1:70 million 64 +4 22.5 9,776 1:35 million 256 +5 11.25 4,888 1:15 million 1,024 +6 5.625 2,444 1:10 million 4,096 +7 2.813 1,222 1:4 million 16,384 +8 1.406 610.984 1:2 million 65,536 +9 0.703 wide area 305.492 1:1 million 262,144 +10 0.352 152.746 1:500,000 1,048,576 +11 0.176 area 76.373 1:250,000 4,194,304 +12 0.088 38.187 1:150,000 16,777,216 +13 0.044 village/town 19.093 1:70,000 67,108,864 +14 0.022 9.547 1:35,000 268,435,456 +15 0.011 4.773 1:15,000 1,073,741,824 +16 0.005 small road 2.387 1:8,000 4,294,967,296 +17 0.003 1.193 1:4,000 17,179,869,184 +18 0.001 0.596 1:2,000 68,719,476,736 +19 0.0005 0.298 1:1,000 274,877,906,944 +20 0.00025 mid-sized bldng 0.149 1:5,00 1,099,511,627,776+ +
Amount of bytes that a single tile bitmap occupies in memory.
Height of map tile in pixels
Width of map tile in pixels
Calculates distance between two geo points in meters Other
Calculates distance between two geo points in meters
Checks if point Pt
is inside a map at zoom level Zoom
Checks if rect Rc
is inside a map at zoom level Zoom
Checks if rect Rc
is inside a map at zoom level Zoom
Checks if point Pt
is inside a map at zoom level Zoom
Converts geo coord in degrees to map coord in pixels Degrees to pixels
Converts geo coord in degrees to map coord in pixels
Converts map coord in pixels to geo coord in degrees Pixels to degrees
Converts map coord in pixels to geo coord in degrees
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
Capabilities of RTL engine Procedure executing a network request.
Procedure executing a network request.
Add class of tiles provider to global TilesProviders array.
Determine whether current ShiftState corresponds to desired one (that is, if mouse button and pressed modifiers are the same - not a simple comparison because TShiftState could include additional entries like "Pen", "Touch" and so on.
Returns count of tiles on Zoom
level (= 2ˆZoom
) Tile utils
Returns count of tiles on Zoom
level (= 2ˆZoom
)
Compares tiles
Returns standartized string representation of Tile
Checks Tile
fields for validity
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
Convert absolute map coords to a point inside a viewport having given top-left point
- -Utils
* Like Client<=>Screen
Convert absolute map rect to a rect inside a viewport having given top-left point
Convert a point inside a viewport having given top-left point to absolute map coords
Convert a rect inside a viewport having given top-left point to absolute map rect
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 Ceil value to tile size
Ceil horizontal map coord to tile size
Floor horizontal map coord to tile size Floor value to tile size
Floor horizontal map coord to tile size
Calculates distance between two geo points in meters Other
Calculates distance between two geo points in meters
Default pattern of tile file path.
Capabilities of RTL engine.
Capabilities of Synapse engine
Capabilities of WinInet engine
Ensures rect Rc
is inside a map at zoom level Zoom
, corrects values if necessary
Ensures point Pt
is inside a map at zoom level Zoom
, corrects values if necessary
Format URL for a given tile using OpenLayers-compatible URL template.
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 point in degrees to map point in pixels
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 point Pt
is inside a map at zoom level Zoom
Checks if rect Rc
is inside a map at zoom level Zoom
Return true if response code means HTTP error
Converts geo coord in degrees to map coord in pixels
Constant containing all numbers of layers
Constant containing no layers
Converts geo coord in degrees to map coord in pixels Degrees to pixels
Converts geo coord in degrees to map coord in pixels
Converts map coord in pixels to geo coord in degrees
Converts map coord in pixels to geo coord in degrees Pixels to degrees
Converts map coord in pixels to geo coord in degrees
Returns height of map at zoom level Zoom
in pixels
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 Procedure executing a network request.
Procedure executing a network request.
Procedure executing a network request.
Procedure executing a network request.
Construct TRect
from two TPoint
-s
Add class of tiles provider to global TilesProviders array.
Timeout for connect and request
Headers that you could add to TNetworkRequestQueue.
Determine whether current ShiftState corresponds to desired one (that is, if mouse button and pressed modifiers are the same - not a simple comparison because TShiftState could include additional entries like "Pen", "Touch" and so on.
Default pattern to draw on currently loading tiles
Returns count of tiles on Zoom
level (= 2ˆZoom
) Tile utils
Returns count of tiles on Zoom
level (= 2ˆZoom
)
See https://wiki.openstreetmap.org/wiki/Zoom_levels Level Degree Area m / pixel ˜Scale # Tiles 0 360 whole world 156,412 1:500 million 1 1 180 78,206 1:250 million 4 2 90 39,103 1:150 million 16 3 45 19,551 1:70 million 64 4 22.5 9,776 1:35 million 256 5 11.25 4,888 1:15 million 1,024 6 5.625 2,444 1:10 million 4,096 7 2.813 1,222 1:4 million 16,384 8 1.406 610.984 1:2 million 65,536 9 0.703 wide area 305.492 1:1 million 262,144 10 0.352 152.746 1:500,000 1,048,576 11 0.176 area 76.373 1:250,000 4,194,304 12 0.088 38.187 1:150,000 16,777,216 13 0.044 village/town 19.093 1:70,000 67,108,864 14 0.022 9.547 1:35,000 268,435,456 15 0.011 4.773 1:15,000 1,073,741,824 16 0.005 small road 2.387 1:8,000 4,294,967,296 17 0.003 1.193 1:4,000 17,179,869,184 18 0.001 0.596 1:2,000 68,719,476,736 19 0.0005 0.298 1:1,000 274,877,906,944 20 0.00025 mid-sized bldng 0.149 1:5,00 1,099,511,627,776
See https://wiki.openstreetmap.org/wiki/Zoom_levels
+ ++Level Degree Area m / pixel ˜Scale # Tiles +0 360 whole world 156,412 1:500 million 1 +1 180 78,206 1:250 million 4 +2 90 39,103 1:150 million 16 +3 45 19,551 1:70 million 64 +4 22.5 9,776 1:35 million 256 +5 11.25 4,888 1:15 million 1,024 +6 5.625 2,444 1:10 million 4,096 +7 2.813 1,222 1:4 million 16,384 +8 1.406 610.984 1:2 million 65,536 +9 0.703 wide area 305.492 1:1 million 262,144 +10 0.352 152.746 1:500,000 1,048,576 +11 0.176 area 76.373 1:250,000 4,194,304 +12 0.088 38.187 1:150,000 16,777,216 +13 0.044 village/town 19.093 1:70,000 67,108,864 +14 0.022 9.547 1:35,000 268,435,456 +15 0.011 4.773 1:15,000 1,073,741,824 +16 0.005 small road 2.387 1:8,000 4,294,967,296 +17 0.003 1.193 1:4,000 17,179,869,184 +18 0.001 0.596 1:2,000 68,719,476,736 +19 0.0005 0.298 1:1,000 274,877,906,944 +20 0.00025 mid-sized bldng 0.149 1:5,00 1,099,511,627,776+ +
Options for TMapMarkList.Find.
If not set (default), consider all mapmarks
Shape of mapmark glyph
Mode of handling of plain left mouse button press
Mode of current handling of mouse events:
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
Convert absolute map coords to a point inside a viewport having given top-left point
- -Utils
* Like Client<=>Screen
Convert absolute map rect to a rect inside a viewport having given top-left point
Notification of an action over a mapmark in a list
Callback to react on selection by mouse
Callback to react on mouse button press/release
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
OpenStreetMap tile image provider
OpenStreetMap tile image provider
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 Ceil value to tile size
Ceil horizontal map coord to tile size
Floor horizontal map coord to tile size Floor value 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.
Abstract base class for tile image provider.
Class that encapsulates memory and file cache of tile images.
Flags for TTileStorage
Options for TMapMarkList.Find.
If not set (default), consider all mapmarks
Shape of mapmark glyph
Mode of handling of plain left mouse button press
Mode of current handling of mouse events:
Notification of an action over a mapmark in a list
Callback to react on mouse button press/release
Callback to react on selection by mouse
Flags for TTileStorage
MapMarkCaptionFont: TFont;
SelectionShiftState: TShiftState;
DragShiftState: TShiftState;
+ | function MapMarkVisible(MapMark: TMapMark): Boolean; inline; |
+|
+ | function MapMarkAtPos(const MapPt: TPoint): TMapMark; |
+|
procedure SetCacheImageProperties(TilesHorz, TilesVert, MarginSize: Cardinal); |
||
- | property MouseMode: TMapMouseMode read FMouseMode write FMouseMode; |
+property MouseMode: TMapMouseMode read FMouseMode write SetMouseMode; |
@@ -205,6 +221,14 @@ | property OnSelectionBox: TOnSelectionBox read FOnSelectionBox write FOnSelectionBox; |
|
+ | property OnMapMarkMouseDown: TOnMapMarkMouseButtonEvent read FOnMapMarkMouseDown write FOnMapMarkMouseDown; |
+|
+ | property OnMapMarkMouseUp: TOnMapMarkMouseButtonEvent read FOnMapMarkMouseUp write FOnMapMarkMouseUp; |
+
-Convert a point from map pixel coords to geo coords Pixels => degrees +Convert a point from map pixel coords to geo coords |
-Convert a point from geo coords to map pixel coords Degrees => pixels +Convert a point from geo coords to map pixel coords |
-Convert map points to scrollbox inner coordinates (not client!) ! Compiler-specific ! TScrollBox is different in different compilers. +Convert map points to scrollbox inner coordinates (not client!)! Compiler-specific ! TScrollBox is different in different compilers.
Methods | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
-Set zoom level to new value and reposition to given point - -
* Set zoom level to new value and reposition to given point +Set zoom level to new value and reposition to given pointParameters
Parameters
Generated by PasDoc 0.16.0. diff --git a/docs/docs/OSM.MapControl.TMapMarkCaptionStyle.html b/docs/docs/OSM.MapControl.TMapMarkCaptionStyle.html index ab30611..8a7e8ed 100644 --- a/docs/docs/OSM.MapControl.TMapMarkCaptionStyle.html +++ b/docs/docs/OSM.MapControl.TMapMarkCaptionStyle.html @@ -27,22 +27,26 @@ Overview
Fields
Generated by PasDoc 0.16.0. diff --git a/docs/docs/OSM.MapControl.TMapMarkList.html b/docs/docs/OSM.MapControl.TMapMarkList.html index c5287f4..f49b20c 100644 --- a/docs/docs/OSM.MapControl.TMapMarkList.html +++ b/docs/docs/OSM.MapControl.TMapMarkList.html @@ -21,7 +21,7 @@ Declarationtype TMapMarkList = class(TObject)
Description-List of mapmarks. Items are sorted by layer number and painted in this order, ascending +List of mapmarks. Items are sorted by layer number and painted in this order, ascendingHierarchyOverview@@ -45,35 +45,51 @@Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | function Get(Index: Integer): TMapMark; |
+function GetEnumerator: TObjectList<TMapMark>.TEnumerator; inline; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | function Find(const GeoCoords: TGeoPoint; ConsiderMapMarkSize: Boolean = True; StartIndex: Integer = -1): Integer; overload; |
+function Get(Index: Integer): TMapMark; inline; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | function Find(const GeoRect: TGeoRect; ConsiderMapMarkSize: Boolean = True; StartIndex: Integer = -1): Integer; overload; |
+function Find(const GeoCoords: TGeoPoint; Options: TMapMarkFindOptions = []; StartIndex: Integer = -1): Integer; overload; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | function NewItem: TMapMark; |
+function Find(const GeoRect: TGeoRect; Options: TMapMarkFindOptions = []; StartIndex: Integer = -1): Integer; overload; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | function Add(const GeoCoords: TGeoPoint; const Caption: string; Layer: TMapLayer = 0): TMapMark; overload; |
+function Find(const MapPt: TPoint; Options: TMapMarkFindOptions; StartIndex: Integer): Integer; overload; |
+||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | function Find(Data: Pointer): Integer; overload; |
+|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | function NewItem: TMapMark; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | function Add(const GeoCoords: TGeoPoint; const Caption: string; Layer: TMapLayer = 0): TMapMark; overload; |
+|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
function Add(MapMark: TMapMark): TMapMark; overload; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | procedure Delete(Ind: Integer); overload; |
+|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | procedure Delete(MapMark: TMapMark); |
+procedure Delete(MapMark: TMapMark); overload; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | function Count: Integer; |
+function Count: Integer; inline; |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
@@ -86,6 +102,10 @@ | property OnItemNotify: TOnItemNotify read FOnItemNotify write FOnItemNotify; |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
+ | property Items[Index: Integer]: TMapMark read Get; |
+
- | function Get(Index: Integer): TMapMark; |
+function GetEnumerator: TObjectList<TMapMark>.TEnumerator; inline; |
+
+ |
+ | function Get(Index: Integer): TMapMark; inline; |
||||||||||||||||||||||||||||||||||||
- | function Find(const GeoCoords: TGeoPoint; ConsiderMapMarkSize: Boolean = True; StartIndex: Integer = -1): Integer; overload; |
+function Find(const GeoCoords: TGeoPoint; Options: TMapMarkFindOptions = []; StartIndex: Integer = -1): Integer; overload; |
|||||||||||||||||||||||||||||||||||
@@ -152,7 +180,7 @@ Methodsidx := -1; repeat - idx := MapMarks.Find(Point, idx); + idx := MapMarks.Find(Point, [], idx); if idx = -1 then Break; ... do something with MapMarks[idx] ... until False;@@ -165,9 +193,9 @@ Parameters
Returns@@ -176,7 +204,7 @@Returns
|