Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
wb-google-addresspicker
Advanced tools
Angular directive to convert a simple input text into a fully featured google maps address picker
This is a directive for angular (based on jQuery Address Picker project). It will convert a simple input text into a fully featured google maps address picker with typeahead.
npm install wb-google-addresspicker --save
bower install wb-google-addresspicker --save
jQuery
API_KEY for Google Maps
http://maps.google.com/maps/api/js?key=<MY_API_KEY>&language=en
{
appendAddressString: "",
draggableMarker: true,
regionBias: null,
bounds: '',
componentsFilter:'',
updateCallback: null,
reverseGeocode: false,
autocomplete: 'default',
mapOptions: {
zoom: 5,
center: new google.maps.LatLng(46, 2),
scrollwheel: false,
mapTypeId: google.maps.MapTypeId.ROADMAP
},
elements: {
map: false,
lat: false,
lng: false,
street_number: false,
route: false,
locality: false,
administrative_area_level_3: false,
administrative_area_level_2: false,
administrative_area_level_1: false,
country: false,
postal_code: false,
type: false
},
autocomplete: '' // could be autocomplete: "bootstrap" to use bootstrap typeahead autocomplete instead of jQueryUI
}
<div class="row">
<div class="col-md-6">
<p>
<input class="form-control"
type="text"
autocomplete="off"
data-ng-model="ctrl.address"
data-gap-model="ctrl.addressFull"
data-gap-options="ctrl.addressPickerOptions"
data-wb-google-addresspicker>
</p>
</div>
<div class="col-md-6">
<pre>Address: {{ctrl.address | json}}</pre>
<p>
<pre>AddressFull: {{ctrl.addressFull | json}}</pre>
</p>
</div>
</div>
Add angular module
'WB.GAddressPicker'
as dependency in your app
(function() {
'use strict';
angular
.module('demoApp', [
'WB.GAddressPicker'
])
.controller('demoCtrl', DemoController);
function DemoController() {
var ctrl = this;
ctrl.address = '';
ctrl.addressFull = null;
ctrl.addressPickerOptions = {
distanceWidget: true,
addressComponents: true,
elements: {
map: true,
lat: true,
lng: true,
street_number: true,
route: true,
locality: true,
administrative_area_level_3: true,
administrative_area_level_2: true,
administrative_area_level_1: true,
country: true,
postal_code: true,
type: true
}
};
}
})();
bygiro/Angular-Address-Picker
.FAQs
Angular directive to convert a simple input text into a fully featured google maps address picker
The npm package wb-google-addresspicker receives a total of 0 weekly downloads. As such, wb-google-addresspicker popularity was classified as not popular.
We found that wb-google-addresspicker demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.