mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-15 19:31:26 +00:00
Compact map_marker.js and use Utils.jsonify.
This commit is contained in:
parent
951648c94e
commit
223f3a61e9
1 changed files with 5 additions and 11 deletions
|
@ -1,13 +1,7 @@
|
|||
<%- unless @map_marker_included_p -%>
|
||||
<%- content_for :head do -%>
|
||||
<%= javascript_include_tag "map_marker" %>
|
||||
<%- end -%>
|
||||
<%- @map_marker_included_p = true -%>
|
||||
<%- content_for :head do -%>
|
||||
<%= javascript_include_tag "map_marker" %>
|
||||
<%- end -%>
|
||||
map_marker(<%= map %>, {
|
||||
lat: <%= location[:lat].to_json %>,
|
||||
lng: <%= location[:lng].to_json %>,
|
||||
radius: <%= location[:radius].to_json %>,
|
||||
course: <%= location[:course].to_json %>,
|
||||
speed: <%= location[:speed].to_json %>
|
||||
});
|
||||
<%- @map_marker_included_p = true -%>
|
||||
<%- end -%>
|
||||
map_marker(<%= map %>, <%= Utils.jsonify(location) %>)
|
||||
|
|
Loading…
Add table
Reference in a new issue