Skip to content

Commit c46d0c2

Browse files
committed
Merge pull request angular-ui#1700 from AbstractVisions/master
Improvе "center" watcher "ui-gmap-circle" directive for "geoJSON" compatibility
2 parents aecba46 + e0a1219 commit c46d0c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/coffee/directives/api/models/parent/circle-parent-model.coffee

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ angular.module('uiGmapgoogle-maps.directives.api.models.parent')
2626

2727
@setMyOptions = (newVals, oldVals) =>
2828
return if scope.settingFromDirective
29-
unless _.isEqual newVals,oldVals
29+
unless _.isEqual(newVals,oldVals) and
30+
newVals == oldVals and
31+
(if newVals? and oldVals? then newVals.coordinates == oldVals.coordinates else true)
3032
gObject.setOptions @buildOpts GmapUtil.getCoords(scope.center), scope.radius
3133

3234
@props = @props.concat [

0 commit comments

Comments
 (0)