Introduction
A Branch is a site or work centre. Staff, teams, warehouses and vehicles belong to it, and it is the starting point for routes. A Sector is a polygon drawn on the map: a municipality, a district, a plant or a service zone.
| Concept | What it is |
|---|---|
| Branch | A site with a location on the map. Every worker, team, warehouse, vehicle and shift belongs to one |
| Head office | The central branch. It receives anything that cannot be placed in any other branch |
| Zoning type | A level in the sector hierarchy, with its code and colour. For example, “Municipality” and “District” |
| Sector | A zone on the map, of one zoning type. It can have a parent sector and a responsible branch |
| Main team | The team that holds a sector. It is used when reading batches are shared out by date |
The two pieces are independent. You can work with branches and no sectors, or the other way round.
Prerequisites
“How your company works” options
Branches and sectors are switched on in General Settings → How your company works → Fine-tune. Only the administrator sees this section. The rest of the screen is explained in Company administration.

| Option | What appears | If you switch it off |
|---|---|---|
| We work with branches | The Branches menu, the Branches layer on the map and the Branch field in forms | Everything is assigned to the head office and the field disappears. No data is deleted |
| We divide the territory into sectors | The Sectors menu, the Sectors layer on the map and the sector filter on the dashboard | You work with the whole set of assets. No data is deleted |
| We work with teams | The Manage teams button on each sector | Sectors have no team |
- Open the user menu (top right) → Settings → General Settings.
- In How your company works, open Fine-tune.
- Switch on the options you need and click Save settings.
When you switch off We work with branches, a warning appears: the route optimiser needs to know where each worker sets off from. Set the location of the head office first, because the Branches screen disappears once the option is switched off.
Permissions
Permissions are managed in Roles and Permissions Management, under Administration and Catalogues, in the Branches and Sectors groups. See Company administration.
| Action | Branches | Sectors |
|---|---|---|
| See the menu and the screen | View | View |
| Create | Create: new branches | Create: sectors, zoning types and import from file |
| Change | Edit | Edit: details, geometry, adding teams and changing the main team |
| Remove | Delete | Delete: sectors, types and removing a team from the sector |
| See the data of other branches | All branches | — |
The administrator can do everything. In the default roles, supervision and read-only have View in both groups, and every role has All branches. If you take it away from a role, its users only see what belongs to their branch: see Limit a role to its branch.
Branches
The Branches screen is in the administration area, in the left-hand menu. It shows four indicators and the list of sites.

- Total, Active, Head office (Yes or No, depending on whether there is a head office) and the number of different Cities.
- The list has Name, City, Region / Autonomous Community, Time zone, Address and Status. The head office carries the MAIN label.
- Each row has the Edit (pencil) and Delete (bin) buttons.
Creating a branch
- Click New branch.
- Fill in Name and any other details you need (see the table).
- In Location on the map, click the exact point of the site. Drag the marker to adjust it, or type the Latitude and Longitude.
- Click Save branch. “Branch created successfully” appears.

