top of page

Katapult Pro Map Styles Manual

  • Zachary Carlson
  • Feb 24, 2021
  • 8 min read

Updated: 4 days ago

ree

Content Links Connections

- Order


The Map Styles Editor allows you to customize your job design with connections, nodes, and sections that appear on your project map.


ree

The editor is located within Job Settings, which can be accessed by clicking the gear icon next to your job's name.


ree

Under the three-dot menu in the top right, you can click on the paint can icon ("Map Styles") button. This will open a window to edit the styles for your connections, nodes, and sections.


Connections

ree

If we start with the "Connections" tab, you can see that on the left-hand side, you can move the style around with the arrow grab handles to change the order. Order is very important within the editor, as it determines the priority for how styles will be displayed on your map. If multiple map style conditions resolve to true for a connection, then whichever map style rule is highest on the list will display on the Map. See more on order/priority later in this guide.

Using the gear next to the arrows, you can change the settings of your map style rules.


ree

Within this window, you can change the line thickness, set a solid or dashed line (or a custom line style, which you can learn more about in our Model Editor Manual), and select an icon to exist along the line if you would like.

The line icon will be an icon that is fixed on the connection itself. Using the “More...” button, you can look for different symbols to use. For more customization, you can use the icon fill and scale fields to change the size and appearance of your line icon. Click on the "x" in the top right of the dialogue box when you're ready to close out of the line settings window; your changes are automatically saved.


Returning back to the main Map Styles Editor, the Color square can be used to set custom colors for your connections, nodes, or sections.

ree

Choose a color using the color picker, a hexadecimal value, or GBA values (where the A value represents the opacity of the color). Further adjust your color with hue (0 to 359), saturation, and lightness towards the bottom right of this dialogue box.


ree

To the right of these settings, you can define what the line will represent on the map.


The first dropdown is the attribute. Use this dropdown to set the attribute that will be used for the style. The next dropdown is the comparator.


