rlayers icon indicating copy to clipboard operation
rlayers copied to clipboard

format problem in WMS WMTS

Open thanatas opened this issue 2 years ago • 4 comments

I think I got a bug;

at version @1.5.3 WMS and WMTS layers do not accept format as parameter .

In the code (RLayerWMS and RLayerWMTS) createSource() -> optionsFromCapabilities, only layer parameter is passed. Adding, format is a option parameter.

                const caps = this.parser.read(text);
                this.options = optionsFromCapabilities(caps, {
                    layer: this.props.layer
                });

In geoserver, if you enable multiple tile caching types, optionsFromCapabilities function select first one from server which is the type of json and it is not compatible with wms and wmts.

Could you check that OR WHAT am I doing wrong.

Thanks.

thanatas avatar Aug 14 '23 13:08 thanatas

Yes, I confirm, if you add it, I will merge the PR

mmomtchev avatar Aug 16 '23 15:08 mmomtchev

Hi again, I tried to fix and tested on local.

Unfortunately, without changing the package.json build scripts I could not build the project. If I may so, I will send a merge request.

I got the following error; I could not find what is the problem.

image

I am using windows 11, I tried nodejs 18,19,20. What is required to do so?

Thanks

thanatas avatar Aug 21 '23 10:08 thanatas

This is a bundler problem, what makes you think that the problem is not what it says - that iife is not supported as an output format for code-splitting builds?

mmomtchev avatar Aug 23 '23 20:08 mmomtchev

This is a problem when rebuilding the library for publishing on Windows, you can safely ignore it

mmomtchev avatar Sep 02 '23 09:09 mmomtchev