jquery.mapit.js
A simple jQuery plugin that uses Latitute and Longitude to create a Google Map overlay.
Cick for Demo Download on GitHub
bower install jquery.mapit.js
npm install jquery.mapit.js
A simple jQuery plugin that uses Latitute and Longitude to create a Google Map overlay.
Cick for Demo Download on GitHub
bower install jquery.mapit.js
npm install jquery.mapit.js
Add jquery.mapit.js and jquery to your page.
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script type="text/javascript" src="http://sabillon.net/jquery.mapit.js/dist/jquery.mapit.min.js"></script>
Add data-latlng="51.508742,-0.120850"
with a Latitude and Longitude value, separated by a comma, to any element.
<a id="your-id" class="btn btn-default" data-latlng='34.056047,-118.2593786' href="#" role="button">Cick here for map</a>
Initialize your mapit in your script file or an inline script tag.
$(document).ready(function(){
$('#your-id').mapit();
});