Created
November 11, 2013 03:33
-
-
Save simevidas/7407373 to your computer and use it in GitHub Desktop.
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
<script> | |
(function () { | |
google.maps.event.addDomListener(window, 'load', init); | |
var map; | |
function init() { | |
var mapOptions = { | |
center: new google.maps.LatLng(45.8167,15.9833), | |
zoom: 2, | |
zoomControl: false, | |
disableDoubleClickZoom: true, | |
mapTypeControl: false, | |
scaleControl: false, | |
scrollwheel: false, | |
streetViewControl: false, | |
draggable : true, | |
overviewMapControl: false, | |
mapTypeId: google.maps.MapTypeId.ROADMAP, | |
styles: [{'featureType': 'water','stylers': [{ 'color': '#021019' }]},{'featureType': 'landscape','stylers': [{ 'color': '#08304b' }]},{'featureType': 'poi','elementType': 'geometry','stylers': [{ 'color': '#0c4152' },{ 'lightness': 5 }]},{'featureType': 'road.highway','elementType': 'geometry.fill','stylers': [{ 'color': '#000000' }]},{'featureType': 'road.highway','elementType': 'geometry.stroke','stylers': [{ 'color': '#0b434f' },{ 'lightness': 25 }]},{'featureType': 'road.arterial','elementType': 'geometry.fill','stylers': [{ 'color': '#000000' }]},{'featureType': 'road.arterial','elementType': 'geometry.stroke','stylers': [{ 'color': '#0b3d51' },{ 'lightness': 16 }]},{'featureType': 'road.local','elementType': 'geometry','stylers': [{ 'color': '#000000' }]},{'elementType': 'labels.text.fill','stylers': [{ 'color': '#ffffff' }]},{'elementType': 'labels.text.stroke','stylers': [{ 'color': '#000000' },{ 'lightness': 13 }]},{'featureType': 'transit','stylers': [{ 'color': '#146474' }]},{'featureType': 'administrative','elementType': 'geometry.fill','stylers': [{ 'color': '#000000' }]},{'featureType': 'administrative','elementType': 'geometry.stroke','stylers': [{ 'color': '#144b53' },{ 'lightness': 14 },{ 'weight': 1.4 }]}], | |
} | |
var mapElement = document.getElementById('map'); | |
var map = new google.maps.Map(mapElement, mapOptions); | |
var locations = [ | |
]; | |
for (i = 0; i < locations.length; i++) { | |
marker = new google.maps.Marker({ | |
icon: '', | |
position: new google.maps.LatLng(locations[i][1], locations[i][2]), | |
map: map | |
}); | |
} | |
} | |
}()); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment