radius-widget
Advanced tools
Comparing version 1.0.2 to 1.1.0
{ | ||
"name": "radius-widget", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "Uses Google maps API to set location and radius", | ||
"main": "src/js/script.js", | ||
"scripts": { | ||
"minifyJS": "uglifyjs src/js/script.js --compress --mangle --warn --output src/js/script.min.js", | ||
"minifyJS": "uglifyjs src/js/radius-widget.js --compress --mangle --warn --output src/js/radius-widget.min.js", | ||
"build": "npm run minifyJS --silent" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://gitlab.inquence.net/npm-packages/radius-widget.git" | ||
}, | ||
"author": "Alexey Sazonov <say@mail.uk>", | ||
"dependencies": { | ||
"uglify-js": "^3.3.11" | ||
"uglify-es": "^3.3.9" | ||
} | ||
} |
@@ -7,17 +7,26 @@ # Radius widget | ||
Make sure you have the latest version of node.js installed. Then run | ||
```bash | ||
npm install https://<username>:<password>@bitbucket.org/inquence/radius-widget.git | ||
$ npm install && npm run build | ||
``` | ||
## Web API | ||
## Usage | ||
https://www8.netsupport24.net/radius-widget/src/demo.html?street=Georg-Treu-Platz&streetno=3&zipcode=01067&city=Dresden&radius=5000 | ||
Include the form form from the index.html into your page. Then initialize the widget like so: | ||
url parameters | ||
- street | ||
- streetno | ||
- zipcode | ||
- city | ||
- radius (optional) | ||
- hide_form (0|1) (optional) | ||
```javascript | ||
new RadiusWidget({ | ||
containerId: 'radius-widget', // Set the id of the outer container | ||
formId: 'radius-widget-form', // Set the id of 'fake form' with the input fields | ||
hideForm: Boolean(1), // Toggle display of form | ||
// Optionally: Set the address for the map instead of using the form | ||
address: { | ||
street: 'Unter den Linden', | ||
streetno: '1' | ||
zipcode: '', | ||
city: 'Berlin', | ||
}, | ||
//initialZoom: 13 // Set some more zoom value initially | ||
}).initMap(); | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
14721
6
236
32
0
1
+ Addeduglify-es@^3.3.9
+ Addedcommander@2.14.1(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addeduglify-es@3.3.10(transitive)
- Removeduglify-js@^3.3.11
- Removeduglify-js@3.19.3(transitive)