Skip to content

karlbalagtey/googleMapsLoader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Google Maps Loader ES6

ES6 Module for easy loading google maps into your project.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Installing

Install package from NPM

npm install gm-loader

Then import the module in your project. For example:

import GoogleMapsLoader from 'gm-loader';

new GoogleMapsLoader({
	'apiKey' => 'AIzaSyDf3LP2wI5aIIvObOZbfFi60bqsoy-4Wno',
	'zoom' => 18, // default to 12
	'scrollwheel' => false, // default
	'disableDefaultUI' => false, // default
	'zoomControl' => false, //default,
	'markerIcon' => 'vendor/marker.png'
});

To add location, add latitude and longitude dataset to map container

<div class="map-container" data-lat="125.25251" data-lng="235.235235" data-title="Map Title"></div>

Built With

  • Javascript

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

ES6 Google Maps Loader

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published