Skip to content

Commit 9ffe010

Browse files
committed
Merge branch 'release/3.9.07'
2 parents 33fb764 + 2462bd6 commit 9ffe010

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+762
-331
lines changed

NEWS

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
3.9.07 (03//06//2014)
2+
- Fixed exception on hover for layers without tooltip
3+
- Improved tooltip interaction
4+
- Changed cartocss library to support marker-type "rectangle"
5+
- Fixed setParam when there are no default params (#120)
6+
7+
3.9.06 (25//05//2014)
8+
- Allowfullscreen parameter added to iframe code
9+
in share dialog.
10+
- Enables custom legends in Torque.
11+
12+
3.9.05 (19//05//2014)
13+
- Fixed tileJSON method in cdb.Tiles
14+
- Adds support for Markdown in descriptions
15+
16+
3.9.04 (14//05//2014)
17+
- Added position parameter in Tooltip overlay
18+
119
3.9.03 (14//05//2014)
220
- Added tooltip option in createLayer method
321

dist/cartodb.core.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cartodb.core.uncompressed.js

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// version: 3.9.03
2-
// sha: dfbb8f4204e231cd83fc53f18e0a00e25ff99a53
1+
// version: 3.9.07
2+
// sha: 5472b924db5374c519a5de4f73f8681e7861c4f5
33
;(function() {
44
this.cartodb = {};
55
var Backbone = {};
@@ -1141,7 +1141,7 @@ var Mustache;
11411141

11421142
var cdb = root.cdb = {};
11431143

1144-
cdb.VERSION = '3.9.03';
1144+
cdb.VERSION = '3.9.07';
11451145
cdb.DEBUG = false;
11461146

11471147
cdb.CARTOCSS_VERSIONS = {
@@ -2418,12 +2418,23 @@ Map.prototype = {
24182418
this.invalidate();
24192419
},
24202420

2421-
_tileJSONfromTiles: function(layer, urls) {
2421+
_tileJSONfromTiles: function(layer, urls, options) {
2422+
options = options || {};
2423+
var subdomains = options.subdomains || ['0', '1', '2', '3'];
2424+
2425+
function replaceSubdomain(t) {
2426+
var tiles = [];
2427+
for (var i = 0; i < t.length; ++i) {
2428+
tiles.push(t[i].replace('{s}', subdomains[i % subdomains.length]));
2429+
}
2430+
return tiles;
2431+
}
2432+
24222433
return {
24232434
tilejson: '2.0.0',
24242435
scheme: 'xyz',
2425-
grids: urls.grids[layer],
2426-
tiles: urls.tiles,
2436+
grids: replaceSubdomain(urls.grids[layer]),
2437+
tiles: replaceSubdomain(urls.tiles),
24272438
formatter: function(options, data) { return data; }
24282439
};
24292440
},
@@ -2433,13 +2444,14 @@ Map.prototype = {
24332444
*/
24342445
getTileJSON: function(layer, callback) {
24352446
layer = layer == undefined ? 0: layer;
2447+
var self = this;
24362448
this.getTiles(function(urls) {
24372449
if(!urls) {
24382450
callback(null);
24392451
return;
24402452
}
24412453
if(callback) {
2442-
callback(this._tileJSONfromTiles(layer, urls));
2454+
callback(self._tileJSONfromTiles(layer, urls));
24432455
}
24442456
});
24452457
},
@@ -2569,6 +2581,9 @@ NamedMap.prototype = _.extend({}, Map.prototype, {
25692581
} else {
25702582
params = attr;
25712583
}
2584+
if (!this.named_map.params) {
2585+
this.named_map.params = {};
2586+
}
25722587
for (var k in params) {
25732588
if (params[k] === undefined || params[k] === null) {
25742589
delete this.named_map.params[k];

dist/cartodb.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,15 @@ div.cartodb-header div.social a {
775775
background:url('../img/other.png') no-repeat 0 0;
776776
}
777777

778+
div.cartodb-header a {
779+
color: #397DBA;
780+
text-decoration: none;
781+
}
782+
783+
div.cartodb-header a:hover {
784+
text-decoration: underline;
785+
}
786+
778787
div.cartodb-header div.social a.twitter {
779788
margin-left:3px;
780789
background:url('../img/other.png') no-repeat -26px 0;
@@ -3362,6 +3371,7 @@ div.cartodb-timeslider .ui-slider-vertical .ui-slider-range-max {
33623371

33633372
div.cartodb-tooltip-content p {
33643373
display:block;
3374+
margin:0;
33653375
padding:0 0 7px;
33663376
font:normal 12px "Helvetica Neue", "Helvetica", Arial;
33673377
color:#333333;

0 commit comments

Comments
 (0)