786
| <![CDATA[<script>
var map;
var locations;
var styles = [];
function initMap() {
var locations = [
[
'CENTRO DE REFERENCIA DA ASSISTENCIA SOCIAL</br><i class="fa fa-heartbeat" aria-hidden="true"></i> RUA SANTA LUZIA , N.SN - LAPA</br>DE SEGUNDA A SEXTA DAS 07H30 ÀS 11:30 e de 13:30 às 17H00',
-3.7596441, -40.8171854, 3 ],
[
'Centro Educacional Raimundo Pereira</br><i class="fa fa-heartbeat" aria-hidden="true"></i> Rua Joaquim Pereira, N.SN - Centro</br>Segunda a Sexta - das 07:00 às 1100, 13:00 às 17:00 e 18:00 às 22:00',
-3.758564799999999, -40.8144388, 1 ],
[
'CONTROLADORIA GERAL</br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7610445, -40.8138563, 5 ],
[
'GABINETE DO PREFEITO</br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7610445, -40.8138563, 5 ],
[
'GUARDA MUNICIPAL </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA CAP JOAQUIM FRANCISCO, N.SN - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEGUNDA DAS 08H00 ÀS 23H00',
-3.7595384, -40.8149147, 5 ],
[
'OUVIDORIA GERAL</br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA, DAS 8:00 AS 14:00 H',
-3.7610445, -40.8138563, 5 ],
[
'PROCURADORIA</br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7610445, -40.8138563, 5 ],
[
'SECRETARIA DE ADMINISTRAÇÃO </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7610445, -40.8138563, 5 ],
[
'SECRETARIA DE CULTURA E TURISMO </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7610445, -40.8138563, 5 ],
[
'SECRETARIA DE DESENVOLVIMENTO E PRODUÇÃO </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA NORBERTO RODRIGUES, N.SN - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7541085, -40.8173415, 5 ],
[
'SECRETARIA DE EDUCAÇÃO E DESPORTO </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA ANTONIO COSTA , N.SN - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7644256, -40.8213889, 5 ],
[
'SECRETARIA DE FAZENDA </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7610445, -40.8138563, 5 ],
[
'SECRETARIA DE INFRAESTRUTURA E MEIO AMBIENTE</br><i class="fa fa-map-marker" aria-hidden="true"></i> AV NAIR CARNEIRO, N.SN - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7562676, -40.8157016, 5 ],
[
'SECRETARIA DE RELACIONAMENTO INSTITUCIONAL </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA JOAQUIM PEREIRA - CENTRO ADMINISTRATIVO, N.855 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7610445, -40.8138563, 5 ],
[
'SECRETARIA DE SAÚDE </br><i class="fa fa-map-marker" aria-hidden="true"></i> AV NAIR CARNEIRO, N.400 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7562676, -40.8157016, 5 ],
[
'SECRETARIA DE TRANSPORTES</br><i class="fa fa-map-marker" aria-hidden="true"></i> AV NAIR CARNEIRO, N.SN - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7562676, -40.8157016, 5 ],
[
'SECRETARIA DO TRABALHO E ASSISTÊNCIA SOCIAL </br><i class="fa fa-map-marker" aria-hidden="true"></i> RUA CAP JOAQUIM FRANCISCO - CENTRO COMUNITARIO, N.603 - CENTRO</br><i class="fa fa-clock-o" aria-hidden="true"></i> DE SEGUNDA A SEXTA DAS 07:30 H ÀS 11:30 H E DE 13:30 H ÀS 17:00 H',
-3.7595384, -40.8149147, 5 ],
];
var longitude = locations[0][1];
var latitude = locations[0][2];
map = new google.maps.Map(document.getElementById('map'), {
zoom: 12,
center: new google.maps.LatLng(longitude, latitude),
styles: styles
});
var infowindow = new google.maps.InfoWindow;
var marker, i;
var image = {
1: {
url: 'imagens/maps/educacao.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
},
2: {
url: 'imagens/maps/saude.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
},
3: {
url: 'imagens/maps/assistencia.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
},
4: {
url: 'imagens/maps/grupo.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
},
5: {
url: 'imagens/maps/secretaria.png',
size: new google.maps.Size(50, 50),
origin: new google.maps.Point(0, 0),
anchor: new google.maps.Point(0, 50)
}
};
for (i = 0; i < locations.length; i++) {
marker = new google.maps.Marker({
position: new google.maps.LatLng(locations[i][1], locations[i][2]),
title: locations[i][0],
map: map,
icon: image[locations[i][3]]
});
google.maps.event.addListener(marker, 'click', (function(marker, i) {
return function() {
infowindow.setContent(locations[i][0]);
infowindow.open(map, marker);
}
})(marker, i));
}
filterMarkers = function(category) {
//console.log(category);
var markers = gmarkers[i];
for (var i = 0; i < gmarkers.length; i++) {
// If is same category or category not picked
if (gmarkers[i].category == category || category.length === 0) {
console.log("category is " + gmarkers[i].category);
gmarkers[i].setVisible(true);
}
// Categories don't match
else {
gmarkers[i].setVisible(false);
}
}
}
}
</script>]]>
|