Use const in more places
This commit is contained in:
@@ -52,12 +52,15 @@ import {getTransformFromProjections, getUserProjection} from './proj.js';
|
||||
* import Fill from 'ol/style/Fill';
|
||||
* import Polygon from 'ol/geom/Polygon';
|
||||
*
|
||||
* var canvas = document.createElement('canvas');
|
||||
* var render = toContext(canvas.getContext('2d'),
|
||||
* { size: [100, 100] });
|
||||
* const canvas = document.createElement('canvas');
|
||||
* const render = toContext(
|
||||
* canvas.getContext('2d'),
|
||||
* {size: [100, 100]}
|
||||
* );
|
||||
* render.setFillStrokeStyle(new Fill({ color: blue }));
|
||||
* render.drawPolygon(
|
||||
* new Polygon([[[0, 0], [100, 100], [100, 0], [0, 0]]]));
|
||||
* new Polygon([[[0, 0], [100, 100], [100, 0], [0, 0]]])
|
||||
* );
|
||||
* ```
|
||||
*
|
||||
* @param {CanvasRenderingContext2D} context Canvas context.
|
||||
|
||||
Reference in New Issue
Block a user