Skip to content

pladias-cz/geoservices-for-browser

Repository files navigation

geoservices-for-browser

JS module for consuming Pladias geowebservices by using OpenLayers.

sample usage in package.json

{
  "dependencies": {
    "geoservices-for-browser": "pladias-cz/geoservices-for-browser#v0.3.1"
  }
}

Since v0.2 the .env file has to be used to configure geoserver URL.

Add to the webpack.config.js:

const webpack = require('webpack');
const dotenv = require('dotenv');
const env = dotenv.config().parsed;

//... pure Webpack
plugins: [
    new webpack.DefinePlugin({ //https://webpack.js.org/plugins/define-plugin/
        'process.env': JSON.stringify(env)
    })
]
// Encore
    Encore.addPlugin(new webpack.DefinePlugin({
        'process.env': JSON.stringify(env)
    });

and create .env file next to webpack.config.js

TBD

  • divide content into general and site-specific

About

JS module for using Pladias webservices (pladias.cz)

Resources

License

GPL-3.0, MIT licenses found

Licenses found

GPL-3.0
LICENSE-GNU
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •