HttpPyramid
Description
- Derived from
-
PixelPyramid abstract
- Extended by
-
BingMapsPyramid
GoogleMapsPyramid sealed
OpenStreetMapPyramid sealed
UrlPatternPyramid sealed
Abstract base class for IPixelPyramids that fetch tiles from a HTTP web server.
Public / Attributes
Http
The ISimpleHttp object that is used to make HTTP requests.
The default value is a SimpleHttp instance.
Solid
Is this pixel pyramid solid?
The IPyramidBase.HasTileData2 method of a solid pyramid will always return true
, and HTTP requests will not be performed for IPyramidBase.HasTileData2.
The default value is false
.
Protected / Methods
IsExistingTile
After the web request has succeeded, this method is called to determine if the response has delivered a valid tile image.
This default implementation just returns true
.
IsMissingTile
After a web request has failed because of some reason other than 404 - Not Found
, this method is called to determine if the response indicates a missing tile (no error reporting is necessary in this case).
RequestResult
This method is called for tile that has been requested.
The default implementation logs a warning messages for TileDataResult.Error. Subclasses may override this method in order to perform other logic, for example counting tile accesses to keep track of billing.