Google Maps + Ativex dejó de funcionar?

Post Reply
MGA
Posts: 1258
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá
Contact:

Google Maps + Ativex dejó de funcionar?

Post by MGA »

Google Maps + Ativex dejó de funcionar?

MENSAGEM NO BROWSE:
Você está usando um navegador incompatível com a API Maps JavaScript. Avalie a possibilidade de usar outro navegador. Saiba mais Dispensar


TEST.HTML

<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="utf-8">
<title>Geocoding service</title>
<style>
html, body, #map-canvas {
height: 100%;
margin: 0px;
padding: 0px
}
#panel {
position: absolute;
top: 5px;
left: 50%;
margin-left: -180px;
z-index: 5;
background-color: #fff;
padding: 5px;
border: 1px solid #999;
}
</style>
<script src="https://maps.googleapis.com/maps/api/js?&v=3.22&sensor=false"></script>
<script>
var geocoder;
var map;
function initialize() {
geocoder = new google.maps.Geocoder();
var latlng = new google.maps.LatLng(-23.347102,-51.979115);
var mapOptions = {
zoom: 15,
center: latlng
}
map = new google.maps.Map(document.getElementById('map-canvas'), mapOptions);
}

function codeAddress() {
var address = document.getElementById('address').value;
geocoder.geocode( { 'address': address}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
map.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({
map: map,
position: results[0].geometry.location
});
} else {
alert('Geocode was not successful for the following reason: ' + status);
}
});
}
function clickButton(){
document.getElementById('button').click();
}

</script>
</head>
<input id="address" type="hidden" value="AVENIDA BRASIL, MARINGA, BRASIL">
<input type="hidden" id="button" value="Geocode" onclick="codeAddress()">
<body onload="initialize(); codeAddress('AVENIDA BRASIL, MARINGA, BRASIL')">
<div id="map-canvas"></div>
</body>
</html>
ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
User avatar
cnavarro
Posts: 6557
Joined: Wed Feb 15, 2012 8:25 pm
Location: España
Been thanked: 3 times

Re: Google Maps + Ativex dejó de funcionar?

Post by cnavarro »

El problema es el soporte para navegadores antiguos: Internet.Explorer, que es sustituído por Edge
viewtopic.php?f=3&t=41359&p=247843&hilit=webview&sid=2d26ec1f3a10c9958251e9b91ad2d970#p247843
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Post Reply