formtastic_leaflet_map_editor_input 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/Gemfile +6 -0
- data/README.md +23 -0
- data/Rakefile +2 -0
- data/formtastic_leaflet_map_editor_input.gemspec +22 -0
- data/lib/formtastic/leaflet_map_editor_input.rb +14 -0
- data/lib/formtastic/leaflet_map_editor_input/engine.rb +8 -0
- data/lib/formtastic/leaflet_map_editor_input/version.rb +5 -0
- data/lib/formtastic_leaflet_map_editor_input.rb +10 -0
- data/vendor/assets/images/images/layers-2x.png +0 -0
- data/vendor/assets/images/images/layers.png +0 -0
- data/vendor/assets/images/images/marker-icon-2x.png +0 -0
- data/vendor/assets/images/images/marker-icon.png +0 -0
- data/vendor/assets/images/images/marker-shadow.png +0 -0
- data/vendor/assets/images/images/spritesheet-2x.png +0 -0
- data/vendor/assets/images/images/spritesheet.png +0 -0
- data/vendor/assets/javascripts/leaflet.draw.js +10 -0
- data/vendor/assets/javascripts/leaflet.js +9 -0
- data/vendor/assets/stylesheets/leaflet.css +479 -0
- data/vendor/assets/stylesheets/leaflet.draw.css +295 -0
- metadata +79 -0
@@ -0,0 +1,295 @@
|
|
1
|
+
/* ================================================================== */
|
2
|
+
/* Toolbars
|
3
|
+
/* ================================================================== */
|
4
|
+
|
5
|
+
.leaflet-draw-section {
|
6
|
+
position: relative;
|
7
|
+
}
|
8
|
+
|
9
|
+
.leaflet-draw-toolbar {
|
10
|
+
margin-top: 12px;
|
11
|
+
}
|
12
|
+
|
13
|
+
.leaflet-draw-toolbar-top {
|
14
|
+
margin-top: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
.leaflet-draw-toolbar-notop a:first-child {
|
18
|
+
border-top-right-radius: 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
.leaflet-draw-toolbar-nobottom a:last-child {
|
22
|
+
border-bottom-right-radius: 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
.leaflet-draw-toolbar a {
|
26
|
+
background-image: url('images/spritesheet.png');
|
27
|
+
background-repeat: no-repeat;
|
28
|
+
}
|
29
|
+
|
30
|
+
.leaflet-retina .leaflet-draw-toolbar a {
|
31
|
+
background-image: url('images/spritesheet-2x.png');
|
32
|
+
background-size: 270px 30px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.leaflet-draw a {
|
36
|
+
display: block;
|
37
|
+
text-align: center;
|
38
|
+
text-decoration: none;
|
39
|
+
}
|
40
|
+
|
41
|
+
/* ================================================================== */
|
42
|
+
/* Toolbar actions menu
|
43
|
+
/* ================================================================== */
|
44
|
+
|
45
|
+
.leaflet-draw-actions {
|
46
|
+
display: none;
|
47
|
+
list-style: none;
|
48
|
+
margin: 0;
|
49
|
+
padding: 0;
|
50
|
+
position: absolute;
|
51
|
+
left: 26px; /* leaflet-draw-toolbar.left + leaflet-draw-toolbar.width */
|
52
|
+
top: 0;
|
53
|
+
white-space: nowrap;
|
54
|
+
}
|
55
|
+
|
56
|
+
.leaflet-right .leaflet-draw-actions {
|
57
|
+
right:26px;
|
58
|
+
left:auto;
|
59
|
+
}
|
60
|
+
|
61
|
+
.leaflet-draw-actions li {
|
62
|
+
display: inline-block;
|
63
|
+
}
|
64
|
+
|
65
|
+
.leaflet-draw-actions li:first-child a {
|
66
|
+
border-left: none;
|
67
|
+
}
|
68
|
+
|
69
|
+
.leaflet-draw-actions li:last-child a {
|
70
|
+
-webkit-border-radius: 0 4px 4px 0;
|
71
|
+
border-radius: 0 4px 4px 0;
|
72
|
+
}
|
73
|
+
|
74
|
+
.leaflet-right .leaflet-draw-actions li:last-child a {
|
75
|
+
-webkit-border-radius: 0;
|
76
|
+
border-radius: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
.leaflet-right .leaflet-draw-actions li:first-child a {
|
80
|
+
-webkit-border-radius: 4px 0 0 4px;
|
81
|
+
border-radius: 4px 0 0 4px;
|
82
|
+
}
|
83
|
+
|
84
|
+
.leaflet-draw-actions a {
|
85
|
+
background-color: #919187;
|
86
|
+
border-left: 1px solid #AAA;
|
87
|
+
color: #FFF;
|
88
|
+
font: 11px/19px "Helvetica Neue", Arial, Helvetica, sans-serif;
|
89
|
+
line-height: 28px;
|
90
|
+
text-decoration: none;
|
91
|
+
padding-left: 10px;
|
92
|
+
padding-right: 10px;
|
93
|
+
height: 28px;
|
94
|
+
}
|
95
|
+
|
96
|
+
.leaflet-draw-actions-bottom {
|
97
|
+
margin-top: 0;
|
98
|
+
}
|
99
|
+
|
100
|
+
.leaflet-draw-actions-top {
|
101
|
+
margin-top: 1px;
|
102
|
+
}
|
103
|
+
|
104
|
+
.leaflet-draw-actions-top a,
|
105
|
+
.leaflet-draw-actions-bottom a {
|
106
|
+
height: 27px;
|
107
|
+
line-height: 27px;
|
108
|
+
}
|
109
|
+
|
110
|
+
.leaflet-draw-actions a:hover {
|
111
|
+
background-color: #A0A098;
|
112
|
+
}
|
113
|
+
|
114
|
+
.leaflet-draw-actions-top.leaflet-draw-actions-bottom a {
|
115
|
+
height: 26px;
|
116
|
+
line-height: 26px;
|
117
|
+
}
|
118
|
+
|
119
|
+
/* ================================================================== */
|
120
|
+
/* Draw toolbar
|
121
|
+
/* ================================================================== */
|
122
|
+
|
123
|
+
.leaflet-draw-toolbar .leaflet-draw-draw-polyline {
|
124
|
+
background-position: -2px -2px;
|
125
|
+
}
|
126
|
+
|
127
|
+
.leaflet-draw-toolbar .leaflet-draw-draw-polygon {
|
128
|
+
background-position: -31px -2px;
|
129
|
+
}
|
130
|
+
|
131
|
+
.leaflet-draw-toolbar .leaflet-draw-draw-rectangle {
|
132
|
+
background-position: -62px -2px;
|
133
|
+
}
|
134
|
+
|
135
|
+
.leaflet-draw-toolbar .leaflet-draw-draw-circle {
|
136
|
+
background-position: -92px -2px;
|
137
|
+
}
|
138
|
+
|
139
|
+
.leaflet-draw-toolbar .leaflet-draw-draw-marker {
|
140
|
+
background-position: -122px -2px;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* ================================================================== */
|
144
|
+
/* Edit toolbar
|
145
|
+
/* ================================================================== */
|
146
|
+
|
147
|
+
.leaflet-draw-toolbar .leaflet-draw-edit-edit {
|
148
|
+
background-position: -152px -2px;
|
149
|
+
}
|
150
|
+
|
151
|
+
.leaflet-draw-toolbar .leaflet-draw-edit-remove {
|
152
|
+
background-position: -182px -2px;
|
153
|
+
}
|
154
|
+
|
155
|
+
.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled {
|
156
|
+
background-position: -212px -2px;
|
157
|
+
}
|
158
|
+
|
159
|
+
.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled {
|
160
|
+
background-position: -242px -2px;
|
161
|
+
}
|
162
|
+
|
163
|
+
/* ================================================================== */
|
164
|
+
/* Drawing styles
|
165
|
+
/* ================================================================== */
|
166
|
+
|
167
|
+
.leaflet-mouse-marker {
|
168
|
+
background-color: #fff;
|
169
|
+
cursor: crosshair;
|
170
|
+
}
|
171
|
+
|
172
|
+
.leaflet-draw-tooltip {
|
173
|
+
background: rgb(54, 54, 54);
|
174
|
+
background: rgba(0, 0, 0, 0.5);
|
175
|
+
border: 1px solid transparent;
|
176
|
+
-webkit-border-radius: 4px;
|
177
|
+
border-radius: 4px;
|
178
|
+
color: #fff;
|
179
|
+
font: 12px/18px "Helvetica Neue", Arial, Helvetica, sans-serif;
|
180
|
+
margin-left: 20px;
|
181
|
+
margin-top: -21px;
|
182
|
+
padding: 4px 8px;
|
183
|
+
position: absolute;
|
184
|
+
visibility: hidden;
|
185
|
+
white-space: nowrap;
|
186
|
+
z-index: 6;
|
187
|
+
}
|
188
|
+
|
189
|
+
.leaflet-draw-tooltip:before {
|
190
|
+
border-right: 6px solid black;
|
191
|
+
border-right-color: rgba(0, 0, 0, 0.5);
|
192
|
+
border-top: 6px solid transparent;
|
193
|
+
border-bottom: 6px solid transparent;
|
194
|
+
content: "";
|
195
|
+
position: absolute;
|
196
|
+
top: 7px;
|
197
|
+
left: -7px;
|
198
|
+
}
|
199
|
+
|
200
|
+
.leaflet-error-draw-tooltip {
|
201
|
+
background-color: #F2DEDE;
|
202
|
+
border: 1px solid #E6B6BD;
|
203
|
+
color: #B94A48;
|
204
|
+
}
|
205
|
+
|
206
|
+
.leaflet-error-draw-tooltip:before {
|
207
|
+
border-right-color: #E6B6BD;
|
208
|
+
}
|
209
|
+
|
210
|
+
.leaflet-draw-tooltip-single {
|
211
|
+
margin-top: -12px
|
212
|
+
}
|
213
|
+
|
214
|
+
.leaflet-draw-tooltip-subtext {
|
215
|
+
color: #f8d5e4;
|
216
|
+
}
|
217
|
+
|
218
|
+
.leaflet-draw-guide-dash {
|
219
|
+
font-size: 1%;
|
220
|
+
opacity: 0.6;
|
221
|
+
position: absolute;
|
222
|
+
width: 5px;
|
223
|
+
height: 5px;
|
224
|
+
}
|
225
|
+
|
226
|
+
/* ================================================================== */
|
227
|
+
/* Edit styles
|
228
|
+
/* ================================================================== */
|
229
|
+
|
230
|
+
.leaflet-edit-marker-selected {
|
231
|
+
background: rgba(254, 87, 161, 0.1);
|
232
|
+
border: 4px dashed rgba(254, 87, 161, 0.6);
|
233
|
+
-webkit-border-radius: 4px;
|
234
|
+
border-radius: 4px;
|
235
|
+
}
|
236
|
+
|
237
|
+
.leaflet-edit-move {
|
238
|
+
cursor: move;
|
239
|
+
}
|
240
|
+
|
241
|
+
.leaflet-edit-resize {
|
242
|
+
cursor: pointer;
|
243
|
+
}
|
244
|
+
|
245
|
+
/* ================================================================== */
|
246
|
+
/* Old IE styles
|
247
|
+
/* ================================================================== */
|
248
|
+
|
249
|
+
.leaflet-oldie .leaflet-draw-toolbar {
|
250
|
+
border: 3px solid #999;
|
251
|
+
}
|
252
|
+
|
253
|
+
.leaflet-oldie .leaflet-draw-toolbar a {
|
254
|
+
background-color: #eee;
|
255
|
+
}
|
256
|
+
|
257
|
+
.leaflet-oldie .leaflet-draw-toolbar a:hover {
|
258
|
+
background-color: #fff;
|
259
|
+
}
|
260
|
+
|
261
|
+
.leaflet-oldie .leaflet-draw-actions {
|
262
|
+
left: 32px;
|
263
|
+
margin-top: 3px;
|
264
|
+
}
|
265
|
+
|
266
|
+
.leaflet-oldie .leaflet-draw-actions li {
|
267
|
+
display: inline;
|
268
|
+
zoom: 1;
|
269
|
+
}
|
270
|
+
|
271
|
+
.leaflet-oldie .leaflet-edit-marker-selected {
|
272
|
+
border: 4px dashed #fe93c2;
|
273
|
+
}
|
274
|
+
|
275
|
+
.leaflet-oldie .leaflet-draw-actions a {
|
276
|
+
background-color: #999;
|
277
|
+
}
|
278
|
+
|
279
|
+
.leaflet-oldie .leaflet-draw-actions a:hover {
|
280
|
+
background-color: #a5a5a5;
|
281
|
+
}
|
282
|
+
|
283
|
+
.leaflet-oldie .leaflet-draw-actions-top a {
|
284
|
+
margin-top: 1px;
|
285
|
+
}
|
286
|
+
|
287
|
+
.leaflet-oldie .leaflet-draw-actions-bottom a {
|
288
|
+
height: 28px;
|
289
|
+
line-height: 28px;
|
290
|
+
}
|
291
|
+
|
292
|
+
.leaflet-oldie .leaflet-draw-actions-top.leaflet-draw-actions-bottom a {
|
293
|
+
height: 27px;
|
294
|
+
line-height: 27px;
|
295
|
+
}
|
metadata
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: formtastic_leaflet_map_editor_input
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Paul Kamer
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-01-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: formtastic
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.0'
|
27
|
+
description: Support including a Leaflet map in a Formtastic form. Included Leaflet
|
28
|
+
and Leaflet.draw
|
29
|
+
email:
|
30
|
+
- paulkamer@gmail.com
|
31
|
+
executables: []
|
32
|
+
extensions: []
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- ".gitignore"
|
36
|
+
- Gemfile
|
37
|
+
- README.md
|
38
|
+
- Rakefile
|
39
|
+
- formtastic_leaflet_map_editor_input.gemspec
|
40
|
+
- lib/formtastic/leaflet_map_editor_input.rb
|
41
|
+
- lib/formtastic/leaflet_map_editor_input/engine.rb
|
42
|
+
- lib/formtastic/leaflet_map_editor_input/version.rb
|
43
|
+
- lib/formtastic_leaflet_map_editor_input.rb
|
44
|
+
- vendor/assets/images/images/layers-2x.png
|
45
|
+
- vendor/assets/images/images/layers.png
|
46
|
+
- vendor/assets/images/images/marker-icon-2x.png
|
47
|
+
- vendor/assets/images/images/marker-icon.png
|
48
|
+
- vendor/assets/images/images/marker-shadow.png
|
49
|
+
- vendor/assets/images/images/spritesheet-2x.png
|
50
|
+
- vendor/assets/images/images/spritesheet.png
|
51
|
+
- vendor/assets/javascripts/leaflet.draw.js
|
52
|
+
- vendor/assets/javascripts/leaflet.js
|
53
|
+
- vendor/assets/stylesheets/leaflet.css
|
54
|
+
- vendor/assets/stylesheets/leaflet.draw.css
|
55
|
+
homepage:
|
56
|
+
licenses:
|
57
|
+
- MIT
|
58
|
+
metadata: {}
|
59
|
+
post_install_message:
|
60
|
+
rdoc_options: []
|
61
|
+
require_paths:
|
62
|
+
- lib
|
63
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
requirements: []
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 2.4.8
|
76
|
+
signing_key:
|
77
|
+
specification_version: 4
|
78
|
+
summary: Support including a Leaflet map in a Formtastic form.
|
79
|
+
test_files: []
|