| Field | What it is for |
|---|---|
| Name | Required. It is the name shown in every drop-down |
| Status | Active or Inactive. An inactive branch does not appear on the map and is not offered when you add workers |
| City | For information. It counts towards the Cities indicator |
| Region | Loads that region's public holidays. See Work calendar |
| Time zone | The site's local time: shifts are read and SLA deadlines are counted in it. See Time zone |
| Head office | Mark as head office. If there was already one, it stops being the head office |
| Address | For information. It appears when you click the site's icon on the map |
| Default warehouse | The warehouse used by the branch's staff who have no warehouse of their own |
| Manager and Deputy | Optional. Who receives the branch's critical alerts that nobody handles in time. Without a manager, they go to the administrators. See Alert escalation |
| Location on the map | Required. It is the start and end point of routes |
The location is required. Without it, “You must set the location on the map before saving.” appears. Clear location empties the coordinates, but you cannot save without them.
Editing, deactivating or deleting
- Edit opens the same form with Save changes. To retire a site without losing its history, set Status to Inactive.
- When editing, Working days and hours also appears: The company’s (General Settings) or This branch’s own hours, with the hours for each day. See A branch's own hours.
- Delete asks for confirmation. You can only delete a branch that nothing uses. Its public holidays and its own hours are deleted with it.
If something uses it, Cannot be deleted appears with the list, for example “The branch cannot be deleted because it is used by 12 people, 340 work orders…”. It counts everything the branch has, including inactive and closed items:
- people, teams and shifts;
- clients, warehouses, vehicles and sectors;
- work orders, issues and reading batches, including closed ones;
- alerts.
Click Deactivate in that message to make it Inactive without losing anything. A branch with history can hardly ever be deleted: deactivate it.
The head office
There is only one. It is used in these cases:
- If your company does not work with branches, everything is assigned to it.
- If the branch of a work order or an issue cannot be worked out, the head office is assigned (see Branch of a WO or an issue).
- On the map, its icon is darker and clicking it shows “Head office”.
If no branch is marked as head office, the first active branch that was created takes its place.
Time zone
Each branch has a time zone, chosen in the Time zone field of the form. Its staff's shifts are read in that time, and the SLA deadlines of its orders and issues are counted in it. The dates of its work orders are also shown in that time.
- The drop-down starts with the usual zones: Mainland Spain and Balearic Islands, Canary Islands, Portugal and those in Latin America (Mexico, Colombia, Peru, Chile, Argentina…). Each one shows its official name, for example
Atlantic/Canary, and its offset from universal time. - Below, under All zones, are the rest of the world's time zones.
- A new branch suggests the company's zone, which is the head office's zone. If there is no head office, mainland Spain.
- The list of branches shows each one's zone in the Time zone column.
When you save a different zone, Maptainer recalculates the SLA deadlines of open orders and issues. Closed ones keep the deadline they were closed with. The same happens when you change the head office, because its zone is the company's zone.
Tip
A worker who works in a different zone from their branch can have their own Time zone on their record. See Staff and teams and Time zones.
What depends on the branch
| Where | How the branch is used |
|---|---|
| Staff and teams | Every worker and every team belongs to one. A team only accepts members from its own branch |
| Warehouses and vehicles | Every warehouse and every vehicle belongs to one. The lists are filtered with All branches |
| Shifts and public holidays | Shifts belong to a branch, and a public holiday can affect only some branches |
| Working hours | A branch can have its own weekly hours instead of the company's: they apply to its WOs (dates, SLA, preventive maintenance) and to its staff without a shift. See A branch's own hours |
| Clients | The Branch responsible for managing the client. See Clients and SLA |
| Work orders and issues | They get a branch automatically (see below). It is not chosen in the form |
| Bell alerts | Each user only receives the alerts for their branch, except the administrator and users with no branch |
| What each user sees | With a role without All branches, only the assets, WOs, issues, reading batches, warehouses and their stock, clients and staff of their branch, plus anything with no branch. See Limit a role to its branch |
| Planning and dispatch | The branch location is the start and end point for each worker and team |
| Dashboard | The All branches filter and the By zone table |
| Costs and reports | Costs can be grouped and filtered by branch |
Sectors
The Sector Management screen is in the administration area, in the Sectors menu. On the left are the zoning types and the sectors; on the right, a map with all of them.

- Zoning Types: each type with its colour, code, level and number of sectors. The + creates a new one.
- Sectors: the total and some filters by type (All and one per type). Sectors at level 2 or below are indented under level 1 sectors.
- Each sector shows its name, code, area in km² and the code of its type.
- The eye hides or shows the sector on this screen's map. It changes nothing else.
- When you hover over a sector, its buttons appear: Zoom (only if it has geometry), Draw geometry, Manage teams (if you work with teams), Edit and Delete.
- On the map, Search location... looks up an address once you type three letters.
Work in this order: zoning types, sectors, geometry and teams.
Zoning types
A zoning type is a level in the hierarchy. All sectors of a type are drawn in its colour, on this screen and on the map.
- In the Zoning Types panel, click +.
- Fill in Name and Code, which are required, and a Description if you like.
- Choose the Level (1 is the top level, 2 the next…) and the Colour.
- Click Create type. “Zone type created” appears.

The code cannot be repeated. It also provides the prefix for the codes of sectors imported from a file with no code field.
The pencil on each type opens Edit zoning type. A change of colour shows on all its sectors. The bin deletes it, but only if it has no sectors: if it has any, “The zone type cannot be deleted because it has N associated sectors.” appears.
Creating a sector
- Click New sector.
- Fill in the fields (see the table) and click Create Sector.
- “Sector created” appears. The sector is created with no geometry: draw it next (see Drawing or editing the geometry).

