activeadmin_latlng 1.3.0 → 1.4.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a24a5a985decc74f54b4160d88475ffbdd2a8fb
|
4
|
+
data.tar.gz: ef6f6533b89be67cbcd47099ca119dc716452137
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6979d6cac46f79da5241de56baea9e44b626364b06964ce6624e127e4c6c96f61a2964cc05b48c3f10f35cac1bde436049feb480c04c7b2ebb2d37e807f65810
|
7
|
+
data.tar.gz: c349caab7fb929e62f4a6f7ab6ef6018264582c48ddde2988880201c22d52f21fdd5c136eccb8ff63cbde98790cc27f3350507281366d3cb3989a5ba1cd5248f
|
@@ -4,7 +4,7 @@ module ActiveAdmin
|
|
4
4
|
def build(_, *args, &_block)
|
5
5
|
super _, *args, &_block
|
6
6
|
@template_name = 'openstreetmap.html.erb'
|
7
|
-
@script_html = '<script src="
|
7
|
+
@script_html = '<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.js"></script>'
|
8
8
|
end
|
9
9
|
end
|
10
10
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<li>
|
2
2
|
<%= loading_map_code %>
|
3
|
-
<link rel="stylesheet" href="
|
3
|
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/0.7.3/leaflet.css" />
|
4
4
|
<script>
|
5
5
|
var osmObject = {
|
6
6
|
idLat: '<%= id_lat %>',
|
@@ -18,8 +18,8 @@
|
|
18
18
|
console.log(e);
|
19
19
|
}
|
20
20
|
|
21
|
-
var osmUrl='
|
22
|
-
var osmAttrib='Map data © <a href="
|
21
|
+
var osmUrl='https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png';
|
22
|
+
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
23
23
|
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 20, attribution: osmAttrib});
|
24
24
|
|
25
25
|
osmObject.map.setView([lat, lon],10);
|
@@ -71,7 +71,7 @@
|
|
71
71
|
},
|
72
72
|
|
73
73
|
searchLocation: function(text, callback) {
|
74
|
-
var requestUrl = "
|
74
|
+
var requestUrl = "https://nominatim.openstreetmap.org/search?format=json&q="+text;
|
75
75
|
$.ajax({
|
76
76
|
url: requestUrl,
|
77
77
|
type: "GET",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activeadmin_latlng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexey Krylov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeadmin
|