Fix map test

This commit is contained in:
Jesse Cardone 2019-06-19 01:49:48 -04:00
parent 5b7a473d8e
commit 2d464ab2c1
1 changed files with 2 additions and 10 deletions

View File

@ -86,31 +86,23 @@
xhr.send();
// IS2 Bottom
L.tileLayer('https://api.mapbox.com/styles/v1/{style_id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
maxZoom: 18,
L.tileLayer('https://api.mapbox.com/styles/v1/{style_id}/tiles/256/{z}/{x}/{y}?access_token={accessToken}', {
style_id: 'jessecar/cjl186uw10jem2slf4lra7754',
accessToken: mapboxToken
}).addTo(mymap);
var radLayer = L.tileLayer('https://api.weather.com/v3/TileServer/tile?product=twcRadarMosaic&ts={t}&xyz={x}:{y}:{z}&apiKey={api}', {
maxZoom: 18,
api: 'd522aa97197fd864d36b418f39ebb323',
opacity: 1
});
var radTimeLayer = L.timeDimension.layer.tileLayer.portus(radLayer, {});
// IS2 Top layer
var topLayer = L.tileLayer('https://api.mapbox.com/styles/v1/{style_id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
maxZoom: 18,
var topLayer = L.tileLayer('https://api.mapbox.com/styles/v1/{style_id}/tiles/256/{z}/{x}/{y}?access_token={accessToken}', {
style_id: 'jessecar/cjl18a4ao2mz52ro34ok1mnwj',
accessToken: mapboxToken
});
var overlayMaps = {
"Mediterranean wave": radTimeLayer,
};
</script>
</body>
</html>