title: alerts are not showing in geofencing when marker is outside of polygon geofence in google maps
body: <p>i have code for geofencing , in that polygon shape is there while dragging one marker out side the polygon its giving alert , but i need it should give alert automatically when page loads instead of dragging manually to outside.</p>
  
  <p>code</p>
  
  <pre><code>&lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;GMaps.js &amp;mdash; Geofences&lt;/title&gt;
      &lt;script type="text/javascript"
              src="https://maps.googleapis.com/maps/api/js?sensor=true&amp;key=AIzaSyDci4vYApOxVdKqwlpXSv9h77AcWbNuzmQ&amp;libraries=drawing"&gt;
      &lt;/script&gt; &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="../gmaps.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="http://twitter.github.com/bootstrap/1.3.0/bootstrap.min.css" /&gt;
      &lt;link rel="stylesheet" type="text/css" href="examples.css" /&gt;
  &lt;/head&gt;
      &lt;body onload="runMaps()"&gt;
          &lt;script&gt;
  
              var map;
  
              $(document).ready(function () {
                  map = new GMaps({
                      el: '#map',
                      lat: -12.043333,
                      lng: -77.028333
                  });
                  var path = [
                        [-12.040397656836609, -77.03373871559225],
                        [-12.040248585302038, -77.03993927003302],
                        [-12.050047116528843, -77.02448169303511],
                        [-12.044804866577001, -77.02154422636042]
                  ];
                  var drawingManager = new google.maps.drawing.DrawingManager({
                      drawingMode: google.maps.drawing.OverlayType.MARKER,
                      drawingControl: true,
                      drawingControlOptions: {
                          position: google.maps.ControlPosition.TOP_CENTER,
                          drawingModes: ['marker', 'circle', 'polygon', 'polyline', 'rectangle']
                      },
                      markerOptions: { icon: 'https://developers.google.com/maps/documentation/javascript/examples/full/images/beachflag.png' },
                      circleOptions: {
                          fillColor: '#ffff00',
                          fillOpacity: 1,
                          strokeWeight: 5,
                          clickable: false,
                          editable: true,
                          zIndex: 1
                      }
                  });
                  drawingManager.setMap(map);
  
  
                  polygon = map.drawPolygon({
                      paths: path,
                      strokeColor: '#BBD8E9',
                      strokeOpacity: 1,
                      strokeWeight: 3,
                      fillColor: '#BBD8E9',
                      fillOpacity: 0.6
                  });
                  map.addMarker({
                      lat: -12.043333,
                      lng: -77.028333,
                      draggable: true,
                      fences: [polygon],
                      outside: function (marker, fence) {
                          alert('This marker has been moved outside of its fence');
                      }
                  });
                  map.addMarker({
                      lat: -12.041111,
                      lng: -77.021111,
                      draggable: true,
                      fences: [polygon],
                      outside: function (marker, fence) {
                          alert('This marker has been moved outside of its fence');
                      }
                  });
              });
  
          &lt;/script&gt;
          &lt;div id="map" style="height:800px"&gt;&lt;/div&gt;
      &lt;/body&gt;
  </code></pre>