Class TTilesProvider
Unit
Declaration
type TTilesProvider = class(TObject)
Description
Abstract base class for tile image provider. Real implementations must inherit from it, assign properties and override methods.
Note to implementors: take any of the existing implementations as base. Try to store all constants within the class declaration leaving no magic values in implementation. This way all values won't be scattered between methods and will be easy to modify.
Hierarchy
- TObject
- TTilesProvider
Overview
Fields
TilesCopyright: string; |
|
TileURLPatt: string; |
|
APIKey: string; |
Methods
constructor Create; virtual; abstract; |
|
class function Name: string; virtual; abstract; |
|
function StorageID: string; virtual; |
|
function GetTileURL(const Tile: TTile): string; virtual; abstract; |
|
function Clone: TTilesProvider; virtual; |
Properties
property Features: TTileProviderFeatures read FFeatures; |
|
property MinZoomLevel: TMapZoomLevel read FMinZoomLevel; |
|
property MaxZoomLevel: TMapZoomLevel read FMaxZoomLevel; |
|
property RequiredProperties: TRequiredProperties read FRequiredProperties; |
|
property Properties[const Index: string]: string read GetProperty write SetProperty; |
Description
Fields
TilesCopyright: string; |
|
[opt] Tile copyright that will be painted in the corner of the map. Gets default value when instance is created. |
TileURLPatt: string; |
|
Pattern of tile URL. For format see FormatTileURL. Gets default value when instance is created, unlikely needed to modify |
APIKey: string; |
|
[opt] API key for requesting tiles |
Methods
constructor Create; virtual; abstract; |
|
This item has no description. |
function GetTileURL(const Tile: TTile): string; virtual; abstract; |
|
Method to get URL of specified tile. Uses TileURLPatt |
function Clone: TTilesProvider; virtual; |
|
Create clone of provider instance copying all data. |
Properties
property Features: TTileProviderFeatures read FFeatures; |
|
Provider |
property MinZoomLevel: TMapZoomLevel read FMinZoomLevel; |
|
Minimal zoom level. Usually |
property MaxZoomLevel: TMapZoomLevel read FMaxZoomLevel; |
|
Maximal zoom level |
property RequiredProperties: TRequiredProperties read FRequiredProperties; |
|
Set of available required properties. Provided for end user to choose. App is responsible for assigning chosen values to Properties. |
Generated by PasDoc 0.16.0.