tombatossals/angular-openlayers-directive — pull request #11 by benverhees (2014-11-02 19:48:50+00:00)
Title: Fix error when using a GeoJSON object instead of a url for a source

Using a GeoJSON object instead of a url for a source resulted in an error: '[AngularJS - Openlayers] - You need a GeoJSON features property to add a GeoJSON layer.'
The existence of a features property was checked for but the geojson property was passed to create an ol.source.GeoJSON object. This updates the condition to check for the geojson property and applies the same fix for the topojson source.