| Field | What it is |
|---|---|
| Zoning Type | The level in the hierarchy. If there is only one type, it is already selected |
| Code | Required and unique. For example, SEC-001 |
| Name | Required. It is the name shown on the map and in filters |
| Level | From 1 to 10. It orders the list of sectors; the Parent Sector decides which sector wins (see How assets, orders and issues are assigned) |
| Parent Sector | The sector that contains it. A district's parent is its municipality |
| Branch | The branch responsible for maintaining the zone. It only appears if you work with branches |
Tip
Set Level to the same number as the level of its zoning type, and always choose the Parent Sector for sub-sectors. The level and the parent are not filled in automatically from the type, and the parent decides which sector each asset and each order goes to.
Drawing or editing the geometry
The geometry is the sector's polygon. It can have several separate parts.
Sector with no geometry:
- On the sector's row, click Draw geometry. “Draw Mode” appears and, below the map, the Drawing: … bar.
- Click on the map for each vertex. Finish the polygon by double-clicking the last point.
- If you need another part, draw it the same way: draw mode stays on.
- Click Save Geometry. “Geometry saved” appears.
Sector with geometry:
- Click Draw geometry. “Edit Mode” appears and the polygon is selected.
- Drag the vertices to move them. Dragging the small points between two vertices adds a new vertex.
- To add another part to the sector, click Add Polygon and draw it.
- Click Save Geometry.

When you draw near another sector, the vertex snaps to its edge or nearest vertex and the Snap label appears briefly. This makes it easier for neighbouring sectors to fit together with no gaps or overlaps.
Cancel leaves without saving and discards what you have drawn. A polygon with fewer than three points is rejected with “A polygon needs at least 3 points…”.
Warning
Saving the geometry reassigns the assets that fall inside the sector (see Assets). Do it once the asset upload is finished.
Importing sectors from a file
If you already have the sectors in a GIS file, import them in one go. Each polygon in the file creates a sector, with its geometry.
- Click New sector.
- First choose the Zoning Type, the Level, the Branch and, if they all hang from the same one, the Parent Sector. These apply to all imported sectors.
- In Import from file, click the dotted area and choose the file: GeoJSON, a Shapefile zipped as .zip, or GeoPackage. It is reprojected automatically.
- Map fields opens, with the number of polygons and the fields in the file. Choose the Field for the code and the Field for the name.
- Click Import N sectors. “Import completed” appears with the number of sectors created.
If you do not choose a code field, sectors are numbered with the type's code: DIST-001, DIST-002… With no name field, they are called nombre_001, nombre_002… A code that already exists gets a suffix. Lines and points in the file are skipped, and you are told how many.
Importing the same file twice creates the sectors twice.
If the field chosen as the code has repeated values in the file, nothing is imported: Repeated codes appears with the codes, and Map fields comes back so you can choose another field or let the codes be generated. You do not need to upload the file again.
Editing a sector
The Edit button opens Edit sector, with Name, Code, Zoning type, Level, Parent sector, Active sector and Branch. The geometry is not changed here, but with Draw geometry.

Unticking Active sector retires the sector without deleting it. Open work orders that fell in it move to the next sector that contains them; closed ones keep it. Its assets move to the sector that contains them, for example the parent, or are left with no sector. When you activate it again, it picks up the assets in its area.
The Parent sector cannot be the sector itself or one of its sub-sectors.
Sector teams
Each sector can have one or more teams. The Main team is the one that receives the batch of its assets when a reading is shared out by date. The others are secondary teams.
- On the sector's row, click Manage teams.
- In Select team..., choose the team.
- Leave Main ticked if it is the holder; untick it to make it secondary.
- Click Assign. “Team assigned to the sector” appears.

