Skip to content

Commit

Permalink
v1.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
www committed Apr 21, 2016
2 parents 351d308 + b15141a commit f55b624
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 3 additions & 2 deletions dist/angular-openlayers-directive.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ angular.module('openlayers-directive').directive('olPath', ["$log", "$q", "olMap
return {
restrict: 'E',
scope: {
properties: '=olGeomProperties'
properties: '=olGeomProperties',
style: '=olStyle'
},
require: '^openlayers',
replace: true,
Expand Down Expand Up @@ -583,7 +584,7 @@ angular.module('openlayers-directive').directive('olPath', ["$log", "$q", "olMap
type: 'Polygon',
coords: coords,
projection: proj,
style: mapDefaults.styles.path
style: scope.style ? scope.style : mapDefaults.styles.path
};
var feature = createFeature(data, viewProjection);
layer.getSource().addFeature(feature);
Expand Down
2 changes: 1 addition & 1 deletion dist/angular-openlayers-directive.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/angular-openlayers-directive.min.no-header.js

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dist/angular-openlayers-directive.pre.js
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,8 @@ angular.module('openlayers-directive').directive('olPath', function($log, $q, ol
return {
restrict: 'E',
scope: {
properties: '=olGeomProperties'
properties: '=olGeomProperties',
style: '=olStyle'
},
require: '^openlayers',
replace: true,
Expand Down Expand Up @@ -583,7 +584,7 @@ angular.module('openlayers-directive').directive('olPath', function($log, $q, ol
type: 'Polygon',
coords: coords,
projection: proj,
style: mapDefaults.styles.path
style: scope.style ? scope.style : mapDefaults.styles.path
};
var feature = createFeature(data, viewProjection);
layer.getSource().addFeature(feature);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"main": "dist/angular-openlayers-directive",
"version": "1.12.0"
"version": "1.13.0"
}
5 changes: 3 additions & 2 deletions src/directives/path.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ angular.module('openlayers-directive').directive('olPath', function($log, $q, ol
return {
restrict: 'E',
scope: {
properties: '=olGeomProperties'
properties: '=olGeomProperties',
style: '=olStyle'
},
require: '^openlayers',
replace: true,
Expand Down Expand Up @@ -38,7 +39,7 @@ angular.module('openlayers-directive').directive('olPath', function($log, $q, ol
type: 'Polygon',
coords: coords,
projection: proj,
style: mapDefaults.styles.path
style: scope.style ? scope.style : mapDefaults.styles.path
};
var feature = createFeature(data, viewProjection);
layer.getSource().addFeature(feature);
Expand Down

0 comments on commit f55b624

Please sign in to comment.