Skip to content

Commit

Permalink
Enable scroll zoom in several examples
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVelarde committed Nov 27, 2018
1 parent b42c02b commit b57788a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 28 deletions.
12 changes: 5 additions & 7 deletions examples/advanced/landing-page/detroit-development.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<!DOCTYPE html>
<html>

<head>
<title>US Population by County | CARTO</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand All @@ -9,6 +10,7 @@
<link href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.50.0/mapbox-gl.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="../../style.css">
</head>

<body>
<div id="map"></div>
<div id="loader">
Expand All @@ -23,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [-83.10625163016755, 42.34316296632727],
zoom: 12,
scrollZoom: false,


zoom: 12
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand All @@ -58,4 +55,5 @@
}
</script>
</body>

</html>
9 changes: 2 additions & 7 deletions examples/advanced/landing-page/hurricane-harvey.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [-96, 30],
zoom: 7,
scrollZoom: false,


zoom: 7
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand Down
9 changes: 2 additions & 7 deletions examples/advanced/landing-page/spend-data.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [2.1700314874017295, 41.385423962673826],
zoom: 17,
scrollZoom: false,


zoom: 17
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand Down
9 changes: 2 additions & 7 deletions examples/advanced/landing-page/us-population-by-country.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@
container: 'map',
style: carto.basemaps.darkmatter,
center: [-99.6404893, 38.5480718],
zoom: 4,
scrollZoom: false,


zoom: 4
});

const nav = new mapboxgl.NavigationControl({
showCompass: false
});
const nav = new mapboxgl.NavigationControl();
map.addControl(nav, 'top-left');

// Define user
Expand Down

0 comments on commit b57788a

Please sign in to comment.