geo_labels 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -1
- data/app/assets/javascripts/geo_labels/application.coffee +2 -0
- data/app/models/geo_labels/contact.rb +1 -1
- data/app/views/geo_labels/contacts/_form.html.slim +7 -0
- data/config/locales/geo_labels.en.yml +7 -0
- data/config/locales/geo_labels.es.yml +8 -0
- data/lib/geo_labels/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5dc60b00eeb1b554f6ee06e242c3c3a31586cdd609552a8ca91172fcb18de91f
|
4
|
+
data.tar.gz: 39bfc36d4ff1551fb0ddd93596050f2381719e579f64df0398b1025f0866510f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b39847ef962187e6f3d81cfe80bb3b71cab106aad5328ade39740aaf7f58a72bb4e296dc596ecad94633722358941971c6da62e1037f1accd7e7ac7c75f40580
|
7
|
+
data.tar.gz: 4ea54296bf0b43579cd46deb8a58528b277eca56d12846ce3e3617a37f044ede01bc9e9901b6b402fd8a75e8c59fe76bea629fde46ab714f72ae75cb1afbc8f2
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
CHANGELOG of geo\_labels
|
2
2
|
============================
|
3
3
|
|
4
|
-
2023-09-
|
4
|
+
2023-09-07 v0.3.3
|
5
|
+
-------------------------
|
6
|
+
* OpenStreetMap gives coordinates in the url after double click. Support copy paste of that format
|
7
|
+
|
8
|
+
2023-09-07 v0.3.2
|
9
|
+
-------------------------
|
10
|
+
* Add manual Google maps copy-paste string input option for complex locations
|
11
|
+
|
12
|
+
2023-09-05 v0.3.1
|
5
13
|
-------------------------
|
6
14
|
* Better navigation connections
|
7
15
|
* Fix the contact show map feature
|
@@ -98,7 +98,7 @@ module GeoLabels
|
|
98
98
|
|
99
99
|
def lat_lng=(value)
|
100
100
|
case value
|
101
|
-
when String then self.latitude, self.longitude = value.split(/,\s?/)
|
101
|
+
when String then self.latitude, self.longitude = value.sub('/', ',').split(/,\s?/)
|
102
102
|
when Array then self.latitude, self.longitude = value
|
103
103
|
end
|
104
104
|
end
|
@@ -39,6 +39,13 @@
|
|
39
39
|
.field
|
40
40
|
label= at :description
|
41
41
|
= f.text_field :description
|
42
|
+
.field
|
43
|
+
.ui.compact.accordion
|
44
|
+
.title
|
45
|
+
i.dropdown.icon
|
46
|
+
=> t('geo_labels.manual_lat_lng.title')
|
47
|
+
i.info.icon data-html=t('geo_labels.manual_lat_lng.explanation', default: 'missing translation geo_labels.manual_lat_lng.explanation') data-variation='wide'
|
48
|
+
.content= f.text_field :lat_lng
|
42
49
|
.ui.attached.segment
|
43
50
|
.ui.fluid.multiple.search.selection.dropdown
|
44
51
|
= f.hidden_field :label_ids, value: @record.label_ids.join(',')
|
@@ -4,3 +4,10 @@ en:
|
|
4
4
|
import: Import
|
5
5
|
tree_title: Tree
|
6
6
|
select_labels_text: Select %{models} and search...
|
7
|
+
manual_lat_lng:
|
8
|
+
title: Manual location
|
9
|
+
explanation: >
|
10
|
+
Sometimes an address cannot be geocoded.<br>
|
11
|
+
Then a Google maps can give a location string <br>
|
12
|
+
That can be copy pasted here. Example:<br>
|
13
|
+
<code>4.973122, -75.623981</code>
|
@@ -12,3 +12,11 @@ es:
|
|
12
12
|
import: Importar
|
13
13
|
tree_title: Árbol
|
14
14
|
select_labels_text: Seleccionar %{models} y busca...
|
15
|
+
manual_lat_lng:
|
16
|
+
title: Ubicación manuál
|
17
|
+
explanation: >
|
18
|
+
A veces una dirección no se puede convertir en
|
19
|
+
una ubicación. <br>
|
20
|
+
Pues en Google maps se puede copiar y pegar<br>
|
21
|
+
coordinatos manuál. Ejemplo:<br>
|
22
|
+
<code>4.973122, -75.623981</code>
|
data/lib/geo_labels/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geo_labels
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benjamin ter Kuile
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_nested_set
|