Skip to content

Instantly share code, notes, and snippets.

@georgebax
Created November 30, 2016 16:57
Show Gist options
  • Save georgebax/1a3949291d451db00d199b63f9a511bc to your computer and use it in GitHub Desktop.
Save georgebax/1a3949291d451db00d199b63f9a511bc to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<link rel="stylesheet" type="text/css" href="styles.css">
<style type="text/css">
html, body { height: 100%; margin: 0; padding: 0; } #map { height: 100%; }
</style>
<script type="text/javascript">
var map;
function initMap() {
var myLatLng = new google.maps.LatLng(37.9991,23.7333);
var mapOptions = {
zoom: 13,
center: myLatLng
}
map = new google.maps.Map(document.getElementById("map"), mapOptions);
var ctaLayer = new google.maps.KmlLayer('your_kml_file_url');
ctaLayer.setMap(map);
}
</script>
</head>
<body>
<h1>Χάρτης ταξί</h1>
<div id="map"></div>
<script src="https://maps.googleapis.com/maps/api/js?key=your_google_api_key&callback=initMap" async defer></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment