Permalink
Browse files

Web pages are now available under gh-pages branch.

  • Loading branch information...
1 parent bd3db4c commit 480fae98fffe5064da5ec7cb73521b8dca1aeb11 @alfyboza committed Oct 9, 2011
Showing with 0 additions and 84 deletions.
  1. +0 −19 test/google.html
  2. +0 −1 test/javascripts/jquery.cartography.js
  3. +0 −40 test/javascripts/main.js
  4. +0 −24 test/stylesheets/tests.css
View
19 test/google.html
@@ -1,19 +0,0 @@
-<!DOCTYPE HTML>
-<html>
- <head>
- <meta charset="utf-8"/>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
- <title>jQuery Cartography Provider: Google Maps</title>
- <link type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/smoothness/jquery-ui.css" media="screen" rel="stylesheet"/>
- <link type="text/css" href="stylesheets/tests.css" media="screen" rel="stylesheet"/>
- <script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.js"></script>
- <script type="text/javascript" charset="utf-8" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.js"></script>
- <script type="text/javascript" charset="utf-8" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
- <script type="text/javascript" charset="utf-8" src="javascripts/jquery.cartography.js"></script>
- <script type="text/javascript" charset="utf-8" src="javascripts/main.js"></script>
- </head>
- <body>
- <h1>jQuery Cartography: Google Maps</h1>
- <div id="canvas" style="height: 500px; width: 500px;"></div>
- </body>
-</html>
View
1 test/javascripts/jquery.cartography.js
View
40 test/javascripts/main.js
@@ -1,40 +0,0 @@
-(function($) {
- $(document).ready(function() {
- $("#canvas")
- .bind($.cartography.events.Geocode.SUCCESS, function(e, value) {
- console.log(value.id + "'s address is " + value.results[0].formatted_address + ".");
- })
- .bind($.cartography.events.Geolocation.SUCCESS, function(e, position) {
- $(this)
- .cartography("geocode", {
- id: "My location",
- latitude: position.coords.latitude,
- longitude: position.coords.longitude
- })
- .cartography("mark", {
- id: "My location",
- latitude: position.coords.latitude,
- longitude: position.coords.longitude
- });
- })
- .cartography({
- center: {
- latitude: 25.759066,
- longitude: -80.373833
- },
- geocode: [{
- id: "Magic Kingdom",
- address: "Disney Magic Kingdom, FL"
- }, {
- id: "White House",
- address: "White House, Washington DC"
- }],
- geolocate: true,
- markers: [{
- id: "FIU",
- address: "11200 SW 8th St, Miami, FL 33199"
- }],
- zoom: 10
- });
- });
-})(jQuery);
View
24 test/stylesheets/tests.css
@@ -1,24 +0,0 @@
-@charset "utf-8";
-
-* {
- margin: 0;
- padding: 0;
-}
-
-html, body {
- font-family: "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
- font-size: 1em;
- font-weight: 300;
- margin: 0;
- height: 100%;
- width: 100%;
-}
-
-h1 {
- margin-bottom: 25px;
- text-align: center;
-}
-
-#canvas {
- margin: 0 auto;
-}

0 comments on commit 480fae9

Please sign in to comment.