The "equals" and "does not equal" options will then give you an input to choose a value that the attribute should be equal to or not equal to. The options for this value will depend on how the attribute is set up in the Model Editor. (If it is a picklist, you will see the options of the picklist. If it is a checkbox, you'll see a checkbox. If it is a single line text type of attribute, you will see a line for entering text.)


The "has" or "does not have" operators will look for whether that attribute exists or does not exist on that connection.


You can use the three dot menu to the far right to delete, duplicate, or add a new style below.


ree

Clicking the “Add a New Style” button at the top will place a new style at the top of the list. Use the arrows to move the style, the gear icon to edit the line settings, and the Color square to change the style's color. Fill in the attribute and comparator to define what you want the style to represent.

Example

If you needed to make a new style for an Underground Cable, you would first want to make sure that "underground cable" is an existing picklist value under the attribute "Connection Type." You can do this using the Model Editor.

*See our Model Editor Manual for help adding or editing attributes

Once you have your attributes and picklist values properly configured and saved in the Model Editor, you can click the “Add a New Style” button.


ree

Use the line settings to adjust the thickness and style. For the attribute, choose "connection_type." For comparator, we want the connection type to be an underground cable, so select "equals" for the second dropdown, and find "underground cable" in the picklist that appears.


ree

Once the style is created, press "Done." If you want to use the style as a template for more jobs, go to the top right of the window to select the three dot menu to save the style as a template.


ree

You can save the template as a new template or an existing template to overwrite it. Check the default box if you want the template to be the default style for all new jobs you create. Once the template is selected or named, click “Save.”

*Changing an existing template or making a new style template the default will not update past jobs. Only new jobs created will use the template if it is selected for default. You will need to load the new default styles in existing jobs.

Nodes and Sections

Nodes and sections offer more options than connections and are more impacted by their order. Keep this in mind while editing styles for nodes and sections.


ree

You can click on the icon to see various options for map symbology. Clicking “More” will give you a bigger list to choose from. To choose an icon, click on the one you want to use.


*You can also upload custom SVG icons in the Model Editor.


ree

Clicking the double “T” button will allow you to change the icon size. The bigger the number, the larger the icon will appear on the Map.


ree

Clicking the stackable icon will turn the icon green and indicate that the style can be stacked on top or below another if they would both styles' conditions are met (and visible). (See our example further into this manual for how that looks.)

Again, you will need to select an attribute and comparator to finish setting up the style rule, and you can use the arrows to move the style within the list.

Order

Order matters when multiple attributes exist for a node on the Map—particularly if each attribute has a style rule.


ree

In the above example, if a pole is placed on the map with no attributes other than "node_type" being set to "pole," it will appear as a black circle. If you would add the "done" attribute to the pole and leave it unchecked, it will turn into a red circle. Then if the pole is collected in the field, it would update to be a blue hexagon. Finally, if you check the "done" attribute checkbox, it would turn to a green circle. Even though the location still has the "node type" and "field completed" attributes, the "done = true" map style is highest in this list, so that is the style that is displayed on the map.

If you want to save it as a template, go to the three dot menu at the top right to save the template. When everything is set in the Map Styles Editor, click "Done."


Custom Logic

Familiarize yourself with the Logic Editor by reading our manual. To understand how this works in the Map Styles Editor, let's explore an example together. Let's say you're mapping addresses, and you want to mark which ones have been verified and which ones have not. Let's say you also want to distinguish each address by its type, such as "residential" or "commercial."


ree

First, make sure you use the Model Editor to set up the attributes needed in this scenario. For this example, I searched for "Node Type" in the Attributes under the Model Editor, added a picklist called "Address," and added a value for "Address."


ree

I then found "Node Sub Type" in the Attributes and added "Residential" and "Commercial" values under the "Address" picklist I created. (With a node type "Address" and these subtypes, we can have a 'default' style for an address if its type is not specified.)


ree

First we set the scene by creating rules for an address with no sub type (a default address), a residential address, and a commercial address. I changed the icon, the colors, increased the size to 30, and defined what the style is for.


ree

Here's how the styles look on the map.


Now for the tricky part! We're going to add a "halo" to houses that have been verified, regardless of what type of house they are.


ree

For my halo style, I chose a filled-in circle icon, changed the color and its opacity (by changing the "A" value from 100% to 35%), and increased its size to 60. I moved the style below the houses so that it'll show up 'behind' the houses when the styles get stacked and made it stackable (as well as making all the houses stackable).


Now we get to use the Logic Editor! I want this style to apply when the node type is address and the address has been verified.

ree

First, we'll click on this little "summation" symbol to open the Logic Editor.

ree

If you read the manual, this structure will look familiar to you. First of all, we're starting with a "Logical And" expression, because we're saying we want the style to apply when the node type is address AND the address has been verified. (In this example, I assume when the field completed attribute is true, which is when a fielder marks a node as done, that the address has been verified.)


Then we have two expressions nested underneath the root "Logical And" block. So for the first part of our condition, "...when the node type is address," the "is" in that statement indicates we need to use the "Equal" expression. Then we'll want to access the type of the node, so this'll require us to use the data path. Data paths can be difficult to work with, but visualizing them as a filing system can be helpful. In this case, we're accessing a node's attribute, node_type. So the data path we get is 'node.attributes.node_type.*'. (The '*' wild card is saying that whatever info is at this level, the node_type level, grab it. Since we don't know what the node_type is for that node, we use the '*'.)


The last part of our condition, "...the address has been verified," indicates another "Equal" expression. We want to access the node's attribute, field_completed, so the data path will be 'node.attributes.field_completed.*'. (Again, we use the wildcard '*" because we don't know whether the field_completed value is TRUE or FALSE.) Since field_completed is a checkbox, this means the value is Boolean, meaning the value is TRUE or FALSE. In this case, we want the value to be TRUE. So we choose a literal block and select "Boolean" as the type and click "TRUE" for the value. Now that our logic statement is built out, we can click on the summation symbol to close that window and click "Done" in our Map Styles Editor.


ree

And here's how the map looks with all of our styles applied! You can see that there are commercial addresses (yellow houses), residential addresses (blue houses), and "default" addresses (gray houses). The houses with green halos are ones that have been verified (regardless of the type of address, as there are default addresses, residential, and commercial addresses that have the green halo).

Additional Notes

  • If you return to older jobs that were created before a style or template was created, you can go into the Map Style Editor window, and in the three dot menu at the top right select “Load Style Template” to load the newly created template for that job.

  • You can edit and create custom logic for map styles to add even more specific details to the map.

  • Pink lines for connections and pink circles for nodes are used for default styles. If you see these on the map where you did not intend for them, it just means a style is not yet created for that connection or node. You can go into the Map Styles Editor to create the style, and once saved, the line or node will update to represent your desired look.


Thanks for reading! Contact us at support@katapultengineering.com with any questions. How can we improve our documentation? Let us know in the comments below!

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page