FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Google Maps + Ativex dej贸 de funcionar?
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
Google Maps + Ativex dej贸 de funcionar?
Posted: Fri May 06, 2022 08:48 PM

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();
}

&lt;/script&gt;

</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
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: Google Maps + Ativex dej贸 de funcionar?
Posted: Sat May 07, 2022 03:18 PM

El problema es el soporte para navegadores antiguos: Internet.Explorer, que es sustitu铆do por Edge

viewtopic.php?f=3t=41359p=247843hilit=webviewsid=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

Continue the discussion