-
Notifications
You must be signed in to change notification settings - Fork 359
Description
Both WMS and WMTS use "capabilities" xml files that parse the file and contain a lot of relevant information for construction and setup. But these XML files seem to be potentially a bit slow to load (perhaps it depends on the service?) and they make the code asynchronous so it would be valuable to be able set up both overlays with string / number literals as well as being able to use the parsed capabilities for convenience.
Currently WMTS requires capabilities and WMS (from #1302) only allows for creation via literals. The strategies should be harmonized - perhaps "capabilities" shouldn't be passed into the constructor but it can just be used to more conveniently create the option arguments.
One potentially difficult point is that WMTS "tile matrix sets" are required as-parsed because the layers are not necessarily reliably structured in a way that allows for generation. It's worth checking what other implementations do.
edit: we should also avoid pre-transforming the CRS values in the capability loaders and instead transform them in the plugins so users can pass in valid values from the formats.