I need to add wms map in my project, and the url of wms server will be provided by users.
Are there any ways to know the type of server (wms or wmts) with the url proposed by users ? Or to know that the server supports tiles or not ?
I want to know this because in Openlayers3, there are two functions to getMap: ol.source.ImageWMS and ol.source.TileWMS. I think I need to know the type of server before calling the right function ol3.
No comments:
Post a Comment