blob: 340380191d3ffaf6050c7685345ee6605912ef28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# SPDX-FileCopyrightText: 2020 IN COMMON Collective <collective@incommon.cc>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
module MapHelper
def map_container(map = Map.first)
raw tag.div(
tag.div(id: 'map',
data: {
target: 'map.container'
}),
data: {
controller: 'map',
'map-latitude': map.latitude,
'map-longitude': map.longitude,
'map-zoom': map.zoom
})
end
end
|