Class: Decidim::NavigationMaps::BlueprintArea

Inherits:
ApplicationRecord show all
Includes:
TranslatableAttributes
Defined in:
app/models/decidim/navigation_maps/blueprint_area.rb

Overview

Abstract class from which all models in this engine inherit.

Instance Method Summary collapse

Instance Method Details

#to_geosonObject



17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/models/decidim/navigation_maps/blueprint_area.rb', line 17

def to_geoson
  {
    type: area_type,
    geometry: area,
    properties: {
      link: link,
      popup: link_type == "direct",
      color: color,
      title: translated_attribute(title),
      description: translated_attribute(description)
    }
  }
end