You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
agenda-libre-ruby/app/views/maps/show.json.jbuilder

19 lines
470 B

json.array!(@orgas) do |orga|
json.merge!(
type: 'Feature',
properties: {
id: orga.id,
icon: @kind.icon,
name: orga.name,
place_name: orga.place_name, address: orga.address, city: orga.city,
region: orga.region.name, region_id: orga.region_id,
tags: orga.tag_list,
popupContent: link_to(orga, orga_url(orga))
},
geometry: {
type: 'Point',
coordinates: [orga.longitude, orga.latitude]
}
)
end