Skip to content

Instantly share code, notes, and snippets.

@jsanz
Created June 24, 2015 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jsanz/9fa737db4623fb54d15f to your computer and use it in GitHub Desktop.
Save jsanz/9fa737db4623fb54d15f to your computer and use it in GitHub Desktop.
Basemap covering google maps
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Ejemplo</title>
<style>
html, body, #map {
height: 100%;
padding: 0;
margin: 0;
}
</style>
<link rel="stylesheet"
href="http://libs.cartocdn.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<script type="text/javascript"
src="http://maps.googleapis.com/maps/api/js?signed_in=true&sensor=true"></script>
<script type="text/javascript" src="http://libs.cartocdn.com/cartodb.js/v3/3.15/cartodb.js"></script>
</head>
<body>
<div id="map"></div>
<script>
$( document ).ready(function() {
var vizjson_url = 'https://team.cartodb.com/u/jsanz/api/v2/viz/15e43c24-1982-11e5-9c32-0e4fddd5de28/viz.json';
cartodb.createVis('map',vizjson_url,
{gmaps_base_type:'satellite'});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment