-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added support for Bing Maps' AerialWithLabelsOnDemand imagery set, as… #41
Changes from all commits
407dd28
f0e3195
64cbe06
f2049ff
3d2dc9e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,37 @@ define([ | |
* | ||
* @type {String} | ||
* @constant | ||
* @deprecated See https://github.com/AnalyticalGraphicsInc/cesium/issues/7128. | ||
* Use `BingMapsStyle.AERIAL_WITH_LABELS_ON_DEMAND` instead | ||
*/ | ||
AERIAL_WITH_LABELS : 'AerialWithLabels', | ||
|
||
/** | ||
* Aerial imagery with a road overlay. | ||
* | ||
* @type {String} | ||
* @constant | ||
*/ | ||
AERIAL_WITH_LABELS_ON_DEMAND : 'AerialWithLabelsOnDemand', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's add the other new styles, too: https://docs.microsoft.com/en-us/bingmaps/rest-services/imagery/get-imagery-metadata There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are a couple still missing (unless there's some reason I'm not aware of that they can't be used): |
||
|
||
/** | ||
* Roads without additional imagery. | ||
* | ||
* @type {String} | ||
* @constant | ||
* @deprecated See https://github.com/AnalyticalGraphicsInc/cesium/issues/7128. | ||
* Use `BingMapsStyle.ROAD_ON_DEMAND` instead | ||
*/ | ||
ROAD : 'Road', | ||
|
||
/** | ||
* Roads without additional imagery. | ||
* | ||
* @type {String} | ||
* @constant | ||
*/ | ||
ROAD_ON_DEMAND : 'RoadOnDemand', | ||
|
||
/** | ||
* A dark version of the road maps. | ||
* | ||
|
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; | ||
}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're not handling the error, you need to re-throw it. Otherwise it acts like a successful result yielding
undefined
.