@josephinumresearch/swagger-ui-map-plugin
v1.0.1
Published
SwaggerUI plugin to draw supported responses on a map
Downloads
2
Readme
SwaggerUI Map Plugin
SwaggerUI plugin to show GeoJson responses on a map
Usage
- Add
Openlayers
and this plugin to your swaggerui index file
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.js" crossorigin></script>
<script src="https://cdn.jsdelivr.net/npm/swagger-ui-map-plugin/dist/swagger-ui-map-plugin.js" crossorigin></script>
- Register
SwaggerUiMapPlugin()
SwaggerUIBundle({
...
plugins: [
SwaggerUiMapPlugin()
],
...
});
- Execute a request whose response is an
application/geo+json
Dev
Run npm install
and then npm run dev
.
For deployment, build the dist/swagger-ui-map-plugin.js
with npm run build