
/* Un simple mapa de dirección */
function mapasimple(cajamapa,imagen,sombra,latitud,longitud,zoom)
{
	// Creamos el mapa
	var map = new GMap2(document.getElementById(cajamapa));
	map.setUIToDefault();
	map.setCenter(new GLatLng(latitud,longitud), zoom);
	map.disableScrollWheelZoom();

	// Definimos el icono
	var icon = new GIcon();
	icon.image = imagen;
	icon.shadow = sombra;
	icon.iconAnchor = new GPoint(3,48);
	icon.infoWindowAnchor = new GPoint(7,1);

	// Traemos las coordenadas
	var latlng = new GLatLng(latitud,longitud);
	// Creamos el marcador
	var marcador = new GMarker(latlng, icon);
	map.addOverlay(marcador);
}



/* Un simple mapa de dirección que se oculta despues de cargarse para que el centrado funcione correctamente */
function mapaoculto(cajamapa,imagen,sombra,latitud,longitud,zoom)
{
	// Creamos el mapa

	var map = new GMap2(document.getElementById(cajamapa));
	map.setUIToDefault();
	map.setCenter(new GLatLng(latitud,longitud), zoom);
	map.disableScrollWheelZoom();

	// Definimos el icono
	var icon = new GIcon();
	icon.image = imagen;
	icon.shadow = sombra;
	icon.iconAnchor = new GPoint(3,48);
	icon.infoWindowAnchor = new GPoint(7,1);


	// Traemos las coordenadas
	var latlng = new GLatLng(latitud,longitud);
	// Creamos el marcador
	var marcador = new GMarker(latlng, icon);
	map.addOverlay(marcador);
	document.getElementById(cajamapa).style.display='none';
}
