User script for Waze Map Editor. Simplify and straighten up street geometry.
This script is based on code of the old WME Simplify Street Geometry, but it works
Removes part of the segment if it is shorter than 5 meters (default value)
Join segment parts if they are shorter than 15 meters (default value)
Straighten up the street – choose one or more segments and align straight
Orthogonalize two segments by 90 degrees
Simplify method can be optimised by settings:
Setup the buttons for change the angle between segments:
Source is TypeScript, built with Rollup into a single IIFE userscript.
npm install # install dependencies
npm run build # build dist/WME-E85.user.js
npm run watch # rebuild on changesProject structure:
src/— TypeScript source and CSSdist/— built userscript (auto-committed by CI)src/meta.ts— userscript header with{{version}}placeholdersrc/e85.ts— main E85 class extending WMEBase
External dependencies loaded via @require (not bundled):
CommonUtils, GeoUtils, WME-Bootstrap, WME-Base, WME-UI
Author homepage: https://anton.shevchuk.name/ Author pet projects: https://hohli.com/ Support author: https://donate.hohli.com/ Script homepage: https://github.com/AntonShevchuk/wme-e85/ GreasyFork: https://greasyfork.org/en/scripts/456490-wme-e85-simplify-street-geometry





