Configure Feature Classes for Map Layer Styling

Feature Classes in EarthRanger organize geographic elements such as points, lines, and polygons into structured groups based on real-world entities like roads, rivers, or park boundaries. Grouping similar features (for example, all roads or all water sources) under Feature Classes allows for precise control over how those features appear on the map  including adjustments to icons, fill and stroke colors, opacity, and line widths.

This configuration ensures visual consistency across your maps, supports operational clarity, and enhances readability in the Map Window.

💡 Note: Unlike Feature Groups (used for internal logic like analyzers), Feature Classes directly control what users see under Map Layers in the EarthRanger interface.

 

 

Configure Map Styling for a Feature Class

Follow these steps to configure or update the presentation of map features in EarthRanger:

To configure how specific feature icons appear, follow these steps:

  1. Log in to EarthRanger AdminGo to:
    https://<yourorganization>.pamdas.org/admin
  2. Navigate to Feature Classes
    From the Admin home page, go to:
    Home > Map Layers > Feature Classes
  3. Select a Feature Class
    Click the name of the Feature Class you want to configure (for example, Rivers, Poaching Zones, Ranger Post, etc).

You’ll see a section labeled Presentation, which controls how this Feature Class appears on the map.

Customize Presentation Settings

EarthRanger uses a JSON-based configuration for styling. Each geometry type supports different properties.

To assist configuration, buttons are provided to apply a default template for Points, Lines, or Polygons. 

You can use these as a base and modify their values as needed.

For Polygons (e.g., Zones, Lakes)

Use the following properties to define how polygons display on the map: 

Property Description Example
"fill" Sets the interior color of the polygon using a hex code.Find hex color codes here. "fill": "#f4d442"
"stroke" Defines the border color of the polygon. "stroke": "#000000"
"fill-opacity" Controls how transparent the interior color is (0 = invisible, 1 = solid). "fill-opacity": 0.3
"stroke-opacity" Controls border transparency. "stroke-opacity": 0.7
"stroke-width" Defines the border thickness in pixels. "stroke-width": 1

Example:

{
"fill": "#0000FF", 
"stroke": "#000000", 
"fill-opacity": 0.2, 
"stroke-width": 1, 
"stroke-opacity": 0.7
}

Tip: Use moderate opacity values (0.3 – 0.6) for large polygon areas to avoid blocking the base map. Thinner stroke widths (1–2 px) improve readability and performance.

 

For Lines (e.g., Roads, Rivers)

  • Line features share most properties with polygons but only use stroke attributes:
Property Description Example
"stroke" Line color (hex code). "stroke": "#0080ff"
"stroke-width" Line thickness in pixels. "stroke-width": 2
"stroke-opacity" Transparency of the line color. "stroke-opacity": 0.7

Example: 

{
"stroke": "#0080ff", 
"stroke-width": 2, 
"stroke-opacity": 0.7
}

Recommendation: Keep line widths under 3 px for optimal rendering speed and visual balance. Avoid using the same color for multiple overlapping line types.

 

 

For points, the following settings are customizable:

  • Point features can use a simple colored circle (default) or a custom SVG icon.
     
Property Description Example
"image" URL or relative path to an SVG icon file. Must match the exact filename from the list of available icons shown below. "image": "/static/ranger_post_black.svg"
"width" Icon width in pixels. "width": 20
"height" Icon height in pixels. "height": 20

Important:

  • Only SVG icons are supported. PNG or JPG files will not render correctly.
  • Ensure the path and filename exactly match one from the Currently Available Feature Icons list.
 

Ensure that all geospatial features are correctly imported into the EarthRanger system before attempting to configure a Feature Class. You must have appropriate permissions in the EarthRanger Admin portal.

Currently Available feature icons on EarthRanger: 

Feature Icon Name

Visual

bai-black

bai-green

bai-olive

Barrier

beehive_fence

building-black

building-brown

Camp-Black

camera trap

campsite-black

campsite-olive

cctv

clinic-green

clinic-red

clinic

dam-black

dam-blue

den

   

dot-bright_green

dot-coral

dot-dark_blue

dot-medium_blue

dot-medium_bright_blue

dot-orange

dot-pink

dot-purple

dot-red

dot-teal

dot-yellow

evacuation

feature-airstrip

feature-cattle_spray_race

feature-POI-dot

feature-POI-star_flag

feature-water_hole_dot

feature-water_hole-light_blue

feature-water_hole

Feeding

fence_attendant_house_in_circle

 

fence_attendant_house-black

fence_attendant_house-brown_in_circle

fence_attendant_house-brown

fence_attendant_house-olive_in_circle

fence_attendant_house-olive

fence_attendant_house

helipad

Hide-feeding

Hide

hospital-green

hospital-red

hospital

House-Black

House-Brown

jetty-black

Lodge-Black

lodging-black

mine

park_gate-black

park_gate-olive

park_gate

park_HQ-black

park_HQ-olive

picnic_spot-black

police_station

proximity-alarm

ranger_outpost_chfb

ranger_post-black

ranger_post-dk_olive

ranger_post-gray

ranger_station-brown

repeaters-black

safari_camp-black

settlement-black

shooting_range-olive

silo-structure

silo

solar_station_flat

solar_station_stand

tourism_center-black

video_camera

viewpoint-black

village-black

village-green

water_pump

waterholes

windmill

 

Save Your Changes

After editing the JSON configuration:

  1. Click Save to apply changes.
  2. Open the Map Layers > Features panel in EarthRanger Interface to verify that the styling updates are visible.
  3. Refresh the page if necessary.

 

 

 

 

Up Next: Configure Feature Groups for Analyzer Logic in EarthRanger Admin