Better scripting module
Better scripting moduleIntroduction
IntroductionThe script execution module has been improved !
If you have basic programming skills, you can edit your maps using Javascript code. This method is very powerful ! You can implement many thematic mapping or spatial analysis algorithms.
How to use it ?
How to use it ?- Open the Running scripts module
- Load an example:
Labels
,Classification
orStamps
.Labels
is the most basic example, it shows how to modify the style of a layer's geometries.Classification
shows how to change the style of a geometry based on its attributes.- Finally
Buffers
shows how to load an external library (here Turf) to modify a geometry.
- Click
Run
then observe the results on theMap
page. - Adapt the example that comes closest to your needs
Advice
Advice- Use a code editor for your algorithms, for example VS Code
- Test your code regularly, after each change
git:4099b730dc708339297c