Class T2GISTilesProvider
Unit
Declaration
type T2GISTilesProvider = class(TTilesProviderWithProps)
Description
2GIS tile image provider
Hierarchy
- TObject
- TTilesProvider
- TTilesProviderWithProps
- T2GISTilesProvider
Overview
Fields
nested const DefTilesCopyright = '(c) 2GIS'; |
|
nested const DefTileURLPatt = 'http://tile{0-4}.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1&ts=online_sd{lng}'; |
|
nested const OptionLng: record
Name, Descr: string;
Values: array[0..1] of TPropertyValue;
end =
(
Name: 'lng';
Descr: 'Map language';
Values: ( (Value: '_ar'; Descr: 'English'), (Value: ''; Descr: 'Russian'))
); |
Methods
constructor Create; override; |
|
class function Name: string; override; |
|
function GetTileURL(const Tile: TTile): string; override; |
|
function StorageID: string; override; |
Description
Fields
nested const DefTilesCopyright = '(c) 2GIS'; |
|
Default copyright text |
nested const DefTileURLPatt = 'http://tile{0-4}.maps.2gis.com/tiles?x={x}&y={y}&z={z}&v=1&ts=online_sd{lng}'; |
|
Default pattern of tile URL |
nested const OptionLng: record
Name, Descr: string;
Values: array[0..1] of TPropertyValue;
end =
(
Name: 'lng';
Descr: 'Map language';
Values: ( (Value: '_ar'; Descr: 'English'), (Value: ''; Descr: 'Russian'))
); |
|
"lng" option of the URL |
Methods
constructor Create; override; |
|
This item has no description. |
class function Name: string; override; |
|
This item has no description. Showing description inherited from TTilesProvider.Name. Function to return displayable provider name. Name could be used for selection in UI, file paths etc. There's no special limitations on the format of this string so when using it for something other than simple display, the value probably must be validated/preprocessed. The only recommendation is to keep the name short. |
function GetTileURL(const Tile: TTile): string; override; |
|
This item has no description. Showing description inherited from TTilesProvider.GetTileURL. Method to get URL of specified tile. Uses TileURLPatt |
function StorageID: string; override; |
|
This item has no description. Showing description inherited from TTilesProvider.StorageID. Function to return current provider's ID for storage. It could depend on current values of properties (f.ex., streets/satellite). There's no special limitations on the format of this string so when using it for storage, the value probably must be validated/preprocessed. The only recommendation is to keep the name short. By default returns result of Name method. |
Generated by PasDoc 0.16.0.