forked from CesiumGS/cesium
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from TerriaJS/bing-aerial-with-labels-on-demand
added support for Bing Maps' AerialWithLabelsOnDemand imagery set, as…
- Loading branch information
Showing
4 changed files
with
106 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
define([ | ||
'../Core/defined', | ||
'../Core/defaultValue' | ||
], function( | ||
defined, | ||
defaultValue) { | ||
|
||
/** | ||
* A policy for discarding tile images that contain no data (and so aren't actually images). | ||
* | ||
* @alias DiscardEmptyTileImagePolicy | ||
* @constructor | ||
* | ||
* @see DiscardMissingTileImagePolicy | ||
*/ | ||
function DiscardEmptyTileImagePolicy(options) { | ||
} | ||
|
||
/** | ||
* Determines if the discard policy is ready to process images. | ||
* @returns {Boolean} True if the discard policy is ready to process images; otherwise, false. | ||
*/ | ||
DiscardEmptyTileImagePolicy.prototype.isReady = function() { | ||
return true; | ||
}; | ||
|
||
/** | ||
* Given a tile image, decide whether to discard that image. | ||
* | ||
* @param {Image} image An image to test. | ||
* @returns {Boolean} True if the image should be discarded; otherwise, false. | ||
*/ | ||
DiscardEmptyTileImagePolicy.prototype.shouldDiscardImage = function(image) { | ||
return DiscardEmptyTileImagePolicy.EMPTY_IMAGE === image; | ||
}; | ||
|
||
/** | ||
* Default value for representing an empty image. | ||
*/ | ||
DiscardEmptyTileImagePolicy.EMPTY_IMAGE = {}; | ||
|
||
return DiscardEmptyTileImagePolicy; | ||
}); |