My Account     Contact Us     Cart

Stylizing Road Layers with MAPublisher and Adobe Illustrator

An important component of any map that contains roads is the stylization of such roads, and ensuring that the end user can understand the way they are displayed. To go even further, it may also be important for the user to be able to differentiate between the various road classifications they are viewing. 

When a line layer containing road data is first imported into MAPublisher, all roads appear with the same appearance regardless of their class or type. However, with the help of MAPublisher and some native Illustrator tools, you can easily turn your roads from this:

…into this:

Getting Started

As stated above, this workflow uses tools from both Adobe Illustrator’s native toolbar as well as the MAPublisher extension. More specifically, MAP Stylesheet Themes and MAP Selections along with the Graphic Styles and Appearance panels. 

This process will only work if your road data contains an attribute on which you can base classification rules. For example, my road data has an attribute column named “CLASS” with four categories: Primary Road, Primary Ramp, Secondary Road, and Local Road. I have previously created a graphic style for each road type and saved them in a template document titled RoadStyles.ai. In my current document, I have simply imported these styles to the Graphic Styles panel by using the menu option for “Open Graphic Style Library”. For more information about the Graphic Styles panel, check out its Adobe help page.

Controlled Access Highway: Controlled Access Highway
Controlled Access Ramp: Controlled Access Ramp
Major Road: Major Road
Minor Road: Minor Road

These styles have all been created using the Appearance panel to overlay a stroke with a smaller weight over a stroke with a larger weight of a different colour. These road styles are usually referred to as cased roads. For information about the Appearance panel, check out its Adobe help page.

Now that the graphic styles have been created/imported, I can apply a MAP Stylesheet Theme I have created based on the road types.

Cleaning Up with Groups

Now that the main styles have been applied to each road class, we must perform a few more steps to perfect the appearance of our roads. If you zoom in closely on the roads you may notice that intersecting roads do not appear as seamless as you would like. Don’t worry; there is a way to transform your roads from looking like this:

…to this:

Why does this happen? 

This occurs because MAP Stylesheet Themes apply the graphic styles at the path level. To look like intersections, each road classification must become one object, whether by being grouped or by turning the various paths into a compound path. Grouping is the preferred method for managing these objects since a compound path will delete the attributes of all paths that are being compounded. For example, if I turned my road types into compound paths, the street names would be turned blank. This would make automatic labeling with MAPublisher LabelPro impossible. Regardless, using groups instead of compound paths will avoid this issue, as grouped objects retain their original attributes.

Grouping Road Classes

In order to group our road classes we will have to select the road paths belonging to each class. We can use MAP Selections to individually select each of our road classes. The expressions we created when defining our MAP Stylesheet Theme rules can be saved as Named Expressions to be used again through the Expression Library. Once selected the street classes can be grouped using CTRL+G on your keyboard, right-clicking and selecting “Group” or selecting Object > Group from the menu. The final step is to re-apply the graphic style appropriate to each group using the Adobe Graphic Style panel.

If we want to get technical here regarding what has happened to our artwork, using the Appearance panel we can see that each of the paths we initially imported now has a graphic style applied to it on two levels: at the path level (done through MAP Stylesheets) and at the group level (done by grouping and applying a graphic style to the group). It is possible to symbolize our artwork even further, at the layer level, by selecting the target icon for our roads layer. If desired we could apply a transparency at the layer level that would supersede all graphic styles used on objects in the layer. 

Our artwork now has symbolization that suggests intersections, giving our road map a much neater appearance.

Finishing Touches

Now that our roads are grouped together, they are much easier to manage in the Illustrator layers panel.

Groups can be easily arranged using the Layers panel. Many cartographers prefer to arrange their roads with major highways at the top and descending to reach local roads at the bottom of the hierarchy. Groups also make it easier to move objects between groups if necessary: simply select the path in the Layers panel and drag it to another group. 

With our groups, we can now apply some tweaks to finish off their appearance. There will be many instances where we will need to override the intersection appearances that result from grouping. For example, in the image below we have ramps that definitely do not intersect as suggested by their grouping.

To correct this error, we can select the road lines that will pass over the others and, using the Layers panel, drag the paths from their group. This will eliminate the implication on the map that these roads actually intersect.

The ungrouped roads can now be arranged relative to the other paths until we find a layout that is the truest representation of the road network.

Using MAP Stylesheet Themes to Create a Legend

So why do we use MAP Stylesheet Themes if we must manually group the objects again after use? For a few reasons: it keeps us organized, it allows us to add the Named Expressions to the Expression Library, and most importantly, we can use these MAP Stylesheet Themes to automatically generate a Legend for us that reflects our Stylesheet rule names.

A deeper understanding of the Adobe Illustrator toolbox can go a long way in helping you use MAPublisher to leverage the full potential of your GIS datasets to create customized road styles. Happy mapping!

