-
Notifications
You must be signed in to change notification settings - Fork 12
Setup
Dimitris Krestos edited this page May 30, 2017
·
5 revisions
<script type="text/javascript" src="jquery-2.0.2.min.js">
Include Google Maps API and your API KEY (get API key)
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY"></script>
<script type="text/javascript" src="jquery.mapit.min.js">
<div id='map_canvas'></div>
Default way
$(document).ready(function() {
$('#map_canvas').mapit();
});
Using a data attribute
<div id='map_canvas' data-toggle="mapit">