tombatossals/angular-leaflet-directive — pull request #41 by teamon (2013-05-15 09:42:23+00:00)
Title: Call setView only if center is valid

Since there are some minor issues with timing when calling setView too frequently one way to work with that is setting the center.let/lng to undefined first (and skip calling setView) and then call only when set to proper values.