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.
-
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 });
bower install jmap