google-maps-plugin
v1.0.0
Published
A simple plugin for embedding Google Maps with a marker.
Downloads
1
Maintainers
Readme
Google Maps Plugin
A simple plugin for embedding Google Maps with a marker on your website.
Installation
To use this plugin, you can include it in your project via NPM:
Usage
You can customize the map center, zoom level, and marker title as needed.
Include the necessary scripts and HTML elements as described in the installation section. Customize the map settings by modifying the initMap function, such as changing the map center, zoom level, or marker title.
Access the map using the initMap function as a callback when the Google Maps API is loaded.
###License This project is licensed under the MIT License.
npm install jquery-google-maps-plugin
Copy code
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="main.js"></script>
Create a <div> element where you want to display the map.
Copy code
<div id="map" style="height: 400px; width: 600px; margin: 5% auto;"></div>