B
B
BloodySucker2015-04-26 17:18:51
css
BloodySucker, 2015-04-26 17:18:51

How to solve the problem with google maps v3?

109.108.250.102/dubai/shop.html
When you click on "show map" a popup with google maps appears, but for some reason it is displayed crookedly.
If you remove jstcache="0" from the #maps object, inside which is #map, then everything becomes normal, but after reloading the page, even if you remove this parameter, it will not help, opening the page in another browser and repeating all this again everything works , but again same 1 time.
jstcache="0" is added automatically by the api itself.
How to solve the problem?

<script>function initialize() {
  var myLatlng = new google.maps.LatLng(-25.363882,131.044922);
  var mapOptions = {
    zoom: 4,
    center: myLatlng
  }
  var map = new google.maps.Map(document.getElementById('map'), mapOptions);

  var marker = new google.maps.Marker({
      position: myLatlng,
      map: map,
      title: 'Hello World!'
  });
}

google.maps.event.addDomListener(window, 'load', initialize);
    </script>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question