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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 31855a84c2be26b9082db844ad5a25b6a0dee36a79c9d9e19e1cbc9ebb5136c5
4
- data.tar.gz: 0f7f8e4b520227a720051786c555ce85fc4360a7eea30d4a30dbcbc6c43022c0
3
+ metadata.gz: 5dc60b00eeb1b554f6ee06e242c3c3a31586cdd609552a8ca91172fcb18de91f
4
+ data.tar.gz: 39bfc36d4ff1551fb0ddd93596050f2381719e579f64df0398b1025f0866510f
5
5
  SHA512:
6
- metadata.gz: 8039e382b800fb007608a7ee76067244d323494c20e5b7cc5c9f428ab13bbf04cc77a93fd0d613bf0a9907d6d19d2bbfacfd9570770d2700876f3e56bcdb9b47
7
- data.tar.gz: 689de4b0c2a1540ed8f63f16744f975cf0a9e563449f5d43493c9664b3648ffe5626b48af5c121e662e31790387b51b2dc209a73911c41fd92b2aef278c16bc8
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-04 v0.3.1
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
@@ -25,6 +25,8 @@ $ ->
25
25
  true
26
26
  $('.accordion').accordion()
27
27
 
28
+ $('[data-content],[data-html]').popup()
29
+
28
30
  $('.message .close').on 'click', ->
29
31
  $(@).closest('.message').transition('fade')
30
32
 
@@ -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&colon;<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&colon;<br>
22
+ <code>4.973122, -75.623981</code>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GeoLabels
4
- VERSION = '0.3.1'
4
+ VERSION = '0.3.3'
5
5
  end
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.1
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-04 00:00:00.000000000 Z
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