WordPress.org

Forums

Promotion Slider
Embedding Google Maps (1 post)

  1. ndrwld
    Member
    Posted 4 years ago #

    I embeded Google Maps into slider. There is no problem if slide is in first place (#1).
    In other cases only one image tile of Google Maps is downloaded.

    I creating Google Maps slider by inserting next code into "Insert Ad Code" area:

    <script type="text/javascript"
        src="http://maps.google.com/maps/api/js?sensor=true">
    </script>
    <script type="text/javascript">
      function initialize() {
        var centerlatlng = new google.maps.LatLng(42.24, 0.17);
        var myOptions = {
          zoom: 7,
          center: centerlatlng,
          mapTypeId: google.maps.MapTypeId.TERRAIN,
          mapTypeControl: false,
          streetViewControl: false
        };
        var map = new google.maps.Map(document.getElementById("map_canvas"),
            myOptions);
      }
    </script>
    
    <body onload="initialize()">
      <div id="map_canvas" style="width:100%; height:100%"></div>

    I think this is jQuery or Gmaps bug. Am I right?
    I saw similar issue in http://iloveny.com/ slider. But it occurs rarely.

    http://wordpress.org/extend/plugins/promotion-slider/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Promotion Slider
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic