﻿function showGoogleMap(lat, lng, elid) {

	var point = new google.maps.LatLng(lat, lng);

	var myMapOptions = {
		zoom: 10,
		center: point,
		mapTypeId: google.maps.MapTypeId.ROADMAP
	};

	var map = new google.maps.Map(document.getElementById(elid), myMapOptions);

	var image = new google.maps.MarkerImage(
    '/images/image.png',
    new google.maps.Size(31, 58),
    new google.maps.Point(0, 0),
    new google.maps.Point(16, 58)
  );

	var shadow = new google.maps.MarkerImage(
    '/images/shadow.png',
    new google.maps.Size(63, 58),
    new google.maps.Point(0, 0),
    new google.maps.Point(16, 58)
  );

	var shape = {
		coord: [30, 0, 30, 1, 30, 2, 30, 3, 30, 4, 30, 5, 30, 6, 30, 7, 30, 8, 30, 9, 30, 10, 30, 11, 30, 12, 30, 13, 30, 14, 30, 15, 30, 16, 30, 17, 30, 18, 30, 19, 30, 20, 30, 21, 30, 22, 30, 23, 30, 24, 30, 25, 30, 26, 30, 27, 30, 28, 30, 29, 30, 30, 17, 31, 17, 32, 17, 33, 17, 34, 17, 35, 25, 36, 24, 37, 24, 38, 23, 39, 23, 40, 22, 41, 22, 42, 21, 43, 21, 44, 21, 45, 20, 46, 20, 47, 19, 48, 19, 49, 18, 50, 18, 51, 17, 52, 17, 53, 16, 54, 16, 55, 15, 56, 15, 56, 14, 55, 14, 54, 13, 53, 13, 52, 12, 51, 12, 50, 11, 49, 11, 48, 10, 47, 10, 46, 9, 45, 9, 44, 8, 43, 8, 42, 7, 41, 7, 40, 6, 39, 6, 38, 5, 37, 5, 36, 13, 35, 13, 34, 13, 33, 13, 32, 13, 31, 0, 30, 0, 29, 0, 28, 0, 27, 0, 26, 0, 25, 0, 24, 0, 23, 0, 22, 0, 21, 0, 20, 0, 19, 0, 18, 0, 17, 0, 16, 0, 15, 0, 14, 0, 13, 0, 12, 0, 11, 0, 10, 0, 9, 0, 8, 0, 7, 0, 6, 0, 5, 0, 4, 0, 3, 0, 2, 0, 1, 0, 0, 30, 0],
		type: 'poly'
	};

	var marker = new google.maps.Marker({
		draggable: true,
		raiseOnDrag: false,
		//icon: image,
		//shadow: shadow,
		shape: shape,
		map: map,
		position: point
	});

}
