-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Documentation issues with 1.42 release #6205
Comments
I've found a more troubling issue that maybe I should open a new ticket for. It looks like the new Resource class treats both The combination of |
One thing to add to my point about the |
OK this just became a blocker for me. I had been using Maybe this should get its own top-level issue? |
CC @tfili (probably?) |
Thanks for reporting this @thw0rted. @mramato or @tfili can answer your questions related to the For your last 3 bullet points:
I'll fix these doc errors shortly. Thanks for pointing them out! |
Keep in mind that the purpose of |
Point taken @shunter , and honestly the |
@thw0rted How were you using |
@thw0rted Check out the
{
request: 'GetMap',
BBOX: ...,
width: ...,
height: ...
} and we end up with
|
re @hpinkos , I think in my Typescript definitions I'm going to remove the re @tfili , you are correct that I looked over the branch and it makes sense to me, but it's still missing two documentation fixes:
As for query params, you're basically implementing a version of URLSearchParams, right? Notably, that class treats the params as an array of key value pairs, because that data structure most closely reflects real-world usage of the So, you could keep storing the queryParams as a map, and sometimes have an array as the value for a certain key, and add functions to manipulate those values (append vs replace, maybe remove?), and hope that the order of your parameters never matters, and that's fine. I don't know much about the |
See PR #6211 for the hopefully final changes to fix the The two doc issues should have already been fixed yesterday in that branch. I've added
Unfortunately Cesium has never paid attention to the order of parameters, so changes would be needed in a bunch of places outside of this class, and I probably won't be able to get to it right now, since it hasn't been an issue thus far. A |
As far as I can tell, everything referenced in the original issue description has been fixed. If there are any small things we missed, please open a new issue for them. Thanks! |
I'm updating my Typescript typings (ref #5717 ) based on the docs and found a few minor issues.
Resource
class:retryOnError
public; that, or I'm not creative enough to think of when an API user would call itpost
claims to be able to take a "string or object" as its sole parameter but fails ifoptions.data
is not defined. This was likely copy/pasted from thefetch
static method, because it still says "calls fetch() on it" (not "calls post() on it")method
parameter on the options object, even though this param is not defined on the public API. I for one would like to be able to make an OPTIONS or HEAD call against a Resource, if I'm going to use the class anyway.load
doesn't list the ability to use aResource
as data but under the hood it's just making an anonymous instance and calling its load method (which can) -- it should have the exact same docs as the instance method. While you're at it, the instance method still lists aquery
param with no note about deprecation.GoogleEarthEnterpriseMapsProvider
can take a Resource as a constructor option (url
) because I seeResource.createIfNeeded(url + path)
-- I assume that "(Resource instance) plus (string)" is not what was intended here. Similarly, theget
for.url
just returnsthis._url
instead ofthis._resource.url
.ImageryProvider
implementations actually inherit from ImageryProvider. ImageryProvider has variousdefault{channel}
attributes that never appear to be used anywhere else?Plane.projectPointOntoPlane
method is missing a return type annotation (it's Cartesian3)showOnScreen
option to theCredit
constructor is incorrectly listed as a StringHope you don't mind me dumping everything in one place, but I wasn't sure how best to divide up into separate issues.
The text was updated successfully, but these errors were encountered: