handleman
11/21/2014 - 1:13 PM

hack to give classes on goole map interface elements

hack to give classes on goole map interface elements

controlList = {
	'map_type_control': 'margin-top: 5px; margin-right: 5px; margin-bottom: 5px; margin-left: 5px; z-index: 11; position: absolute; cursor: pointer; right: 0px; top: 0px; ',
	'pan_control': 'cursor: url(https://maps-api-ssl.google.com/intl/en_us/mapfiles/openhand_8_8.cur), default; width: 78px; height: 78px; position: absolute; left: 0px; top: 0px; ',
	'zoom_control': 'position: absolute; left: 27px; top: 128px; ',
	'streetmap_control': 'width: 32px; height: 38px; overflow-x: hidden; overflow-y: hidden; position: absolute; left: 0px; top: 0px; ',
};

function labelControls() {
	$.each(controlList, function(id, attr) {
	  $('div[style^="' + attr + '"]').attr('class',id);
	});
}