Add port to examples

This commit is contained in:
Ivan Malagon 2018-12-03 16:14:42 +01:00
parent 69857f7335
commit 7200f9b7fe
11 changed files with 32 additions and 17 deletions

View File

@ -37,7 +37,7 @@
zoom: 3
});
L.tileLayer('https://{s}.api.cartocdn.com/base-dark/{z}/{x}/{y}.png', {
L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', {
attribution: 'CartoDB'
}).addTo(map);
@ -45,10 +45,13 @@
user : 'fdansv',
table : 'snow',
cartocss: CARTOCSS,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443,
zIndex: 10
});
torqueLayer.addTo(map);
torqueLayer.play();
torqueLayer.bringToFront();
var rect = document.createElement("div");
var size = 50;
rect.setAttribute('style', "position:absolute; background-color: #fff; width: 100px; height: 30px;");

View File

@ -120,7 +120,8 @@
}
}, {
https: true,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
}).done(function(layer) {
map.addLayer(layer);
});

View File

@ -20,7 +20,7 @@
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.4/leaflet.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.3.4/leaflet.js"></script>
<script src="https://libs.cartocdn.com/torque.js/2.16.5/torque.full.js"></script>
<script src="../dist/torque.full.uncompressed.js"></script>
<script>
@ -57,15 +57,17 @@
zoom: 3
});
L.tileLayer('https://{s}.api.cartocdn.com/base-dark/{z}/{x}/{y}.png', {
L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', {
attribution: 'CartoDB'
}).addTo(map);
}).addTo(map, true);
var torqueLayer = new L.TorqueLayer({
user : 'viz2',
table : 'ow',
cartocss: CARTOCSS,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443,
zIndex: 10
});
torqueLayer.addTo(map);

View File

@ -83,7 +83,8 @@
}
}, {
https: true,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
}).done(function(layer) {
map.addLayer(layer);
});

View File

@ -75,7 +75,8 @@
user : 'viz2',
table : 'ow',
cartocss: CARTOCSS,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
});
torqueLayer.error(function(err){
for(error in err){

View File

@ -46,7 +46,7 @@
zoom: 3
});
L.tileLayer('http://{s}.api.cartocdn.com/base-dark/{z}/{x}/{y}.png', {
L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', {
attribution: 'CartoDB'
}).addTo(map);
@ -55,7 +55,8 @@
table : 'ow',
zIndex: 100,
cartocss: CARTOCSS,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
});
torqueLayer.error(function(err){
for(error in err){

View File

@ -50,7 +50,7 @@
}),
layers: [
new ol.layer.Tile({
source: new ol.source.XYZ({ url: 'https://api.cartocdn.com/base-dark/{z}/{x}/{y}.png'})
source: new ol.source.XYZ({ url: 'https://basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png'})
})
],
interactions: ol.interaction.defaults({
@ -64,7 +64,8 @@
user : 'viz2',
table : 'ow',
cartocss: CARTOCSS,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
});
torqueLayer.onAdd(map);

View File

@ -61,7 +61,9 @@
user: 'documentation',
sql: 'SELECT s + 181 as cartodb_id, st_transform(ST_SetSRID (st_makepoint(s, 10*sin(s)), 4326), 3857) as the_geom_webmercator FROM generate_series(-180, 180, 1) as s',
cartocss: CARTOCSS,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443,
zIndex: 10
});
torqueLayer.error(console.warn);
torqueLayer.addTo(map);

View File

@ -80,7 +80,8 @@
}
}, {
https: true,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
}).done(function(layer) {
map.addLayer(layer);
});

View File

@ -79,7 +79,8 @@
}
}, {
https: true,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
}).done(function(layer) {
map.addLayer(layer);
});

View File

@ -66,7 +66,8 @@
}
}, {
https: true,
tiler_protocol: 'https'
tiler_protocol: 'https',
tiler_port: 443
}).done(function(layer) {
map.addLayer(layer);
});