@josephinumresearch/swagger-ui-map-plugin 1.0.2 → 1.0.4-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,9 @@
1
1
  # SwaggerUI Map Plugin
2
+
3
+ [![Node.js Package](https://github.com/Josephinum-Research/swagger-ui-map-plugin/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Josephinum-Research/swagger-ui-map-plugin/actions/workflows/npm-publish.yml)
4
+ [![Release](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2FJosephinum-Research%2Fswagger-ui-map-plugin%2Freleases&query=%24%5B0%5D.tag_name&style=flat&label=Release&color=blue)](https://github.com/Josephinum-Research/swagger-ui-map-plugin/releases)
5
+ [![Example](https://img.shields.io/badge/Example-orange)](https://josephinum-research.github.io/swagger-ui-map-plugin/example.html)
6
+
2
7
  SwaggerUI plugin to show GeoJson responses on a map
3
8
 
4
9
  <img src="./example.png" alt="example" width="300">
@@ -8,7 +13,7 @@ SwaggerUI plugin to show GeoJson responses on a map
8
13
 
9
14
  1. Add `Openlayers` and this plugin to your swaggerui index file
10
15
  ```html
11
- <script src="https://cdn.jsdelivr.net/npm/ol@v10.1.0/dist/ol.js" crossorigin></script>
16
+ <script src="https://cdn.jsdelivr.net/npm/ol@v10.7.0/dist/ol.js" crossorigin></script>
12
17
  <script src="https://cdn.jsdelivr.net/npm/@josephinumresearch/swagger-ui-map-plugin/dist/swagger-ui-map-plugin.js" crossorigin></script>
13
18
  ```
14
19
  2. Register `SwaggerUiMapPlugin()`
@@ -26,6 +31,4 @@ SwaggerUIBundle({
26
31
 
27
32
  ## Dev
28
33
 
29
- Run `npm install` and then `npm run dev`.
30
-
31
- For deployment, build the `dist/swagger-ui-map-plugin.js` with `npm run build` and run `npm publish --access public` to publish.
34
+ Run `npm install` and `npm run dev`.
@@ -1 +1 @@
1
- "use strict";(this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[]).push([[425],{425:function(e,t,r){r.r(t);var o=r(734),i=r(339),s=r.n(i),a=r(976),l=r(528);t.default=(e,t,r)=>{const i=(new o.GeoJSON).readFeatures(JSON.parse(t));i.forEach((function(e){e.getGeometry().transform(r.sourceProjection||"EPSG:4326","EPSG:3857")}));const n=new(s())({features:i}),u=new a.VectorImage({source:n,style:e=>new l.Style({stroke:new l.Stroke({color:e.getProperties().stroke||r.defaultStrokeColor,width:e.getProperties().strokeWidth||r.defaultStrokeWidth}),fill:new l.Fill({color:e.getProperties().fill||r.defaultFillColor})})});e.addLayer(u),setTimeout((()=>{e.getView().fit(n.getExtent())}),100)}}}]);
1
+ "use strict";(this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[]).push([[425],{425:function(e,t,r){var o=r(734),i=r(339),s=r.n(i),a=r(976),l=r(528);t.default=(e,t,r)=>{const i=(new o.GeoJSON).readFeatures(JSON.parse(t));i.forEach((function(e){e.getGeometry().transform(r.sourceProjection||"EPSG:4326","EPSG:3857")}));const n=new(s())({features:i}),u=new a.VectorImage({source:n,style:e=>new l.Style({stroke:new l.Stroke({color:e.getProperties().stroke||r.defaultStrokeColor,width:e.getProperties().strokeWidth||r.defaultStrokeWidth}),fill:new l.Fill({color:e.getProperties().fill||r.defaultFillColor})})});e.addLayer(u),setTimeout((()=>{e.getView().fit(n.getExtent())}),100)}}}]);
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["swagger-ui-map-plugin"]=e():t["swagger-ui-map-plugin"]=e()}(this,(function(){return function(){var t,e,r={182:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",u="[object Function]",c="[object Object]",a=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[i]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[u]=f["[object Map]"]=f["[object Number]"]=f[c]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var l,p,d,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=h||v||Function("return this")(),g=e&&!e.nodeType&&e,_=g&&t&&!t.nodeType&&t,b=_&&_.exports===g,m=b&&h.process,j=function(){try{return _&&_.require&&_.require("util").types||m&&m.binding&&m.binding("util")}catch(t){}}(),w=j&&j.isTypedArray,O=Array.prototype,A=Function.prototype,S=Object.prototype,k=y["__core-js_shared__"],x=A.toString,z=S.hasOwnProperty,E=(l=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",P=S.toString,T=x.call(Object),C=RegExp("^"+x.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=b?y.Buffer:void 0,M=y.Symbol,U=y.Uint8Array,$=(F&&F.allocUnsafe,p=Object.getPrototypeOf,d=Object,function(t){return p(d(t))}),N=Object.create,B=S.propertyIsEnumerable,I=O.splice,R=M?M.toStringTag:void 0,D=function(){try{var t=ct(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=F?F.isBuffer:void 0,L=Math.max,q=Date.now,J=ct(y,"Map"),V=ct(Object,"create"),H=function(){function t(){}return function(e){if(!bt(e))return{};if(N)return N(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function W(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function K(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function X(t){var e=this.__data__=new K(t);this.size=e.size}function Y(t,e,r){(void 0!==r&&!pt(t[e],r)||void 0===r&&!(e in t))&&et(t,e,r)}function Z(t,e,r){var n=t[e];z.call(t,e)&&pt(n,r)&&(void 0!==r||e in t)||et(t,e,r)}function tt(t,e){for(var r=t.length;r--;)if(pt(t[r][0],e))return r;return-1}function et(t,e,r){"__proto__"==e&&D?D(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}W.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},W.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},W.prototype.get=function(t){var e=this.__data__;if(V){var r=e[t];return r===n?void 0:r}return z.call(e,t)?e[t]:void 0},W.prototype.has=function(t){var e=this.__data__;return V?void 0!==e[t]:z.call(e,t)},W.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=V&&void 0===e?n:e,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(t){var e=this.__data__,r=tt(e,t);return!(r<0||(r==e.length-1?e.pop():I.call(e,r,1),--this.size,0))},K.prototype.get=function(t){var e=this.__data__,r=tt(e,t);return r<0?void 0:e[r][1]},K.prototype.has=function(t){return tt(this.__data__,t)>-1},K.prototype.set=function(t,e){var r=this.__data__,n=tt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new W,map:new(J||K),string:new W}},Q.prototype.delete=function(t){var e=ut(this,t).delete(t);return this.size-=e?1:0,e},Q.prototype.get=function(t){return ut(this,t).get(t)},Q.prototype.has=function(t){return ut(this,t).has(t)},Q.prototype.set=function(t,e){var r=ut(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},X.prototype.clear=function(){this.__data__=new K,this.size=0},X.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},X.prototype.get=function(t){return this.__data__.get(t)},X.prototype.has=function(t){return this.__data__.has(t)},X.prototype.set=function(t,e){var r=this.__data__;if(r instanceof K){var n=r.__data__;if(!J||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Q(n)}return r.set(t,e),this.size=r.size,this};function rt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var e=z.call(t,R),r=t[R];try{t[R]=void 0;var n=!0}catch(t){}var o=P.call(t);return n&&(e?t[R]=r:delete t[R]),o}(t):function(t){return P.call(t)}(t)}function nt(t){return mt(t)&&rt(t)==i}function ot(t,e,r,n,o){t!==e&&function(t,e,r){for(var n=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[++n];if(!1===e(o[c],c,o))break}}(e,(function(i,u){if(o||(o=new X),bt(i))!function(t,e,r,n,o,i,u){var a=ft(t,r),s=ft(e,r),f=u.get(s);if(f)Y(t,r,f);else{var l,p,d,h,v,y=i?i(a,s,r+"",t,e,u):void 0,g=void 0===y;if(g){var _=ht(s),b=!_&&yt(s),m=!_&&!b&&jt(s);y=s,_||b||m?ht(a)?y=a:mt(v=a)&&vt(v)?y=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(a):b?(g=!1,y=function(t){return t.slice()}(s)):m?(g=!1,h=new(d=(l=s).buffer).constructor(d.byteLength),new U(h).set(new U(d)),p=h,y=new l.constructor(p,l.byteOffset,l.length)):y=[]:function(t){if(!mt(t)||rt(t)!=c)return!1;var e=$(t);if(null===e)return!0;var r=z.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&x.call(r)==T}(s)||dt(s)?(y=a,dt(a)?y=function(t){return function(t,e,r){var n=!r;r||(r={});for(var o=-1,i=e.length;++o<i;){var u=e[o],c=void 0;void 0===c&&(c=t[u]),n?et(r,u,c):Z(r,u,c)}return r}(t,wt(t))}(a):bt(a)&&!gt(a)||(y=function(t){return"function"!=typeof t.constructor||st(t)?{}:H($(t))}(s))):g=!1}g&&(u.set(s,y),o(y,s,n,i,u),u.delete(s)),Y(t,r,y)}}(t,e,u,r,ot,n,o);else{var a=n?n(ft(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),Y(t,u,a)}}),wt)}var it=D?function(t,e){return D(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:St;function ut(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function ct(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!bt(t)||function(t){return!!E&&E in t}(t))&&(gt(t)?C:a).test(function(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}function at(t,e){var r=typeof t;return!!(e=null==e?o:e)&&("number"==r||"symbol"!=r&&s.test(t))&&t>-1&&t%1==0&&t<e}function st(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||S)}function ft(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var lt=function(t){var e=0,r=0;return function(){var n=q(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(it);function pt(t,e){return t===e||t!=t&&e!=e}var dt=nt(function(){return arguments}())?nt:function(t){return mt(t)&&z.call(t,"callee")&&!B.call(t,"callee")},ht=Array.isArray;function vt(t){return null!=t&&_t(t.length)&&!gt(t)}var yt=G||function(){return!1};function gt(t){if(!bt(t))return!1;var e=rt(t);return e==u||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function _t(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function bt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function mt(t){return null!=t&&"object"==typeof t}var jt=w?function(t){return function(e){return t(e)}}(w):function(t){return mt(t)&&_t(t.length)&&!!f[rt(t)]};function wt(t){return vt(t)?function(t,e){var r=ht(t),n=!r&&dt(t),o=!r&&!n&&yt(t),i=!r&&!n&&!o&&jt(t),u=r||n||o||i,c=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=c.length;for(var s in t)!e&&!z.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||at(s,a))||c.push(s);return c}(t,!0):function(t){if(!bt(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=st(t),r=[];for(var n in t)("constructor"!=n||!e&&z.call(t,n))&&r.push(n);return r}(t)}var Ot,At=(Ot=function(t,e,r){ot(t,e,r)},function(t,e){return lt(function(t,e,r){return e=L(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=L(n.length-e,0),u=Array(i);++o<i;)u[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(u),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,c)}}(t,e,St),t+"")}((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=Ot.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!bt(r))return!1;var n=typeof e;return!!("number"==n?vt(r)&&at(e,r.length):"string"==n&&e in r)&&pt(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var u=e[r];u&&Ot(t,u,r)}return t})));function St(t){return t}t.exports=At},489:function(t,e,r){var n={"./GeoJson":[425,425],"./GeoJson.js":[425,425]};function o(t){if(!r.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],o=e[0];return r.e(e[1]).then((function(){return r(o)}))}o.keys=function(){return Object.keys(n)},o.id=489,t.exports=o},734:function(t){"use strict";t.exports=window.ol.format},976:function(t){"use strict";t.exports=window.ol.layer},339:function(t){"use strict";t.exports=window.ol.source.Vector},528:function(t){"use strict";t.exports=window.ol.style}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,o),i.loaded=!0,i.exports}o.m=r,o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.f={},o.e=function(t){return Promise.all(Object.keys(o.f).reduce((function(e,r){return o.f[r](t,e),e}),[]))},o.u=function(t){return t+".swagger-ui-map-plugin.js"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="swagger-ui-map-plugin:",o.l=function(r,n,i,u){if(t[r])t[r].push(n);else{var c,a;if(void 0!==i)for(var s=document.getElementsByTagName("script"),f=0;f<s.length;f++){var l=s[f];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==e+i){c=l;break}}c||(a=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.setAttribute("data-webpack",e+i),c.src=r),t[r]=[n];var p=function(e,n){c.onerror=c.onload=null,clearTimeout(d);var o=t[r];if(delete t[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(t){return t(n)})),e)return e(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),a&&document.head.appendChild(c)}},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t}(),function(){var t={792:0};o.f.j=function(e,r){var n=o.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise((function(r,o){n=t[e]=[r,o]}));r.push(n[2]=i);var u=o.p+o.u(e),c=new Error;o.l(u,(function(r){if(o.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+u+")",c.name="ChunkLoadError",c.type=i,c.request=u,n[1](c)}}),"chunk-"+e,e)}};var e=function(e,r){var n,i,u=r[0],c=r[1],a=r[2],s=0;if(u.some((function(e){return 0!==t[e]}))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);a&&a(o)}for(e&&e(r);s<u.length;s++)i=u[s],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0},r=this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();var i={};return function(){"use strict";o.r(i),o.d(i,{default:function(){return l}});var t=window.ol,e=window.ol.source,r=window.ol.layer.Tile,n=o.n(r),u=r=>(i,u)=>c=>{const a=u.React,s=Object.values(r.renderer).filter((t=>t.activationFnc(c))),f=s.length>0,[l,p]=a.useState(!1),d=a.createRef();return f&&a.useEffect((()=>{p(!0);const r=new(n())({source:new e.OSM});console.log(d.current);const i=new t.Map({layers:[r],target:d.current,view:new t.View({center:[0,0],zoom:2})});return Promise.all(s.map((t=>o(489)("./"+t.format).then((e=>e.default(i,c.content,t.config)))))).catch((t=>{console.error(t),i.setTarget(null),p(!1)})),()=>{i.setTarget(null),p(!1)}}),[c.content]),a.createElement("div",null,f&&a.createElement("div",{style:{display:l?"block":"none",height:r.mapHeight,marginBottom:"10px"}},a.createElement("div",{ref:d,style:{width:"100%",height:"100%"}})),a.createElement(i,c))};class c{mapHeight="400px";renderer={geojson:{activationFnc:t=>["application/geo+json"].includes(t.contentType),format:"GeoJson",config:{sourceProjection:"EPSG:4326",defaultStrokeColor:"black",defaultStrokeWidth:1,defaultFillColor:"black"}}}}var a=o(182),s=o.n(a);const f=(t={})=>()=>(t=s()(new c,t),{wrapComponents:{responseBody:u(t)}});window.SwaggerUiMapPlugin=f;var l=f}(),i}()}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["swagger-ui-map-plugin"]=e():t["swagger-ui-map-plugin"]=e()}(this,(function(){return function(){var t,e,r={182:function(t,e,r){t=r.nmd(t);var n="__lodash_hash_undefined__",o=9007199254740991,i="[object Arguments]",u="[object Function]",c="[object Object]",a=/^\[object .+?Constructor\]$/,s=/^(?:0|[1-9]\d*)$/,f={};f["[object Float32Array]"]=f["[object Float64Array]"]=f["[object Int8Array]"]=f["[object Int16Array]"]=f["[object Int32Array]"]=f["[object Uint8Array]"]=f["[object Uint8ClampedArray]"]=f["[object Uint16Array]"]=f["[object Uint32Array]"]=!0,f[i]=f["[object Array]"]=f["[object ArrayBuffer]"]=f["[object Boolean]"]=f["[object DataView]"]=f["[object Date]"]=f["[object Error]"]=f[u]=f["[object Map]"]=f["[object Number]"]=f[c]=f["[object RegExp]"]=f["[object Set]"]=f["[object String]"]=f["[object WeakMap]"]=!1;var l,p,d,h="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,v="object"==typeof self&&self&&self.Object===Object&&self,y=h||v||Function("return this")(),g=e&&!e.nodeType&&e,_=g&&t&&!t.nodeType&&t,b=_&&_.exports===g,m=b&&h.process,j=function(){try{return _&&_.require&&_.require("util").types||m&&m.binding&&m.binding("util")}catch(t){}}(),w=j&&j.isTypedArray,O=Array.prototype,A=Function.prototype,S=Object.prototype,k=y["__core-js_shared__"],x=A.toString,z=S.hasOwnProperty,E=(l=/[^.]+$/.exec(k&&k.keys&&k.keys.IE_PROTO||""))?"Symbol(src)_1."+l:"",P=S.toString,T=x.call(Object),C=RegExp("^"+x.call(z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F=b?y.Buffer:void 0,M=y.Symbol,U=y.Uint8Array,$=(F&&F.allocUnsafe,p=Object.getPrototypeOf,d=Object,function(t){return p(d(t))}),N=Object.create,B=S.propertyIsEnumerable,I=O.splice,R=M?M.toStringTag:void 0,D=function(){try{var t=ct(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),G=F?F.isBuffer:void 0,L=Math.max,q=Date.now,J=ct(y,"Map"),V=ct(Object,"create"),H=function(){function t(){}return function(e){if(!bt(e))return{};if(N)return N(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function W(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function K(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function Q(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function X(t){var e=this.__data__=new K(t);this.size=e.size}function Y(t,e,r){(void 0!==r&&!pt(t[e],r)||void 0===r&&!(e in t))&&et(t,e,r)}function Z(t,e,r){var n=t[e];z.call(t,e)&&pt(n,r)&&(void 0!==r||e in t)||et(t,e,r)}function tt(t,e){for(var r=t.length;r--;)if(pt(t[r][0],e))return r;return-1}function et(t,e,r){"__proto__"==e&&D?D(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}W.prototype.clear=function(){this.__data__=V?V(null):{},this.size=0},W.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},W.prototype.get=function(t){var e=this.__data__;if(V){var r=e[t];return r===n?void 0:r}return z.call(e,t)?e[t]:void 0},W.prototype.has=function(t){var e=this.__data__;return V?void 0!==e[t]:z.call(e,t)},W.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=V&&void 0===e?n:e,this},K.prototype.clear=function(){this.__data__=[],this.size=0},K.prototype.delete=function(t){var e=this.__data__,r=tt(e,t);return!(r<0||(r==e.length-1?e.pop():I.call(e,r,1),--this.size,0))},K.prototype.get=function(t){var e=this.__data__,r=tt(e,t);return r<0?void 0:e[r][1]},K.prototype.has=function(t){return tt(this.__data__,t)>-1},K.prototype.set=function(t,e){var r=this.__data__,n=tt(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this},Q.prototype.clear=function(){this.size=0,this.__data__={hash:new W,map:new(J||K),string:new W}},Q.prototype.delete=function(t){var e=ut(this,t).delete(t);return this.size-=e?1:0,e},Q.prototype.get=function(t){return ut(this,t).get(t)},Q.prototype.has=function(t){return ut(this,t).has(t)},Q.prototype.set=function(t,e){var r=ut(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this},X.prototype.clear=function(){this.__data__=new K,this.size=0},X.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},X.prototype.get=function(t){return this.__data__.get(t)},X.prototype.has=function(t){return this.__data__.has(t)},X.prototype.set=function(t,e){var r=this.__data__;if(r instanceof K){var n=r.__data__;if(!J||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Q(n)}return r.set(t,e),this.size=r.size,this};function rt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":R&&R in Object(t)?function(t){var e=z.call(t,R),r=t[R];try{t[R]=void 0;var n=!0}catch(t){}var o=P.call(t);return n&&(e?t[R]=r:delete t[R]),o}(t):function(t){return P.call(t)}(t)}function nt(t){return mt(t)&&rt(t)==i}function ot(t,e,r,n,o){t!==e&&function(t,e,r){for(var n=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[++n];if(!1===e(o[c],c,o))break}}(e,(function(i,u){if(o||(o=new X),bt(i))!function(t,e,r,n,o,i,u){var a=ft(t,r),s=ft(e,r),f=u.get(s);if(f)Y(t,r,f);else{var l,p,d,h,v,y=i?i(a,s,r+"",t,e,u):void 0,g=void 0===y;if(g){var _=ht(s),b=!_&&yt(s),m=!_&&!b&&jt(s);y=s,_||b||m?ht(a)?y=a:mt(v=a)&&vt(v)?y=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}(a):b?(g=!1,y=function(t){return t.slice()}(s)):m?(g=!1,h=new(d=(l=s).buffer).constructor(d.byteLength),new U(h).set(new U(d)),p=h,y=new l.constructor(p,l.byteOffset,l.length)):y=[]:function(t){if(!mt(t)||rt(t)!=c)return!1;var e=$(t);if(null===e)return!0;var r=z.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&x.call(r)==T}(s)||dt(s)?(y=a,dt(a)?y=function(t){return function(t,e,r){var n=!r;r||(r={});for(var o=-1,i=e.length;++o<i;){var u=e[o],c=void 0;void 0===c&&(c=t[u]),n?et(r,u,c):Z(r,u,c)}return r}(t,wt(t))}(a):bt(a)&&!gt(a)||(y=function(t){return"function"!=typeof t.constructor||st(t)?{}:H($(t))}(s))):g=!1}g&&(u.set(s,y),o(y,s,n,i,u),u.delete(s)),Y(t,r,y)}}(t,e,u,r,ot,n,o);else{var a=n?n(ft(t,u),i,u+"",t,e,o):void 0;void 0===a&&(a=i),Y(t,u,a)}}),wt)}var it=D?function(t,e){return D(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:St;function ut(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function ct(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return function(t){return!(!bt(t)||function(t){return!!E&&E in t}(t))&&(gt(t)?C:a).test(function(t){if(null!=t){try{return x.call(t)}catch(t){}try{return t+""}catch(t){}}return""}(t))}(r)?r:void 0}function at(t,e){var r=typeof t;return!!(e=null==e?o:e)&&("number"==r||"symbol"!=r&&s.test(t))&&t>-1&&t%1==0&&t<e}function st(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||S)}function ft(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var lt=function(t){var e=0,r=0;return function(){var n=q(),o=16-(n-r);if(r=n,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(it);function pt(t,e){return t===e||t!=t&&e!=e}var dt=nt(function(){return arguments}())?nt:function(t){return mt(t)&&z.call(t,"callee")&&!B.call(t,"callee")},ht=Array.isArray;function vt(t){return null!=t&&_t(t.length)&&!gt(t)}var yt=G||function(){return!1};function gt(t){if(!bt(t))return!1;var e=rt(t);return e==u||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}function _t(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=o}function bt(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function mt(t){return null!=t&&"object"==typeof t}var jt=w?function(t){return function(e){return t(e)}}(w):function(t){return mt(t)&&_t(t.length)&&!!f[rt(t)]};function wt(t){return vt(t)?function(t,e){var r=ht(t),n=!r&&dt(t),o=!r&&!n&&yt(t),i=!r&&!n&&!o&&jt(t),u=r||n||o||i,c=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=c.length;for(var s in t)!e&&!z.call(t,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||at(s,a))||c.push(s);return c}(t,!0):function(t){if(!bt(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=st(t),r=[];for(var n in t)("constructor"!=n||!e&&z.call(t,n))&&r.push(n);return r}(t)}var Ot,At=(Ot=function(t,e,r){ot(t,e,r)},function(t,e){return lt(function(t,e,r){return e=L(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=L(n.length-e,0),u=Array(i);++o<i;)u[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(u),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,c)}}(t,e,St),t+"")}((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=Ot.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!bt(r))return!1;var n=typeof e;return!!("number"==n?vt(r)&&at(e,r.length):"string"==n&&e in r)&&pt(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var u=e[r];u&&Ot(t,u,r)}return t})));function St(t){return t}t.exports=At},339:function(t){"use strict";t.exports=window.ol.source.Vector},460:function(t,e,r){var n={"./GeoJson":[425,425],"./GeoJson.js":[425,425]};function o(t){if(!r.o(n,t))return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],o=e[0];return r.e(e[1]).then((function(){return r(o)}))}o.keys=function(){return Object.keys(n)},o.id=460,t.exports=o},528:function(t){"use strict";t.exports=window.ol.style},734:function(t){"use strict";t.exports=window.ol.format},976:function(t){"use strict";t.exports=window.ol.layer}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var i=n[t]={id:t,loaded:!1,exports:{}};return r[t](i,i.exports,o),i.loaded=!0,i.exports}o.m=r,o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,{a:e}),e},o.d=function(t,e){for(var r in e)o.o(e,r)&&!o.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},o.f={},o.e=function(t){return Promise.all(Object.keys(o.f).reduce((function(e,r){return o.f[r](t,e),e}),[]))},o.u=function(t){return t+".swagger-ui-map-plugin.js"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t={},e="swagger-ui-map-plugin:",o.l=function(r,n,i,u){if(t[r])t[r].push(n);else{var c,a;if(void 0!==i)for(var s=document.getElementsByTagName("script"),f=0;f<s.length;f++){var l=s[f];if(l.getAttribute("src")==r||l.getAttribute("data-webpack")==e+i){c=l;break}}c||(a=!0,(c=document.createElement("script")).charset="utf-8",o.nc&&c.setAttribute("nonce",o.nc),c.setAttribute("data-webpack",e+i),c.src=r),t[r]=[n];var p=function(e,n){c.onerror=c.onload=null,clearTimeout(d);var o=t[r];if(delete t[r],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((function(t){return t(n)})),e)return e(n)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),a&&document.head.appendChild(c)}},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=r[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t}(),function(){var t={792:0};o.f.j=function(e,r){var n=o.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise((function(r,o){n=t[e]=[r,o]}));r.push(n[2]=i);var u=o.p+o.u(e),c=new Error;o.l(u,(function(r){if(o.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),u=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+i+": "+u+")",c.name="ChunkLoadError",c.type=i,c.request=u,n[1](c)}}),"chunk-"+e,e)}};var e=function(e,r){var n,i,u=r[0],c=r[1],a=r[2],s=0;if(u.some((function(e){return 0!==t[e]}))){for(n in c)o.o(c,n)&&(o.m[n]=c[n]);a&&a(o)}for(e&&e(r);s<u.length;s++)i=u[s],o.o(t,i)&&t[i]&&t[i][0](),t[i]=0},r=this.webpackChunkswagger_ui_map_plugin=this.webpackChunkswagger_ui_map_plugin||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();var i={};return function(){"use strict";o.r(i),o.d(i,{default:function(){return l}});var t=window.ol,e=window.ol.source,r=window.ol.layer.Tile,n=o.n(r),u=r=>(i,u)=>c=>{const a=u.React,s=Object.values(r.renderer).filter((t=>t.activationFnc(c))),f=s.length>0,[l,p]=a.useState(!1),d=a.createRef();return a.useEffect((()=>{if(!f)return void p(!1);p(!0);const r=new(n())({source:new e.OSM});console.log(d.current);const i=new t.Map({layers:[r],target:d.current,view:new t.View({center:[0,0],zoom:2})});return Promise.all(s.map((t=>o(460)("./"+t.format).then((e=>e.default(i,c.content,t.config)))))).catch((t=>{console.error(t),i.setTarget(null),p(!1)})),()=>{i.setTarget(null),p(!1)}}),[c.content]),a.createElement("div",null,f&&a.createElement("div",{style:{display:l?"block":"none",height:r.mapHeight,marginBottom:"10px"}},a.createElement("div",{ref:d,style:{width:"100%",height:"100%"}})),a.createElement(i,c))};class c{mapHeight="400px";renderer={geojson:{activationFnc:t=>["application/geo+json"].includes(t.contentType),format:"GeoJson",config:{sourceProjection:"EPSG:4326",defaultStrokeColor:"black",defaultStrokeWidth:1,defaultFillColor:"black"}}}}var a=o(182),s=o.n(a);const f=(t={})=>()=>(t=s()(new c,t),{wrapComponents:{responseBody:u(t)}});window.SwaggerUiMapPlugin=f;var l=f}(),i}()}));
package/example.html ADDED
@@ -0,0 +1,38 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
6
+ <meta name="description" content="SwaggerUI" />
7
+ <title>SwaggerUI</title>
8
+ <link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.32.0/swagger-ui.css" />
9
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v10.7.0/ol.css">
10
+ </head>
11
+ <body>
12
+ <div id="swagger-ui"></div>
13
+ <script src="https://cdn.jsdelivr.net/npm/ol@v10.7.0/dist/ol.js" crossorigin></script>
14
+ <script src="https://unpkg.com/swagger-ui-dist@5.32.0/swagger-ui-bundle.js" crossorigin></script>
15
+ <script src="https://cdn.jsdelivr.net/npm/@josephinumresearch/swagger-ui-map-plugin/dist/swagger-ui-map-plugin.js" crossorigin></script>
16
+ <script>
17
+ window.onload = () => {
18
+ window.ui = SwaggerUIBundle({
19
+ url: 'https://processing.terrazo.at/openapi.json',
20
+ filter: 'Demo',
21
+ plugins: [
22
+ SwaggerUiMapPlugin({
23
+ renderer: {
24
+ geojson: {
25
+ activationFnc: props => ['application/geo+json', 'application/json'].includes(props.contentType),
26
+ config: {
27
+ defaultStrokeWidth: '2'
28
+ }
29
+ }
30
+ }
31
+ })
32
+ ],
33
+ dom_id: '#swagger-ui',
34
+ });
35
+ };
36
+ </script>
37
+ </body>
38
+ </html>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@josephinumresearch/swagger-ui-map-plugin",
3
- "version": "1.0.2",
3
+ "version": "1.0.4-alpha.0",
4
4
  "main": "src/index.js",
5
5
  "scripts": {
6
6
  "build": "webpack --mode=production",
@@ -26,11 +26,11 @@
26
26
  "@babel/preset-react": "^7.24.7",
27
27
  "babel-loader": "^9.2.1",
28
28
  "html-webpack-plugin": "^5.6.0",
29
- "ol": "^10.1.0",
30
- "react": "^18.3.1",
31
- "webpack": "^5.94.0",
29
+ "ol": "^10.7.0",
30
+ "react": ">=16.8.0 <20",
31
+ "webpack": "5.104.1",
32
32
  "webpack-cli": "^5.1.4",
33
- "webpack-dev-server": "^5.1.0"
33
+ "webpack-dev-server": "5.2.1"
34
34
  },
35
35
  "dependencies": {
36
36
  "lodash.merge": "^4.6.2"
@@ -10,38 +10,42 @@ export default (config) => (Original, system) => (props) => {
10
10
  const [showMap, setShowMap] = React.useState(false)
11
11
  const mapContainer = React.createRef();
12
12
 
13
- if (isActivated) {
14
- React.useEffect(() => {
15
- setShowMap(true);
16
-
17
- const rasterLayer = new TileLayer({
18
- source: new OSM(),
19
- });
20
-
21
- console.log(mapContainer.current);
22
- const map = new OlMap({
23
- layers: [rasterLayer],
24
- target: mapContainer.current,
25
- view: new View({
26
- center: [0, 0],
27
- zoom: 2,
28
- }),
29
- });
30
-
31
- Promise.all(mapRenderer.map(f => {
32
- return import('./formats/' + f.format).then(r => r.default(map, props.content, f.config));
33
- })).catch(error => {
34
- console.error(error);
35
- map.setTarget(null);
36
- setShowMap(false);
37
- });
38
-
39
- return () => {
40
- map.setTarget(null);
41
- setShowMap(false);
42
- }
43
- }, [props.content]);
44
- }
13
+
14
+ React.useEffect(() => {
15
+ if (!isActivated) {
16
+ setShowMap(false);
17
+ return;
18
+ }
19
+ setShowMap(true);
20
+
21
+ const rasterLayer = new TileLayer({
22
+ source: new OSM(),
23
+ });
24
+
25
+ console.log(mapContainer.current);
26
+ const map = new OlMap({
27
+ layers: [rasterLayer],
28
+ target: mapContainer.current,
29
+ view: new View({
30
+ center: [0, 0],
31
+ zoom: 2,
32
+ }),
33
+ });
34
+
35
+ Promise.all(mapRenderer.map(f => {
36
+ return import('./formats/' + f.format).then(r => r.default(map, props.content, f.config));
37
+ })).catch(error => {
38
+ console.error(error);
39
+ map.setTarget(null);
40
+ setShowMap(false);
41
+ });
42
+
43
+ return () => {
44
+ map.setTarget(null);
45
+ setShowMap(false);
46
+ }
47
+ }, [props.content]);
48
+
45
49
 
46
50
  return (
47
51
  <div>
@@ -56,4 +60,4 @@ export default (config) => (Original, system) => (props) => {
56
60
  <Original {...props} />
57
61
  </div>
58
62
  );
59
- };
63
+ };
package/src/index.html CHANGED
@@ -5,17 +5,17 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1" />
6
6
  <meta name="description" content="SwaggerUI" />
7
7
  <title>SwaggerUI</title>
8
- <link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.17.14/swagger-ui.css" />
9
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v10.1.0/ol.css">
8
+ <link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist@5.32.0/swagger-ui.css" />
9
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ol@v10.7.0/ol.css">
10
10
  </head>
11
11
  <body>
12
12
  <div id="swagger-ui"></div>
13
- <script src="https://cdn.jsdelivr.net/npm/ol@v10.1.0/dist/ol.js" crossorigin></script>
14
- <script src="https://unpkg.com/swagger-ui-dist@5.17.14/swagger-ui-bundle.js" crossorigin></script>
13
+ <script src="https://cdn.jsdelivr.net/npm/ol@v10.7.0/dist/ol.js" crossorigin></script>
14
+ <script src="https://unpkg.com/swagger-ui-dist@5.32.0/swagger-ui-bundle.js" crossorigin></script>
15
15
  <script>
16
16
  window.onload = () => {
17
17
  window.ui = SwaggerUIBundle({
18
- url: 'https://api.terrazo.at/api-docs/latest:%20v2',
18
+ url: 'https://processing.terrazo.at/openapi.json',
19
19
  plugins: [
20
20
  SwaggerUiMapPlugin({
21
21
  renderer: {
@@ -33,4 +33,4 @@
33
33
  };
34
34
  </script>
35
35
  </body>
36
- </html>
36
+ </html>