﻿
propertydetail = function() {
    function showGoogleMap(mapLat, mapLng, mapZoom) {
        if (GBrowserIsCompatible()) {
            map = new GMap2(document.getElementById('divPropertymap'));
            
            var customUI = map.getDefaultUI();
            customUI.maptypes.physical = false;
            customUI.controls.scalecontrol = false;
            customUI.controls.smallzoomcontrol3d = true;
            customUI.controls.largemapcontrol3d = false;
            customUI.zoom.scrollwheel = false;
            map.setUI(customUI);

            //map.setUIToDefault();
            //map.setMapType(G_PHYSICAL_MAP);

            var MapLocation = new GLatLng(mapLat, mapLng);
            map.setCenter(MapLocation, mapZoom);
        }

        var myIcon = new GIcon();
        myIcon.image = '/images/markers/image.png';
        myIcon.shadow = '/images/markers/shadow.png';
        myIcon.iconSize = new GSize(32, 35);
        myIcon.shadowSize = new GSize(50, 35);
        myIcon.iconAnchor = new GPoint(16, 35);
        myIcon.infoWindowAnchor = new GPoint(16, 0);
        myIcon.printImage = '/images/markers/printImage.gif';
        myIcon.mozPrintImage = '/images/markers/mozPrintImage.gif';
        myIcon.printShadow = '/images/markers/printShadow.gif';
        myIcon.transparent = '/images/markers/transparent.png';

        var markerOptions = { icon: myIcon, draggable: false };
        marker = new GMarker(MapLocation, markerOptions);
        map.addOverlay(marker);
    }

    return {
    init: function(mapLat, mapLng, mapZoom) {
            showGoogleMap(mapLat, mapLng, mapZoom);
        }
    }

} ();




