function criaTPhoto(mapa, imgSrc) {
	var photo = new TPhoto();
	var bound = mapa.fromLatLngToContainerPixel(mapa.getBounds().getCenter());
	var tImagem = 300;

	photo.id = 'hidrotonicoi9Img';
	photo.src = imgSrc;
	photo.percentOpacity = 60;
	photo.anchorTopLeft = mapa.fromContainerPixelToLatLng(new GPoint(bound.x-tImagem/2, bound.y-tImagem/2));
	photo.anchorBottomRight = mapa.fromContainerPixelToLatLng(new GPoint(bound.x-tImagem/2, bound.y-tImagem/2));

	mapa.addTPhoto(photo);
	return photo;
}

function atualizaTPhoto(mapa, objPhoto) {
	var tImagem = 300;
	var bound = mapa.fromLatLngToContainerPixel(mapa.getBounds().getCenter());
	mapa.removeTPhoto(objPhoto);
	
	bound = mapa.fromLatLngToContainerPixel(mapa.getBounds().getCenter());									
	objPhoto.anchorTopLeft = mapa.fromContainerPixelToLatLng(new GPoint(bound.x-tImagem/2, bound.y-tImagem/2));
	objPhoto.anchorBottomRight = mapa.fromContainerPixelToLatLng(new GPoint(bound.x-tImagem/2, bound.y-tImagem/2));
	
	mapa.addTPhoto(objPhoto);
}
