jQuery jMap
A quick and easy way to implement Google Maps to your project
As a front-end developer you often encounter implementing Google Maps to a site. Google Maps isn't hard, I know, but repeating the same code over and over again, well, it sucks. jMap is a simple to use wrapper for the Google Maps API and has some other nice functions too.
Usage
-
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
-
Include Google Maps:
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
-
Include plugin's code:
<script src="dist/jquery.jmap.min.js"></script>
-
Call the plugin:
$("#element").jMap({ lat: 22.33, lng: 11.22 });
Install
Using Bower
bower install jmap