Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
js-google-api-wrapper
Advanced tools
Javascript wrapper service and classes for Google APIs like AutocompleteService, Map and Markers
Readme
This plugin is published under the MIT license.
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 10 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.