Created
June 24, 2015 08:50
-
-
Save jsanz/9fa737db4623fb54d15f to your computer and use it in GitHub Desktop.
Basemap covering google maps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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