In the list, Make main and Remove main change the team's role, and the X removes it from the sector. An inactive team carries the Inactive label. You can do the same from the team, with Manage sectors: see Team sectors. There, the main team is called Holder and the secondary one Support.
If the company works with teams, the Main team is required: you choose it when you create the sector, when you import it and in Edit sector, and you cannot remove a sector's only main team or make it secondary. When you choose a new one, the previous one becomes secondary, so each sector has only one main team. A sector with no main team does not inherit the one from the sector above it. Older sectors that have none appear in the list with “No main team”: edit them and choose one.
Deleting a sector
The bin asks for confirmation: “Delete sector?”. When you delete it:
- Its assets move to the sector that contains them, for example the parent, or are left with no sector if they fall in none.
- Its teams are removed.
You cannot delete a sector with sub-sectors. “A sector that has sub-sectors cannot be deleted. Delete the sub-sectors first.” appears.
Nor can you delete a sector used by work orders, including closed ones, or by the distribution of a reading schedule. Cannot be deleted appears with what uses it, and the Deactivate button, which unticks Active sector (see above).
How assets, orders and issues are assigned
Nobody chooses the sector by hand: Maptainer works it out from the geometry. Assets, orders and issues follow different rules.
| When it is calculated | Which sector wins if they fall in several | |
|---|---|---|
| Assets | When the asset is created or moved, and when a sector is saved, imported, reduced or deleted | The sub-sector over its parent sector |
| Work orders | When the order is created, when its point is moved and, for open orders only, when a sector is created, redrawn or deleted | The one with the highest Level and, at the same level, the smallest. Active sectors only |
| Issues | Each time the dashboard is queried | They count in every sector that contains them |
Assets
Each asset goes in the sector that contains its geometry. This is worked out when it is created or moved, by any means (web, map, import, app or API), and when a sector is saved, imported, reduced or deleted. Assets left outside a reduced sector move to the sector that contains them or are left with no sector.
- A point goes to the most specific sector that contains it: inside a sub-sector, to the sub-sector, not the parent. A point exactly on the boundary counts as inside.
- A line or polygon that crosses several sectors, such as a pipe or a plot, goes to the sector that holds most of it: the greatest length for lines and the greatest area for polygons. For a parent, only the part outside its sub-sectors counts.
- So that a small edit does not make it jump sectors, the asset keeps its current sector as long as that sector holds at least 40% of it.
- When the parts are equal, for example in two overlapping sectors where neither is the parent of the other, it keeps the one it had or, failing that, goes to the smallest one.
The asset's sector decides the branch of its orders and issues, and which reading batch it goes to.
Work orders
Each work order has one responsible sector and can affect several.
- Responsible sector. For an order located by its assets, the sector that appears most often among them; on a tie, the one that holds the largest part of its assets. With its own point or area, the sector of that point or the one that holds most of the area. Orders with no assets and no location have no sector.
- Affected sectors. Every sector its assets or its area pass through, with the share of each. An order on a pipe that is 90% in the North sector and 10% in the South is the North's responsibility and also affects the South.
The responsible sector decides the costs by sector. The affected sectors show each zone's work: the sector filter on the dashboard and in the lists also shows orders that only pass through it (see On the dashboard).
It is recalculated automatically when the order is created, when its location or its assets change, when an asset is moved or changes sector, and when a sector is created, redrawn, activated, deactivated, changes parent or is deleted. Changes to assets and sectors only move open orders: Pending, In Progress and Paused. Finished, closed and cancelled orders keep their responsible sector, so reports for previous months do not change.
The point of an order located by its assets always falls on one of them: the one closest to the centre of the group. So an L-shaped pipe does not put the order in the corner of the L, which may be another sector.
The order's sector is not shown on its record. It is used on the dashboard, in the lists and in the costs.
Issues
Issues do not store a sector. The dashboard counts them in a sector if their point falls inside it.
Branch of a WO or an issue
Maptainer assigns the branch when the order or issue is created, in this order:
- The branch of the sector of its assets. If there are several assets, the most frequent one.
- The branch of the smallest active sector that contains its point.
- The branch of its client.
- For orders only: the branch of the first assigned worker who has one.
- The branch of the person who creates it, if they have a staff record.
- The head office.
That is why it is a good idea to give every sector a branch. A sector with no branch adds nothing to this calculation.
Elsewhere in Maptainer
On the map
The layers panel has two layers of its own. They are also explained in The map.
| Layer | What it shows |
|---|---|
| Sectors | Sectors, grouped by zoning type and in their colour. Tick them one by one, or all at once with the group's box |
| Branches | A house icon at each active branch with a location. Switched on by default. Clicking it shows the name, “Head office” if it is the head office, and the address |



