129
| <![CDATA[<script type="text/javascript">//<![CDATA[
var tstPhocaMap = document.getElementById('phocaMap');
var tstIntPhocaMap;
var mapPhocaMap;
var markersmapPhocaMap = [];
function CancelEventPhocaMap(event) {
var e = event;
if (typeof e.preventDefault == 'function') e.preventDefault();
if (typeof e.stopPropagation == 'function') e.stopPropagation();
if (window.event) {
window.event.cancelBubble = true; /* for IE */
window.event.returnValue = false; /* for IE */
}
}
function CheckPhocaMap() {
if (tstPhocaMap) {
if (tstPhocaMap.offsetWidth != tstPhocaMap.getAttribute("oldValue")) {
tstPhocaMap.setAttribute("oldValue",tstPhocaMap.offsetWidth);
if (tstPhocaMap.getAttribute("refreshMap")==0) {
if (tstPhocaMap.offsetWidth > 0) {
clearInterval(tstIntPhocaMap);
getPhocaMap();
tstPhocaMap.setAttribute("refreshMap", 1);
}
}
}
}
}
function getPhocaMap(){
if (tstPhocaMap.offsetWidth > 0) {
var phocaLatLng = new google.maps.LatLng(-19.626904580972226, -43.89515519142151);
var phocaOptions = {
zoom: 14,
center: phocaLatLng,
mapTypeControl: false,
navigationControl: false,
scaleControl: true,
scrollwheel: '',
disableDoubleClickZoom: '',
styles: '',
mapTypeId: google.maps.MapTypeId.ROADMAP
};
mapPhocaMap = new google.maps.Map(document.getElementById('phocaMap'), phocaOptions);
var phocaImagedefault2 = new google.maps.MarkerImage('/media/com_phocamaps/images/iyellow/image.png',
new google.maps.Size(26,30),
new google.maps.Point(0,0),
new google.maps.Point(5,30));
var phocaImageShadowdefault2 = new google.maps.MarkerImage('/media/com_phocamaps/images/iyellow/shadow.png',
new google.maps.Size(41,30),
new google.maps.Point(0,0),
new google.maps.Point(5,30));
var phocaImageShapedefault2 = {
coord: [18,1,19,2,21,3,23,4,24,5,24,6,24,7,24,8,23,9,23,10,22,11,22,12,21,13,20,14,20,15,19,16,19,17,18,18,17,19,18,20,20,21,22,22,22,23,22,24,22,25,18,26,15,27,12,28,8,29,4,29,4,28,3,27,3,26,3,25,3,24,3,23,2,22,2,21,2,20,2,19,2,18,1,17,1,16,1,15,1,14,1,13,1,12,1,11,9,10,10,9,10,8,11,7,11,6,12,5,12,4,13,3,14,2,14,1],
type: 'poly'
};
var phocaPoint8 = new google.maps.LatLng(-19.62663931167071, -43.895152509212494);
var markerPhocaMarker8 = new google.maps.Marker({
title:"Prefeitura (Edifício Sede)",
icon:phocaImagedefault2,
shadow:phocaImageShadowdefault2,
shape:phocaImageShapedefault2,
position: phocaPoint8,
map: mapPhocaMap
});
var infoPhocaWindow8 = new google.maps.InfoWindow({
content: '<div style="font-size:120%;margin: 5px 0px;font-weight:bold;">Prefeitura (Edifício Sede)</div><div><p>Rua São João, nº 290, <br />Centro, Lagoa Santa / MG<br />CEP: 33.230-103.</p><p>Telefone: (31) 3688-1360.</p><p> ;</p></div>'
});
google.maps.event.addListener(markerPhocaMarker8, 'click', function() {
infoPhocaWindow8.open(mapPhocaMap, markerPhocaMarker8 );
});
google.maps.event.trigger(markerPhocaMarker8, 'click');
}
}
function initMap() {
tstPhocaMap.setAttribute("oldValue",0);
tstPhocaMap.setAttribute("refreshMap",0);
tstIntPhocaMap = setInterval("CheckPhocaMap()",500);
}
function initMaps() {
initMap();
}
//]]></script>]]>
|