title: Google Maps - FusionTablesLayer to Polygon
body: <p>I'm using Google Maps API and jquery-ui-maps (this questions has nothing to do with the plugin which is working great).</p>
  
  <p>I've created a FusionTablesLayer with all countries except Mozambique. The user could place a marker and reposition it. I'm trying to find a way to block the drag (or alert the user, it doesn't matter now) if he tries to place the marker outside Mozambique (over the FusionTablesLayer).</p>
  
  <p>After some research I discover this method: <strong>containsLocation(point:LatLng, polygon:Polygon)</strong>, which computes whether the given point lies inside the specified polygon.</p>
  
  <p>It <strong>should receive a Polygon and I've got a FusionTablesLayer</strong>. Any clue how to solve this?</p>
  
  <p>Here's my code:<a href="http://jsfiddle.net/Lq2p5/" rel="noreferrer"><strong>FIDDLE</strong></a></p>
  
  <p>Try to place a marker and drag it...</p>
  
  <pre><code>//Initialize the map
  var mapa = $('#map_canvas').gmap({'center': '-18.646245,35.815918'});
  $('#map_canvas').gmap('option', 'zoom', 7);
  
  //create the layer (all countries except Mozambique)
  var world_geometry;
  $('#map_canvas').gmap().bind('init', function(event, map) {
      world_geometry = new google.maps.FusionTablesLayer({
          query: {
              select: 'geometry',
              from: '1N2LBk4JHwWpOY4d9fobIn27lfnZ5MDy-NoqqRpk',
              where: "ISO_2DIGIT NOT EQUAL TO 'MZ'"
          },
          styles: [{
                  polygonOptions: {
                      fillColor: "#333333",
                      fillOpacity: 0.3
                  }
              }],
          map: map,
          suppressInfoWindows: true
      });
  
  });
  
  $('#map_canvas').gmap().bind('init', function(event, map) {
      $(map).click(function(event) {
          $('#map_canvas').gmap('clear', 'markers');
          $('#map_canvas').gmap('addMarker', {
              'position': event.latLng,
              'draggable': true,
              'bounds': false
          }, function(map, marker) {
          }).dragend(function(event) {
              //I need to check if the marker is over the FusionTablesLayer and block the drag.
              //var test = google.maps.geometry.poly.containsLocation(event.latLng, world_geometry);
          }).click(function() {
          })
      });
  });
  </code></pre>