Skip to content

Commit

Permalink
new wax library added
Browse files Browse the repository at this point in the history
  • Loading branch information
xavijam committed Jun 21, 2012
1 parent 12ecc88 commit c4ca323
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 12 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@

[v 0.48]
- New function, setOptions, to change any param at the same time.
- Wax 6.2.3 touched and added.

[v 0.47]
- Touch events supported
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ First of all add the necessary script and css files:
<!--[if lte IE 8]><link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" /><![endif]-->
<link href="css/cartodb-leaflet.css" rel="stylesheet" type="text/css">
<script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script type="text/javascript" src="js/wax.leaf.min-6.0.5-touched.js"></script>
<script type="text/javascript" src="js/wax.leaf.min-6.2.3-touched.js"></script>
<script type="text/javascript" src="dist/cartodb-leaflet-min.js"></script>
<script type="text/javascript" src="dist/cartodb-popup.js"></script>
```
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<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="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.0.5-touched.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.2.3-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>

Expand Down
2 changes: 1 addition & 1 deletion examples/hover-line.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<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="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.0.5-touched.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.2.3-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>

Expand Down
2 changes: 1 addition & 1 deletion examples/hover-point.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
// Initialize hover point
, point = new L.GeoJSON(null)
// Hover point style
, hover_style = {radius:8, color:"#333", weight:3, opacity:1, fillColor: "#F96700", fillOpacity:1, clickable:false}
, hover_style = {radius:8, color:"#333", weight:3, opacity:1, fillColor: "#FFCC00", fillOpacity:1, clickable:false}
// Create the CartoDB layer
, nyc_wifi = new L.CartoDBLayer({
map: map,
Expand Down
4 changes: 2 additions & 2 deletions examples/hover-polygon.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<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="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script type="text/javascript" src="../js/wax.leaf.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.2.3-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>

Expand All @@ -28,7 +28,7 @@
// Initialize hover polygon
, polygon = new L.GeoJSON(null)
// Hover polygon style
, polygon_style = {color: "#333", weight: 2, opacity:1, fillOpacity: 0, clickable:false}
, polygon_style = {color: "#333", weight: 2, opacity:1, fillOpacity: 1, fillColor:"#FFCC00", clickable:false}
// Create the CartoDB layer
, nyc_parks = new L.CartoDBLayer({
map: map,
Expand Down
2 changes: 1 addition & 1 deletion examples/query-by-distance.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<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="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.0.5-touched.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.2.3-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>

Expand Down
2 changes: 1 addition & 1 deletion examples/show-hide.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<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="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.0.5-touched.js"></script>
<script type="text/javascript" src="../js/wax.leaf.min-6.2.3-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>

Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h1 class="left">
<!--[if lt IE 9]> <link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" /> <![endif]-->
<link href="css/cartodb-leaflet.css" rel="stylesheet" type="text/css">
<script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script type="text/javascript" src="js/wax.leaf.min-6.0.5-touched.js"></script>
<script type="text/javascript" src="js/wax.leaf.min-6.2.3-touched.js"></script>
<script type="text/javascript" src="dist/cartodb-leaflet-min.js"></script>

<script type="text/javascript">
Expand Down Expand Up @@ -304,7 +304,7 @@ <h5 class="margin30">Example</h5>
&#60;!--[if lt IE 9]&#62; &#60;link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" /&#62; &#60;![endif]--&#62;
&#60;link href="css/cartodb-leaflet.css" rel="stylesheet" type="text/css"&#62;
&#60;script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="js/wax.leaf.min-6.0.5-touched.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="js/wax.leaf.min-6.2.3-touched.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="dist/cartodb-leaflet-min.js"&#62;&#60;/script&#62;
</pre>

Expand Down
1 change: 1 addition & 0 deletions js/wax.leaf.js
Original file line number Diff line number Diff line change
Expand Up @@ -3300,6 +3300,7 @@ wax.leaf.connector = L.TileLayer.extend({
options = options || {};
options.minZoom = options.minzoom || 0;
options.maxZoom = options.maxzoom || 22;
options.opacity = options.opacity || 1;
L.TileLayer.prototype.initialize.call(this, options.tiles[0], options);
}
});
2 changes: 0 additions & 2 deletions js/wax.leaf.min-6.0.5-touched.js

This file was deleted.

3 changes: 3 additions & 0 deletions js/wax.leaf.min-6.2.3-touched.js

Large diffs are not rendered by default.

0 comments on commit c4ca323

Please sign in to comment.