Skip to content

Instantly share code, notes, and snippets.

@dopry
Last active April 20, 2017 00:51
Show Gist options
  • Save dopry/d10dd0dee8ec2398c249aca8eeac7258 to your computer and use it in GitHub Desktop.
Save dopry/d10dd0dee8ec2398c249aca8eeac7258 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<script data-require="[email protected]" data-semver="3.1.1" src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<link rel="stylesheet" href="http://libs.cartocdn.com/cartodb.js/v3/3.15/themes/css/cartodb.css" />
<script src="http://libs.cartocdn.com/cartodb.js/v3/3.15/cartodb.js"></script>
</head>
<body>
<h1>Hello Plunker!</h1>
<div id="map" class="invisible" style="width: 100%"></div>
<script>
window.onload = function() {
window.cartodb.createVis('map',
'https://hepkatmama.carto.com/api/v2/viz/a38e633a-24c3-11e7-82a3-0e3ff518bd15/viz.json',
function() {
return {
zoom: 11,
center: [32.799741, -96.801232]
};
}
).done(function() {
//let submit = $(".cartodb-searchbox input[type=submit]");
//console.log('submit', submit);
// submit.on('click', function(event) {
//console.log('searchClicked', event);
//event.preventDefault();
// var searchTerm = $(".cartodb-searchbox input[type=text]").val();
// console.log('search for', searchTerm);
//});
});
}
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment