cartodb/lib/assets/javascripts/cdb/examples/map_dragging_disabled.html
zhongjin a96ef233c9 cdb
2020-06-15 12:07:54 +08:00

42 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Map with dragging disabled | CartoDB.js</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<link rel="shortcut icon" href="http://cartodb.com/assets/favicon.ico" />
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
</style>
<link rel="stylesheet" href="https://libs.cartocdn.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />
</head>
<body>
<div id="map"></div>
<!-- include cartodb.js library -->
<script src="https://libs.cartocdn.com/cartodb.js/v3/3.15/cartodb.js"></script>
<script>
function main() {
cartodb.createVis('map', 'http://documentation.cartodb.com/api/v2/viz/2b13c956-e7c1-11e2-806b-5404a6a683d5/viz.json', {
tiles_loader: true,
center_lat: 45,
center_lon: 30,
zoom: 4,
scrollwheel: false,
zoomControl: false
});
}
// window.onload = main;
var fn = function() { cartodb.load('../src/', main); }
window.onload = fn;
</script>
</body>
</html>