WFS Source


in this lesson

WFS, or Web Feature Service, is another way to add overlays to CalTopo, much like the Custom Sources we discussed in the previous section. The WFS server sends markers, lines, or polygons along with information about those places. The significant difference is that objects in a WFS overlay can be clicked, and additional information will pop up. If or when that information is updated by the agency or organization managing the server, those updates are automatic for those requesting the data. This is similar to the WMS, TMS, and WMTS we just covered, but clicking on that data does not create a pop-up with more information about that feature.

Web Feature Service requires a Pro or higher subscription and is currently in Beta.

Topics on this Page:

Creating a WFS Source Layer

Let's start by taking a look at the edit box for adding a layer from a Web Feature Service.

add new layer menu showing wfs at the bottom

WFS is located near the bottom of the + Add Layer Menu.

intial edit box for wfs

Edit Box for a WFS Layer.

In the edit box, there are four areas where you can input information: Name, Label, URL Template, and Auto-Configure URL. If you have the URL of the JSON, you can put it into the auto-configure box, and we will configure the API and populate the URL template with that information. You would use the URL template only if the API is already configured. The name is something you can choose, but the label needs to come from the data in the pop-up. More information on finding the URL to put into the auto-configure box and on choosing a label is provided below.

Back to Top


WFS Source Layer, Example: EV Chargers

Let's walk through an example of how to find and set up a WFS layer on your map. We've chosen an alternative fuel dataset (mostly EV charging stations) generated by the Department of Energy. This is a great use of the WFS feature. It's likely that there will be an increase in charging stations over time, so as they get included in the dataset, the WFS overlay will reflect that change without you needing to import any more information.

Our first goal will be to find the URL we need to import into the auto-configure box. When searching the internet for data, we often come across interactive maps. Many of these maps will have links to their underlying data; it is this link we need to find. Here is the URL to the map shown below.

you need a link to enter into the auto-configure box, labeled here with an arrow pointing to it

If you find a map click Properties, Information, and then the Feature Layer.

Once you click through the Properties, Information, and Feature Layer you will be taken to another page and that is where you will find the URL you need.

The URL is located in the right margin and will often have a copy button.

The URL is located in the right margin and it should have a very convenient copy button.

Now paste the URL into the auto-configure box and hit “GO".

Paste the link into the auto-configure input slot.

After clicking go, a box will open, similar to the one below, displaying a list of features available from this service. In our example, there is only one. If there is more than one, you can only choose one; otherwise, you will get an error, and only the top choice will be used.

onelayer option is listed with checkboxes next to them

After hitting Go a box opens with a list of features, here there is only one.

After checking which feature layer you want and you click Save, you may get an error message. Click on Close and see what happens. Most of the time things will work as expected.

error box warning that the process may not work correctly

If you get an error message that says; “Server does not appear to support a compatible projection. Will try anyway, but this probably will not work". Try because it often works as expected

At this point a new link that appears in the URL template box. You should add or you can edit the title for your layer, then press Save to display the layer on your map.

in the custom source edit box, the field for URL template has an orange box around it to make it obvious

You should get a new overlay, which you can toggle on and off from the overlays menu.

radar image with 52% opacity over a map background

Once you hit save you should see your layer in the map viewer.

When you click on one of the features you get a small pop-up with some information. It is this information that makes a feature layer so useful.

menu showing the custom layers, and the layer name with a pencil icon and a red x for delete icon listed along with the layer name.

Clicking a feature brings up a window with information about that feature.

Looking at your new layer you'll notice that they are labeled. The label visibility will adhere to the label settings you chose under Settings. You have control over the label name, as any information from the pop-up can be used. After reviewing the pop-up information, choose the one that works best for you as a label. In this case we will choose the EV_Connector_Types so that we know what type of charger is located there.

To change the labeling we will click the pencil icon for our layer in the map objects menu to reopen the layer edit box. Once that is open you'll note an area where you can input the label you want. It is there we will put EV_Connector_Types.

custom source edit box open with the dropdown menu for overlay choices open. choices are no-base layer, or yes-transparent overlay

Edit the layer to change the label of the features in the map viewer.

Once you have the label chosen and you hit save you will see the features on your map with the new labels.

custom source edit box open with the dropdown menu for overlay choices open. choices are no-base layer, or yes-transparent overlay

Note that the features are now named by the EV connector type; Tesla, J1772, CHAdeMO, and CCS

Saving To and Editing From a WFS Source in Your Account

To save the layer to your account, click Save to Account at the bottom left of the edit box, as described in the custom layers introduction lesson. Editing is also covered there.

Back To Top