Library for simplifying uploading data to the NextGIS Web from the browser
Simply download and include with a script tag. NgwUploaderInput
will be registered as a global variable.
<script src="../lib/ngw-uploader.global.prod.js"></script>
<div id='uploader'></div>
<script>
var uploader = document.getElementById('uploader');
var ngwUploader = new NgwUploader({
baseUrl: 'https://sandbox.nextgis.com'
});
const input = ngwUploader.createInput();
uploader.appendChild(input);
</script>
<script src="https://unpkg.com/@nextgis/ngw-uploader"></script>
We recommend linking to a specific version number that you can update manually:
<script src="https://unpkg.com/@nextgis/ngw-uploader@0.19.0"></script>
NPM is the recommended installation method when building large scale applications with NgwUploader. It pairs nicely with module bundlers such as Webpack
# latest stable
npm install @nextgis/ngw-uploader-input
import NgwUploader from '@nextgis/ngw-uploader-input';
const ngwUploader = new NgwUploader({
baseUrl: 'https://sandbox.nextgis.com'
});
Need to fix a bug or add a feature to @nextgis/ngw-uploader-input
? We provide custom development and support for this software. Contact us to discuss options!