Closed agiratech-manigandan closed 4 years ago
I am getting syntax Error
SyntaxError: missing = in const declaration
I checked why this is coming . https://github.com/mapbox/mapbox-gl-draw/blob/master/src/feature_types/feature.js in this file const using the loop
if (this.ctx.options.userProperties) { for (const name in this.properties) { properties[user_${name}] = this.properties[name]; } }
user_${name}
Could to change to const to let.
Reference : https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Errors/Missing_initializer_in_const
Thanks
mapbox-gl-js version: mapbox-gl-draw version:
1. 2. 3.
fixed
I am getting syntax Error
SyntaxError: missing = in const declaration
I checked why this is coming . https://github.com/mapbox/mapbox-gl-draw/blob/master/src/feature_types/feature.js in this file const using the loop
if (this.ctx.options.userProperties) { for (const name in this.properties) { properties[
user_${name}
] = this.properties[name]; } }Could to change to const to let.
Reference : https://developer.mozilla.org/pt-BR/docs/Web/JavaScript/Reference/Errors/Missing_initializer_in_const
Thanks
mapbox-gl-js version: mapbox-gl-draw version:
Steps to Trigger Behavior
1. 2. 3.
Expected Behavior
Actual Behavior