1. Home >
  2. Documentation >
  3. Layers >
  4. groundoverlay
 

groundoverlay

This function allows to add a google.maps.GroundOverlay.

Usage

Parameters

Example

$("#test").gmap3(
  { map:{
      options:{  
        center: [40.740,-74.18], 
        zoom: 12
      }
    },
    groundoverlay:{
      options:{
        url: "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg",
        bounds: {
          ne:{lat:40.765641, lng:-74.139235},
          sw:{lat:40.716216, lng:-74.213393}
        },
        opts:{
          opacity: 0.8
        }
      },
      events: {
        click: function(overlay){
          alert('clicked on '+ overlay.url);
        }
      }
    }
  }
);
Close