If your company does not have the clients module, the drop-down in the map bar is Select sector. It shows sectors as a tree and, when you choose one, zooms the map to it. It only frames the view: it does not hide anything. If the sector has no geometry, “No geometry” appears. See Select sector.
On the dashboard
The dashboard has the All branches and All sectors filters, and the By zone table, with one row per branch and per sector. When you filter by a parent sector, orders and issues include those of all its sub-sectors. An order counts in its responsible sector and in the ones it affects: in the By zone table, an order on a pipe that crosses two sectors appears in both rows, and the rows can add up to more than the total. Each issue counts only in its most specific sector. Costs by sector count each order only in its responsible sector. See Dashboard and lists and By zone.
In reading batches
Sectors share out reading batches by date: each main team receives a batch with the assets in its sectors. Only assets that have a sector and sectors that have a main team are included. See Reading batches.
Sector readings
With the meter-reading module, each sector summarises the readings of the meters that fall within it and its sub-sectors. In Sector management, the Sector readings button (gauge icon) opens the sheet for the chosen month:
- Consumption: for each unit, the sum of the difference between each reading and the previous valid one of the same measuring point. A sector with water and electricity meters shows the two units separately, with a tab for each.
- Vs. average: how far the month's consumption deviates from the average of the previous six months with data.
- Reading coverage: measuring points with at least one valid reading in the month out of the total, with the breakdown of the period's batches (read, unreadable, not read, late, carried over and points without a batch).
- Not read: the list of points without a reading in the month, with their last reading and a link to the asset.
- The chart of the last twelve months, with consumption as bars and coverage as a line.

Whoever has the Configure readings permission sees the sector's Automatic alerts at the end. On the 2nd of each month Maptainer evaluates the previous closed month and sends to the bell (to whoever has the meter-alerts permission):
| Threshold | Alert |
|---|---|
| Consumption above average (%) | "High consumption in a sector" when the month's consumption exceeds the average of the previous six months by more than that percentage. With Also open an issue ticked, also an issue of the type "High consumption in the sector", located in the sector, with the calculation data |
| Monthly maximum (optional) | The same "High consumption in a sector" alert when the month's consumption, in the chosen unit, exceeds that value, even if it is not far from the average. It works as an absolute cap ("more than 12,000 m³") and from the first month, without waiting for six months of history. If a sector has meters in several units, the cap applies only to the unit chosen next to the value |
| Minimum reading coverage (%) | "Low reading coverage in a sector" when fewer than that percentage of the points were read |
An empty threshold does not alert. If both the average and the maximum are exceeded in the same month, a single alert arrives with both figures. In the sheet, the Consumption card turns red when it exceeds the maximum, and the Consumption by sector list flags it in the Threshold column. Each alert goes out once per sector and month; View sector opens the sheet for that month. The same data is in the Consumption by sector and Reading coverage by sector lists of the dashboard (Dashboard and lists), on the map (in the Sectors group of the layers panel, Colour by reading coverage or consumption vs. average for the current month) and in the public API (/readings/sectors).
What it does not do
It does not link boundary meters to a sector or compute an inflow/outflow balance: it adds up the meters that fall inside. A flow meter on the sector boundary counts in the sector where its point lies.
Troubleshooting
| Symptom | Likely cause | Solution |
|---|---|---|
| The Sectors or Branches menu does not appear | The option is switched off or your role does not have View | Switch it on in Fine-tune or check the role |
| “You must set the location on the map before saving.” | The branch has no location | Click on the form's map |
| “The branch cannot be deleted because it is used by…” | It has staff, teams, clients, orders, issues or other data, including inactive or closed items | Click Deactivate in the message |
| “The sector “…” cannot be deleted because it is used by…” | It has work orders, including closed ones, or is part of the distribution of a reading schedule | Click Deactivate in the message |
| A branch does not appear on the map | It is inactive or has no location | Edit it and check Status and Location on the map |
| “A sector with the code… already exists” | The code is in use | Use a different code |
| “A sector that has sub-sectors cannot be deleted…” | It has child sectors | Delete the sub-sectors or change their parent first |
| “The zone type cannot be deleted because it has N associated sectors.” | There are sectors of that type | Change their type or delete them first |
| An asset is not in any sector | It does not fall inside any sector polygon | Draw or enlarge the sector that should contain it |
| A sector shows “No main team” | It predates the rule that makes the main team required | Edit it and choose the Main team |
| A WO ends up in the wrong branch | Its sector has no branch, or there is no sector at its point | Give the sectors in the area a branch |
| “No geometry” when choosing a sector on the map | The sector has no polygon | Draw it in Sector Management |
| The Sector readings sheet says “No meters in the sector” | No asset of a layer that admits readings falls in the sector or its sub-sectors | Check the polygon and that the layer has Admits meter readings ticked |
| The high-consumption alert does not arrive | The sector has no threshold, there are no six previous months with data, or consumption does not exceed the average by that percentage | Set the threshold in Automatic alerts (or a Monthly maximum, which needs no history) and wait for the 2nd of the following month |
| “The monthly maximum needs the unit it applies to” | A cap was entered without choosing a unit | Choose the unit next to the value; with no meters in the sector, type it (m3, kWh…) |
Last updated: