<!DOCTYPE html>
<html ng-app="myApp">
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script src="script-tags-for-development.js"></script>
<script>
var app = angular.module('myApp', ['ngMap']);
app.controller("RectangleEventCtrl", function($compile, NgMap) {
  var vm = this;
  vm.ne, vm.sw;
  NgMap.getMap().then(function(map) {
    console.log('map', map);
    vm.map = map;
  });
  vm.boundsChanged = function() {
    vm.ne = this.getBounds().getNorthEast();
    vm.sw = this.g