{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1475","labels_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1475/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1475/comments","events_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1475/events","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1475","id":104952277,"number":1475,"title":"Directive to create a polygon with multiple paths?","user":{"login":"lexi-lambda","id":759911,"avatar_url":"https://avatars.githubusercontent.com/u/759911?v=3","gravatar_id":"","url":"https://api.github.com/users/lexi-lambda","html_url":"https://github.com/lexi-lambda","followers_url":"https://api.github.com/users/lexi-lambda/followers","following_url":"https://api.github.com/users/lexi-lambda/following{/other_user}","gists_url":"https://api.github.com/users/lexi-lambda/gists{/gist_id}","starred_url":"https://api.github.com/users/lexi-lambda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexi-lambda/subscriptions","organizations_url":"https://api.github.com/users/lexi-lambda/orgs","repos_url":"https://api.github.com/users/lexi-lambda/repos","events_url":"https://api.github.com/users/lexi-lambda/events{/privacy}","received_events_url":"https://api.github.com/users/lexi-lambda/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-09-04T19:12:39Z","updated_at":"2015-09-09T18:29:18Z","closed_at":"2015-09-04T19:19:07Z","body":"I need to create a polygon with multiple paths so that I can have a \"cutout\" of a path. Specifically, I'm using two paths: one rectangular path to cover the whole map, and one circular path drawn counterclockwise to create a hole in the rectangle. This ends up looking like this:\r\n\r\n```coffee\r\ncircle = approximateCircle()\r\nrect = [\r\n  new google.maps.LatLng(-90, -180)\r\n  new google.maps.LatLng( 90, -180)\r\n  new google.maps.LatLng( 90,  180)\r\n  new google.maps.LatLng(-90,  180)\r\n]\r\nnew google.maps.Polygon\r\n  map: mapControl.getGMap()\r\n  paths: [rect, circle.reverse()]\r\n```\r\n\r\nThis works, but it obviously doesn't use the Angular interface, which I'd prefer if possible. Do any of the directives allow this? If not, would it make sense to add a `paths` option to the `polygon` and `polygons` directives?"},"comment":{"url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/comments/138999017","html_url":"https://github.com/angular-ui/angular-google-maps/issues/1475#issuecomment-138999017","issue_url":"https://api.github.com/repos/angular-ui/angular-google-maps/issues/1475","id":138999017,"user":{"login":"lexi-lambda","id":759911,"avatar_url":"https://avatars.githubusercontent.com/u/759911?v=3","gravatar_id":"","url":"https://api.github.com/users/lexi-lambda","html_url":"https://github.com/lexi-lambda","followers_url":"https://api.github.com/users/lexi-lambda/followers","following_url":"https://api.github.com/users/lexi-lambda/following{/other_user}","gists_url":"https://api.github.com/users/lexi-lambda/gists{/gist_id}","starred_url":"https://api.github.com/users/lexi-lambda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lexi-lambda/subscriptions","organizations_url":"https://api.github.com/users/lexi-lambda/orgs","repos_url":"https://api.github.com/users/lexi-lambda/repos","events_url":"https://api.github.com/users/lexi-lambda/events{/privacy}","received_events_url":"https://api.github.com/users/lexi-lambda/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T18:29:18Z","updated_at":"2015-09-09T18:29:18Z","body":"@nmccready Could you reopen this issue? It's clearly not fixed, as I've demonstrated. I might be willing to work on it and submit a pull request if you give some feedback on how it *should* be integrated with the existing API."}}