5 <title>drag example</title>
6 <meta name="viewport" content="width=device-width, minimum-scale=1, maximum-scale=1">
7 <meta name="description" content="An example of drag modes">
8 <meta name="author" content="Ryan Westphal">
9 <link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/themes/blitzer/jquery-ui.css" />
10 <link rel="stylesheet" type="text/css" href="css/style.css" />
11 <style type="text/css">
28 <a href="../" class="docLink">< docs</a>
29 <a href="http://jsfiddle.net/ryanttb/==JSFIDDLE==/embedded/" class="fiddleLink"><img src="img/jsfiddle.png" alt="" /> jsFiddle ></a>
34 <p>There are currently two drag modes: dragBox and dragCircle. This demo tests only dragBox when set as the mode during init.</p>
37 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
38 <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script>
39 <script src="../jquery.geo-test.min.js"></script>
42 // create a map, setting the mode to dragBox
43 var map = $( "#map" ).geomap( {
44 center: [ -71.0595678, 42.3604823 ],
47 shape: function( e, geo ) {
48 // drag modes generate GeoJSON objects and send them as the geo argument
49 // you can append them to the map
50 map.geomap( "append", geo );
57 var _gaq = [['_setAccount', 'UA-26084853-1'], ['_trackPageview']];
59 var g = d.createElement(t), s = d.getElementsByTagName(t)[0]; g.async = 1;
60 g.src = ('https:' == location.protocol ? '//ssl' : '//www') + '.google-analytics.com/ga.js';
61 s.parentNode.insertBefore(g, s);
62 } (document, 'script'));