We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 083533a commit 47e667dCopy full SHA for 47e667d
src/mapboxgl/overlay/GraticuleLayer.js
@@ -84,7 +84,7 @@ const defaultOptions = {
84
};
85
export class GraticuleLayer {
86
constructor(options) {
87
- this.id = options.layerID ? options.layerID : CommonUtil.createUniqueID('graticuleLayer_');
+ this.id = options && options.layerID ? options.layerID : CommonUtil.createUniqueID('graticuleLayer_');
88
this.sourceId = this.id;
89
this.canvasId = this.id;
90
this.options = options;
0 commit comments