Be sure to check out our tutorial for Creating Line Stylesheet Themes as well as the video tutorial. This tutorial also includes the instructions for creating cased roads!

Getting to Know the MAP Measurement Tool

In this blog, we’ll be highlighting a very useful tool that may fly under the radar to the average MAPublisher user: the MAP Measurement tool! This tool is great for measuring the distance between two or more points, azimuths, and even the perimeter and area of closed paths. It is a great addition to your arsenal of regular MAPublisher tools because it can be customized to suit a variety of measuring methods, units, and shapes. 

The MAP Measurement tool can be used to calculate the Euclidean distance between any two or more points on a map. This can be done using one of three calculation methods: geodesic (based on datum), cartesian (based on map projection) or Rhumb line. In the example below, I have calculated the distance between Paris and Shanghai using a geodesic method, which is why the line appears rounded rather than straight in the current Natural Earth projection. 

MAP Measurement tool between two points

I can incorporate multiple points in my calculation, and the total distance will continue to increase. You can also hold the Alt/Option key while drawing to display the length of each line segment in your trip. In my example, I have decided to add a point in Cairo to follow Shanghai, as seen below.

MAP Measurement tool being used on three successive points

Once I have finished adding points to my map, I have the option to convert the measurement line to art in my currently selected layer. This is a great way to quickly and accurately draw lines between points on certain types of maps that require it, such as a flow map or flight map.

MAP Measurement tool lines converted to Illustrator art

The MAP Measurement tool can also be used to measure perimeter and area of polygons. In the example below, I have calculated the perimeter and area of a triangle drawn between the points of Bogotá, Lima and São Paulo.

MAP Measurement tool being used to measure area and perimeter of a polygon

This blog only outlines a few of the use cases of the MAP Measurement tool, however there are countless other ways that you can apply this tool to your cartographic designs. The possibilities are virtually endless!

For more information about the MAP Measurement tool, check out our Support Centre article.

MAPublisher Virtual Training: June 12-14, 2023

Whether you’re new to MAPublisher®, an experienced user, or simply thinking about a purchase, Avenza software training is a worthwhile experience. Get hands-on training from Avenza product specialists at one of our training courses around North America or virtually from anywhere.

No Fields Found.

Can You Create a Map in 5 Minutes?

The Day 13 theme of the #30DayMapChallenge was more of a question: can you create a map in 5 minutes? Well, we were up for the challenge! Here at Avenza, we used this as an opportunity to teach our marketing team (with limited GIS experience) the basics of cartography. In the weeks leading up to this day, we taught them how to perform a few simple tasks in MAPublisher to create a basic map of South America.

Simplified Steps for Creating a Map

We broke down the process of making this map into five general steps for the purpose of simplicity.

Import Data

The first step was to import country area data using the Import button on the MAP Toolbar. After import, the Artboard tool was used to adjust map boundaries to the desired position. The MAP View Editor could also be used to fine-tune the movement of the data. 

Stylize Data

The second step was to add a stylesheet to the countries using the MAP Themes button. From here a stylesheet was created by clicking the Add button and creating an area stylesheet. The stylesheet editor was then opened, and the style was assigned to the country layer. The Batch Generate Rules… button was very helpful in quickly creating categories for the data based on the desired attribute. For example, one map was created using the Population Density attribute. The categories were assigned a style based on a pre-selected colour ramp. Finally, a rule was created to create a grey style for the part of North America that attaches to South America.

Add a Legend

Using the hamburger menu button in the MAP Themes panel, step three included creating a legend for the map. Removing Rule 1 from the list and adding a title (if desired) were the only extra steps necessary here.

Add Labels

In step four, the goal was to add a label for the country names. We used LabelPro for this to make it quick and simple. We enabled leader lines to ensure all countries were labeled even if the label was too large.

Add Finishing Touches

Finally, we added a title and supplemental text and objects to the map. All of these elements were added to the document using native Adobe Illustrator tools.

Our process of creating a map in 5 minutes was recorded and condensed into a 30-second video. See it, and the other resulting maps, below!

MAPublisher Virtual Training: March 6-8, 2023

Whether you’re new to MAPublisher®, an experienced user, or simply thinking about a purchase, Avenza software training is a worthwhile experience. Get hands-on training from Avenza product specialists at one of our training courses around North America or virtually from anywhere.

No Fields Found.

MAPublisher Virtual Training: April 24-26, 2023

Whether you’re new to MAPublisher®, an experienced user, or simply thinking about a purchase, Avenza software training is a worthwhile experience. Get hands-on training from Avenza product specialists at one of our training courses around North America or virtually from anywhere.

No Fields Found.

MAPublisher Virtual Training: September 11-13, 2023

Whether you’re new to MAPublisher®, an experienced user, or simply thinking about a purchase, Avenza software training is a worthwhile experience. Get hands-on training from Avenza product specialists at one of our training courses around North America or virtually from anywhere.

No Fields Found.

News Archive