desc : 'This is the best city in the world!',
desc : 'This city is aiiiiite!',
desc : 'This is the second best city in the world!',
desc : 'This city is live!',
desc : 'Sin City...\'nuff said!',
angular.module('mapsApp', [])
"featureType": "landscape",
"visibility": "simplified"
"featureType": "road.highway",
"visibility": "simplified"
"featureType": "road.arterial",
"featureType": "road.local",
"featureType": "transit",
"visibility": "simplified"
"featureType": "administrative.province",
"elementType": "geometry",
.controller('MapCtrl', function ($scope, MAP_STYLE, $timeout) {
center: new google.maps.LatLng(40.0000, -98.0000),
mapTypeIds: [google.maps.MapTypeId.ROADMAP, 'map_style']
var styledMap = new google.maps.StyledMapType(MAP_STYLE,
$scope.map = new google.maps.Map(document.getElementById('map'), mapOptions);
$scope.map.mapTypes.set('map_style', styledMap);
$scope.map.setMapTypeId('map_style');
var infoWindow = new google.maps.InfoWindow();
var createMarker = function (info){
var marker = new google.maps.Marker({
position: new google.maps.LatLng(info.lat, info.long),
marker.content = '<div class="infoWindowContent">' + info.desc + '</div>';
google.maps.event.addListener(marker, 'click', function(){
infoWindow.setContent('<h2>' + marker.title + '</h2>' + marker.content);
infoWindow.open($scope.map, marker);
$scope.markers.push(marker);
for (i = 0; i < cities.length; i++){
$scope.openInfoWindow = function(e, selectedMarker){
google.maps.event.trigger(selectedMarker, 'click');