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

tilewms in source for layer #28

Open
vidhyadhari opened this issue May 29, 2017 · 1 comment
Open

tilewms in source for layer #28

vidhyadhari opened this issue May 29, 2017 · 1 comment

Comments

@vidhyadhari
Copy link

I wanted to use tilewms to export map from wms servers, but couldn't find a way to do it using this wrapper. Can you please point me to an example for it.

Here is the code which I am looking to rewrite in reactjs:

new ol.layer.Tile({
            source: new ol.source.TileWMS({
                url: wmsurl,
                params: wmsparams
            }),
            isBaseLayer:isBaseLayer,
            opacity: opacity
})

I have tried using:
<layer.Tile source={new ol.source.TileWMS({url:wmsurl})/>

But it gives me error. Also I couldn't pass any additional parameters to it.

@FadiAboMsalam
Copy link

@vidhyadhari did you found solution to this , am facing same error ?

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

2 participants