var map;
var berlinmitte = new google.maps.LatLng(52.527945, 13.404924);
var berlinraureif = new google.maps.LatLng(52.52835, 13.405123);

var MY_MAPTYPE_ID = 'RAUREIF';

function initializeGoogleMap() {

    var stylez = [
    {
        featureType: "road",
        elementType: "geometry",
        stylers: [
        {
            hue: "#ffffff"
        },
        {
            saturation: -100
        },
        {
            lightness: -70
        },
        {
            visibility: "simplified"
        }
        ]
    },
    {
        featureType: "road",
        elementType: "labels",
        stylers: [
        {
            hue: "#ffffff"
        },
        {
            saturation: -100
        },
        //		{ gamma: 0.01 },
        {
            lightness: -50
        }
        ]
    },
    {
        featureType: "landscape",
        elementType: "geometry",
        stylers: [
        {
            hue: "#000000"
        },
        {
            saturation: 75
        },
        {
            lightness: -100
        },
        {
            visibility: "simplified"
        }
        ]
    },
    {
        featureType: "poi",
        elementType: "all",
        stylers: [
        {
            hue: "#000000"
        },
        {
            saturation: -100
        },
        {
            lightness: -85
        },
        {
            visibility: "simplified"
        }
        ]
    },
    {
        featureType: "administrative",
        elementType: "all",
        stylers: [
        {
            visibility: "off"
        }
        ]
    },
    {
        featureType: "water",
        elementType: "all",
        stylers: [
        {
            lightness: -75
        },
        {
            visibility: "simplified"
        }
        ]
    }


    ];



    var mapOptions = {
        zoom: 15,
        center: berlinmitte,
        mapTypeControl: false,
        streetViewControl: false,
        mapTypeId: MY_MAPTYPE_ID
    };

    map = new google.maps.Map(document.getElementById("map_canvas"),
    mapOptions);

    var styledMapOptions = {
        name: "Raureif"
    };

    var image = '/theme/img/map-pin-rrfwhite.png';

    var marker = new google.maps.Marker({
        position: berlinraureif,
        animation: google.maps.Animation.DROP,
        map: map,
        title: "Raureif GmbH, Gormannstr. 14",
        icon: image
    });

    var rrfMapType = new google.maps.StyledMapType(stylez, styledMapOptions);

    map.mapTypes.set(MY_MAPTYPE_ID, rrfMapType);
}

