OK, I had misunderstood. It's OK for me to merge, but if you have a couple of hours more, I think there are a couple of weird assumptions made there, and some hardcoded stuff which ought to be handled differently.
I'm especially bothered by the attribute name "swisstopo_type" which look very ad hoc, and not generic enough. I don't know where this attribute is used but:
* it should be renamed to somethingelse_type
* and the information about the available resolutions should be conveyed directly in another place and not hardcoded in the javascript code.
OK, I had misunderstood. It's OK for me to merge, but if you have a couple of hours more, I think there are a couple of weird assumptions made there, and some hardcoded stuff which ought to be handled differently.
I'm especially bothered by the attribute name "swisstopo_type" which look very ad hoc, and not generic enough. I don't know where this attribute is used but:
* it should be renamed to somethingelse_type
* and the information about the available resolutions should be conveyed directly in another place and not hardcoded in the javascript code.