> For the complete documentation index, see [llms.txt](https://book.denismakhortov.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://book.denismakhortov.com/guides/map-editor/map-editor-setting-up-provinces.md).

# Setting up provinces

When you think the map is drawn correctly, press back (if you are in the image editing menu). Next, click Autogenerate. The editor will automatically divide the map into provinces. If you want to combine territories into one province (for example, islands), then click the Province Editor, click on the dropper icon at the top, click on the province to which you want to assign something. The color will be captured, then click on the top F (fill) and click on the territory that you want to refer to the province Usually autogeneration does a good job if the map is drawn correctly.

The New province button sets the fill color to the new color of the land province. (In the map editor at this stage, each territory should have its own unique color, since the editor distinguishes provinces by it. If different territories have the same color, the editor will count them as one province. He also divides provinces by color. If a province water, then its blue color in RGB format must be greater than or equal to 225) If autogeneration did not fill the required territory, and you want it to have a land border. Then press this button and fill the desired territory. The New water button sets the fill color to the new color of the water province.

After you have done everything, click the Export map button and wait, all the necessary files will be written to the exported\_map folder

![](/files/-MYBPS2l5XE0oypvM6FM)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.denismakhortov.com/guides/map-editor/map-editor-setting-up-provinces.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
