';//'El Cafè de l’Ateneu';
for (var entitat in array_entitats)
{
posicionar_google_maps(array_entitats[entitat][0],array_entitats[entitat][1],array_entitats[entitat][2],array_entitats[entitat][3]);
// Esperem uns milisegons per que si hi han moltes entitats firefox no les mostre totes
sleep(200);
}
}
);
}
function sleep(milliseconds) {
var start = new Date().getTime();
for (var i = 0; i < 1e7; i++) {
if ((new Date().getTime() - start) > milliseconds){
break;
}
}
}
function showAddress2(address) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
alert(address + " not found");
} else {
map.setCenter(point, 13);
/*var marker = new GMarker(point);
map.addOverlay(marker);*/
//marker.openInfoWindowHtml(address);
}
}
);
}
}
function showAddress(address,nivell_zoom,html_entitat) {
if (geocoder) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
//alert(address + " not found");
showAddress2('Igualada, Catalunya, Spain ');
} else {
if(html_entitat == false)
{
map.setCenter(point, nivell_zoom);
}
var marker = new GMarker(point);
if((html_entitat != '')&&(html_entitat != false))
{
map.addOverlay(marker);
}
crea_events_marcador(marker,html_entitat);
//marker.openInfoWindowHtml(html_entitat);
}
}
);
}
}
function posicionar_google_maps(longitud,latitud,adressa_gmaps,html_entitat)
{
if((longitud == '') || (latitud == ''))
{
geocoder = new GClientGeocoder();
showAddress(adressa_gmaps,13,html_entitat);
}
else
{
var myGeographicCoordinates = new GLatLng(latitud,longitud);
//map.setCenter(myGeographicCoordinates, 13);
var marker = new GMarker(myGeographicCoordinates);
map.addOverlay(marker);
// marker.openInfoWindowHtml(html_entitat,{maxWidth: 100});
crea_events_marcador(marker,html_entitat);
}
}
// Crea els events del marcador, seran el de mostrar el texte al pasar per sobre i amargarlo
function crea_events_marcador(marcador,html_entitat)
{
// Event al clicar sobre
GEvent.addListener(marcador, "mouseover", function()
{
this.openInfoWindowHtml(html_entitat,{maxWidth:200});
//this.show();
}
);
}
//]]>
Edifici de caire monumental construït entre els anys 1931 i 1941 per l’arquitecte Joan Rubió Bellver amb el llegat de les germanes Castells, articulant ...
Aquest recinte es troba al carrer dels Països Baixos, en el polígon industrial de les Comes. Respon al projecte presentat per Enric Miralles i Carme Pinós, ...