JSFiddle

amay077's public fiddles

• ExcelJS fit image to cell

No-Library (pure JS), HTML, CSS, JavaScript

• Flex-fill in Safari

No-Library (pure JS), HTML, CSS, JavaScript

• Intersect/union/difference features

No-Library (pure JS), HTML, CSS, JavaScript

• MoveEnd event and EventData

No-Library (pure JS), HTML, CSS, JavaScript

• Simplify features

No-Library (pure JS), HTML, CSS, JavaScript

• Scale features

No-Library (pure JS), HTML, CSS, JavaScript

• How to initial map padding?

No-Library (pure JS), HTML, CSS, JavaScript

• Rotate features

No-Library (pure JS), HTML, CSS, JavaScript

• Translate features

No-Library (pure JS), HTML, CSS, JavaScript

• Center/centroid/centerOfMass/pointOnFeature

No-Library (pure JS), HTML, CSS, JavaScript

• Split line by positions-reverse

No-Library (pure JS), HTML, CSS, JavaScript

• Split line by distance

No-Library (pure JS), HTML, CSS, JavaScript

• Get map meters per pixel

No-Library (pure JS), HTML, CSS, JavaScript

• Draw Line on LineString

No-Library (pure JS), HTML, CSS, JavaScript

• Draw Circle on LineString

No-Library (pure JS), HTML, CSS, JavaScript

• Mapbox custom popup window

No-Library (pure JS), HTML, CSS, JavaScript

• Mapbox custom control buttons

No-Library (pure JS), HTML, CSS, JavaScript

• Show drawn polygon area

Use mapbox-gl-draw to draw a polygon and Turf.js to calculate its area in square meters. See the example: https://docs.mapbox.com//mapbox-gl-js/example/mapbox-gl-draw/

• Mapbox with smooth moving

No-Library (pure JS), HTML, CSS, JavaScript