Skip to content

Commit

Permalink
better error message for basemap layer
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickarlt committed Nov 7, 2013
1 parent 12d988a commit e86d892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Layers/BasemapLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
} else if(typeof key === "string" && L.esri.BasemapLayer.TILES[key]){
config = L.esri.BasemapLayer.TILES[key];
} else {
throw new Error("L.esri.BasemapLayer: Invalid parameter. Use one of 'Streets', 'Topographic', 'Oceans', 'NationalGeographic', 'Gray', 'GrayLabels', 'Imagery', 'ImageryLabels', 'ImageryTransportation', 'ImageryAlternateLabels' or 'ShadedRelief'");
throw new Error("L.esri.BasemapLayer: Invalid parameter. Use one of 'Streets', 'Topographic', 'Oceans', 'NationalGeographic', 'Gray', 'GrayLabels', 'Imagery', 'ImageryLabels', 'ImageryTransportation', 'ShadedRelief' or 'ShadedReliefLabels'");
}

// merge passed options into the config options
Expand Down

0 comments on commit e86d892

Please sign in to comment.