Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
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.loadAutocompleteApi(API_URL)
.then(function(autocompleteService) {
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.loadGeocoderApi(API_URL)
.then(function(geocoderService) {
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.loadMapApi(API_URL)
.then(function(Map) {
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 74 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.