Skip to content

Commit

Permalink
Fixed error when options were not set.
Browse files Browse the repository at this point in the history
  • Loading branch information
Per Liedman committed Apr 29, 2013
1 parent 439ff43 commit f4f5b6d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/proj4leaflet.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ if (typeof L !== 'undefined' && typeof L.CRS !== 'undefined') {
// This is left here for backwards compatibility
L.CRS.proj4js = (function () {
return function (code, def, transformation, options) {
options = options || {};
if (transformation) options.transformation = transformation;

return new L.Proj.CRS(code, def, options);
Expand Down

0 comments on commit f4f5b6d

Please sign in to comment.