
Security News
OpenGrep Restores Fingerprinting in JSON and SARIF Outputs
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
js-google-api-wrapper
Advanced tools
Javascript wrapper service and classes for Google APIs like AutocompleteService, Map and Markers
Javascript module that provides wrapper services and classes for Google APIs like AutocompleteService, Map, Markers and Geocode service. Currently provides following wrapper components for Google APIs.
Wraps google.maps.places.AutocompleteService service to provide search interface for places and query preditions.
var googleApiWrapper = require('js-google-api-wrapper');
var API_URL = 'API_URL';
googleApiWrapper.loadApi(API_URL)
.then(function(api) {
var autocompleteService = api.getAutocompleteService();
autocompleteService.searchPlaces()
.then(successHandler, errorHandler);
});
Searches for place predictions. Returns Promise object resolved/rejected with Google API response.
Searches for query predictions. Returns Promise object resolved/rejected with Google API response.
Searches for place detail. Returns Promise object resolved/rejected with Google API response.
Wraps google.maps.places.Geocoder service to geocode/reverse geocode search input.
var googleApiWrapper = require('js-google-api-wrapper');
var API_URL = 'API_URL';
googleApiWrapper.loadApi(API_URL)
.then(function(api) {
var geocoderService = api.getGeocoderService();
geocoderService.geocode()
.then(successHandler, errorHandler);
});
Geocode/Reverse Gocode search input. Returns Promise object resolved/rejected with Google API response.
Wraps google.maps.Map service to create and use Google Map object.
var googleApiWrapper = require('js-google-api-wrapper');
var API_URL = 'API_URL';
googleApiWrapper.loadApi(API_URL)
.then(function(api) {
var Map = api.getMap();
var map = new Map(HTMLElement, mapOptions);
});
Bind map events to the options callback.
Add new set of markers on the Map and Remove existing markers if there any on the Map.
Create new Markers on the page. Use setMarkers() to remove existing markers on the Map.
Remove all markers on the Map.
Set Map view around map markers latlng bounds.
Check if there any marker's infowindow is opened on the Map.
Hide all infowindows on the Map.
Search for near by places on the map.
Returns array of Map markers matched on marker's custom data with key/value parameters.
Returns array of native google.maps.Marker markers on the Map.
Wraps google.maps.Marker service to create and use Google Map Marker object.
Bind marker events to the options callback.
Remove marker from the Map.
Show marker on the Map.
Hide marker on the Map.
Hide marker on the Map.
Returns native google.maps.Marker instance.
Create new google.maps.Marker instance.
Open infowindow on Marker.
Open infowindow on Marker and set persist flag to TRUE.
Close infowindow on Marker.
Create infowindow for Marker. Parameter arg should be a string or a callback that returns string.
Set Map reference to Marker.
Returns marker's google.maps.InfoWindow instance.
FAQs
Javascript wrapper service and classes for Google APIs like AutocompleteService, Map and Markers
The npm package js-google-api-wrapper receives a total of 32 weekly downloads. As such, js-google-api-wrapper popularity was classified as not popular.
We found that js-google-api-wrapper 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.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.
Security Fundamentals
Attackers use obfuscation to hide malware in open source packages. Learn how to spot these techniques across npm, PyPI, Maven, and more.