Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

wax examples added

  • Loading branch information...
commit 6c28a90dd9322ae9c1f1bb44920f3c30afeb2c0d 1 parent f9cec00
@xavijam xavijam authored
View
0  examples/wax.html → examples/wax-ko.html
File renamed without changes
View
42 examples/wax-ok.html
@@ -0,0 +1,42 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
+ <title>CartoDB + ESRI</title>
+ <link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
+ <style>body,html {width:100%; height:100%; margin:0; padding:0; overflow:hidden;} #map {height:100%;}</style>
+ <link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.css" />
+ <!--[if IE]><link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" /><![endif]-->
+ <link href="../css/style.css" rel="stylesheet" type="text/css">
+ <link href="../css/cartodb-leaflet.css" rel="stylesheet" type="text/css">
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+ <script src="../js/leaflet-0.4.0.js"></script>
+ <script type="text/javascript" src="../js/wax.leaf.min-7.0.0dev1-touched.js"></script>
+ <script type="text/javascript" src="../dist/cartodb-leaflet-min.js"></script>
+ <script type="text/javascript" src="../dist/cartodb-popup-min.js"></script>
+
+ <script type="text/javascript">
+ var earthquakes;
+
+ function initialize() {
+ wax.tilejson('http://api.tiles.mapbox.com/v3/mapbox.geography-class.jsonp',
+ function(tilejson) {
+
+ var map = new L.Map('map')
+ .addLayer(new wax.leaf.connector(tilejson))
+ .setView(new L.LatLng(51.505, -0.09), 1);
+
+ wax.leaf.interaction()
+ .map(map)
+ .tilejson(tilejson)
+ .on(wax.tooltip().animate(true).parent(map._container).events());
+ });
+ }
+
+ </script>
+</head>
+<body onload="initialize()">
+ <div id="map"></div>
+</body>
+</html>
Please sign in to comment.
Something went wrong with that request. Please try again.