Nous utilisons des cookies pour vous garantir la meilleure expérience sur notre site. Si vous continuez à utiliser ce dernier, nous considèrerons que vous acceptez l'utilisation des cookies. J'ai compris ! ou En savoir plus !.
banniere

Le portail francophone de la géomatique


Toujours pas inscrit ? Mot de passe oublié ?
Nom d'utilisateur    Mot de passe              Toujours pas inscrit ?   Mot de passe oublié ?

#1 Thu 26 January 2012 11:35

icadedt
Participant assidu
Lieu: ici et là
Date d'inscription: 21 Jul 2006
Messages: 478

plugin google earth dans formulaire access

Bonjour,

j'utilise le plugin de google earth de la manière suivante:
1-je crée une page html simple dans laquelle se trouve mon google earth , on la nomme "toto.html"
2-dans mon formulaire access, j'insere un controle activeX de type navigateur web Internet Explorer ("microsoft web browser"), je définis l'url de "toto.html"  dans ce controle

quand je lance ce formulaire, tout marche comme prévu , j'ai bien le globe de google earth qui s'affiche et dans lequel on peut naviguer sans bug.

Le probleme c'est que quand on n'interagit pas avec le formulaire en question au bout de quelques minutes, le formulaire se freeze et ne répond plus...

Savez-vous comment faire pour éviter ce bug?

voici le code de "toto.html"

Code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <head>
<!--
Copyright 2008 Google Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
    <title>Hello Google Earth!</title>
    <!-- *** Replace the key below below with your own API key, available at http://code.google.com/apis/maps/signup.html *** -->
    <script src="http://www.google.com/jsapi?key=ABQIAAAAwbkbZLyhsmTCWXbTcjbgbRSzHs7K5SvaUdm8ua-Xxy_-2dYwMxQMhnagaawTo7L1FE1-amhuQxIlXw"></script>
    <script>
google.load("earth", "1");

var ge = null;

function init() {
  google.earth.createInstance("map3d", initCallback, failureCallback);
}

function initCallback(object) {
  ge = object;
  ge.getWindow().setVisibility(true);
}

function failureCallback(object) {
}
    </script>

  </head>
  <body onload='init()' id='body'>
    <center>
      <div>
        Hello, Earth!
      </div>

      <div id='map3d' style='border: 1px solid silver; height: 600px; width: 800px;'></div>
    </center>
  </body>

</html>

bon, fausse alerte le probleme venait de Internet Explorer... Je l'ai réinstallé et le probleme est résolu

Dernière modification par icadedt (Fri 27 January 2012 10:46)

Hors ligne

 

Pied de page des forums

Powered by FluxBB