You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

google-maps-library

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-maps-library

**A simple JavaScript library to work with Google Maps & Places API**

1.0.0
latest
npmnpm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

GMaps Toolkit

A simple JavaScript library to work with Google Maps & Places API

Features

  • Initialize a Google Map
  • Add markers easily
  • Get place details from lat/lng

Installation

npm install gmaps-toolkit

Usage

import { initMap, addMarker, getPlaceDetails } from 'gmaps-toolkit';

initMap({
  elementId: 'map',
  center: { lat: 12.9716, lng: 77.5946 },
  zoom: 14
});

addMarker({ lat: 12.9716, lng: 77.5946 }, "Bangalore");

getPlaceDetails({ lat: 12.9716, lng: 77.5946 }, 'YOUR_API_KEY')
  .then(console.log);

License

MIT

FAQs

Package last updated on 16 Apr 2025

Did you know?

Socket

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.

Install

Related posts