(
self,
url: str,
layers: str,
styles: str = "",
fmt: str = "image/jpeg",
transparent: bool = False,
version: str = "1.1.1",
attr: str = "",
name: Optional[str] = None,
overlay: bool = True,
control: bool = True,
show: bool = True,
**kwargs,
)
| 204 | ) # noqa |
| 205 | |
| 206 | def __init__( |
| 207 | self, |
| 208 | url: str, |
| 209 | layers: str, |
| 210 | styles: str = "", |
| 211 | fmt: str = "image/jpeg", |
| 212 | transparent: bool = False, |
| 213 | version: str = "1.1.1", |
| 214 | attr: str = "", |
| 215 | name: Optional[str] = None, |
| 216 | overlay: bool = True, |
| 217 | control: bool = True, |
| 218 | show: bool = True, |
| 219 | **kwargs, |
| 220 | ): |
| 221 | super().__init__(name=name, overlay=overlay, control=control, show=show) |
| 222 | self.url = url |
| 223 | kwargs["format"] = fmt |
| 224 | cql_filter = kwargs.pop("cql_filter", None) |
| 225 | self.options = parse_options( |
| 226 | layers=layers, |
| 227 | styles=styles, |
| 228 | transparent=transparent, |
| 229 | version=version, |
| 230 | attribution=attr, |
| 231 | **kwargs, |
| 232 | ) |
| 233 | # special parameter that shouldn't be camelized |
| 234 | if cql_filter: |
| 235 | self.options["cql_filter"] = cql_filter |
| 236 | |
| 237 | |
| 238 | class ImageOverlay(Layer): |
nothing calls this directly
no test coverage detected