Skip to content
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

Howto specify url with query parameters? #1

Open
ghost opened this issue Oct 9, 2023 · 3 comments
Open

Howto specify url with query parameters? #1

ghost opened this issue Oct 9, 2023 · 3 comments

Comments

@ghost
Copy link

ghost commented Oct 9, 2023

Hi,
I need to add (CORS-specific) query parameters to my OGC server urls. How can this be done?
If I add them to the options url I get wrong resulting urls (/collection simply added to the end of string...).
Thomas

@mkeller3
Copy link
Owner

Can you provide an example url?

@ghost
Copy link
Author

ghost commented Oct 10, 2023

https://domain.de/maps/55559999-0000-0000-1111-724AEFBE79ED/test?apikey=M7QN7BmFew9SGyOvFz_dnogBzVe8ztVih9Afvac83nM1
This is a (not working) sample base url that shows the scheme.

@ghost
Copy link
Author

ghost commented Oct 10, 2023

I just tried:

            let ml_ofc = new OGCFeatureCollection(id, ml_map, {
              url: baseUrl,
              collectionId: id,
              limit: 99999,
              apiKey: apiKey
            });

and that worked.
Maybe you can clarify in the description that you can add options that are passed through to the query string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant