';//'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);
}
}
);
// Indica que al carregase les dades de google maps s'han de mostrar els llocs a visitar
GEvent.addListener(map, "load", function()
{
array_items = '';
array_items = new Array(9);
array_items[0] = new Array(0,1,2,3);
array_items[1] = new Array(0,1,2,3);
array_items[2] = new Array(0,1,2,3);
array_items[3] = new Array(0,1,2,3);
array_items[4] = new Array(0,1,2,3);
array_items[5] = new Array(0,1,2,3);
array_items[6] = new Array(0,1,2,3);
array_items[7] = new Array(0,1,2,3);
array_items[8] = new Array(0,1,2,3);
for (var entitat in array_items)
{
if((array_items[entitat][0] != '') && (array_items[entitat][1] != ''))
{
posicionar_google_maps(array_items[entitat][0],array_items[entitat][1],array_items[entitat][2],array_items[entitat][3]);
// Esperem uns milisegons per que si hi han moltes entitats firefox no les mostre totes
sleep(200);
}
}
}
);
if (GBrowserIsCompatible())
{
this.map.addControl(new GSmallMapControl());
this.map.addControl(new GMapTypeControl());
geocoder = new GClientGeocoder();
showAddress('Igualada, Catalunya, Spain ',7,false);
//map.openInfoWindow(map.getCenter(),document.createTextNode('Igualada'),50);
}
}
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, ...