function getMapsByAdress(adressString){
    //Maps initialisieren und in einen Container laden:
            //-------------------------------------------------
            var geocoder = new google.maps.Geocoder();
            var geoLocation = new google.maps.LatLng(0, 0);
            var myOptions = {
                  zoom: 10,
                  center: geoLocation,
                  mapTypeId: google.maps.MapTypeId.ROADMAP,
                  mapTypeControlOptions: {
                    style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
                  }
            };

            var map = new google.maps.Map(document.getElementById("imgContainer"), myOptions) ;
            var marker = new google.maps.Marker({
              position: geoLocation,
              map: map,
              draggable: false
            });

            //Adresse ermitteln und die Karte ausrichten:
            //-------------------------------------------
            geocoder.geocode({'address': adressString},
            function(results, status) {
              if (status == google.maps.GeocoderStatus.OK) {
                var position = results[0].geometry.location;
                map.setCenter(position);
                map.setZoom(15);
                marker.setPosition(position);
              } else {
                document.getElementById("imgContainer").innerHTML = 'Die Position konnte nicht automatisch ermittelt werden. ' + status;
              }
            })
}

function getMaps(lat, lng){
    //Maps initialisieren und in einen Container laden:
            //-------------------------------------------------
            var geocoder = new google.maps.Geocoder();
            var geoLocation = new google.maps.LatLng(lat, lng);
            var myOptions = {
                  zoom: 15,
                  center: geoLocation,
                  mapTypeId: google.maps.MapTypeId.ROADMAP,
                  mapTypeControlOptions: {
                    style: google.maps.MapTypeControlStyle.DROPDOWN_MENU
                  }
            };

            var map = new google.maps.Map(document.getElementById("imgContainer"), myOptions) ;
            var marker = new google.maps.Marker({
              position: geoLocation,
              map: map,
              draggable: false
            });

            marker.setPosition(position);

}


