-
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
CZML and KML need the ability to pass query parameters #5408
Comments
I'd add geojson to this as well. A good use case is ArcGIS server, which can serve up conformant Geojson, but the API calls to build the queries are unwieldy in raw string form. |
Thanks @denverpierce! Good idea |
I didn't think GeoJSON would be necessary since there's only one url involved, which the developer specifies. You can use I'm not against adding it for GeoJSON for completeness, it will be trivial. |
Now that I understand the use case, I see what you're saying. They are closely related, but geojson doesn't have a burning need for that functionality, it'd just be a quality of life change. |
Random question, does the fix here only involve query parameters? Should we support systems that transmit authentication via added headers instead of query parameters? |
This is only for query parameters, yes. |
Headers are not generally a good solution for authentication that involves browser-retrieved resources. For example, Cesium uses the HTML image element for retrieving markers, image tiles, textures, etc.. but you can't assign headers when setting Of course if we ever had a good reason for adding a headers object, we could; it's just outside the scope of this issue. |
Isn't there limited support for reusing existing header auth via |
Good point in that the Authorization header, cookies, and certs would already be added in the case of the server being in the |
Thanks. Was mostly asking a hypothetical. I think we have an internal project here that normally uses headers, but can optionally use query parameters if I'm not mistaken. Feel free to close this if you're done with the implementation. Thanks again. |
@emackey KML is in progress and very close to done. |
CzmlDataSource
andKmlDataSource
have no way to specify additional parameters that need to be included in url requests. The most common use for this is query-based access tokens.Both classes'
load
function (and in CZML's case theprocess
function) should take an additionalquery
object, off of the options object. It would be a dictionary of strings that get converted to a query string viaobjectToQuery
and globbed onto all urls requests.The text was updated successfully, but these errors were encountered: