Skip to content

Instantly share code, notes, and snippets.

@matoni109
Last active December 15, 2020 10:42
Show Gist options
  • Save matoni109/c2220ca03dd4f641a4c22790a804b3c3 to your computer and use it in GitHub Desktop.
Save matoni109/c2220ca03dd4f641a4c22790a804b3c3 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="data:image/x-icon;" type="image/x-icon">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<title>Geocoder</title>
<link rel="shortcut icon" href="data:image/x-icon;" type="image/x-icon">
<link rel="stylesheet" href="css/style.css">
<script src='https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.js'></script>
<link href='https://api.mapbox.com/mapbox-gl-js/v2.0.0/mapbox-gl.css' rel='stylesheet' />
</head>
<body>
<!-- TODO: Put your HTML code in here -->
<div class="container">
<form role="form" id="form">
<div class="form-group">
<label class="control-label" for="address">Address</label>
<input type="text" class="form-control" name="address" id="address" placeholder="your address">
</div>
<input id="submit"
class="btn btn-primary" type="submit">
</form>
<p id="geo_cords"></p>
<div id='map' style='width: 600px; height: 300px; padding: 60px;'></div>
</div>
<script src="main.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment