Skip to content

Commit

Permalink
make it easier to lookup the right location
Browse files Browse the repository at this point in the history
  • Loading branch information
crccheck committed May 3, 2015
1 parent d552228 commit 93838e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mixed_beverages/static_src/js/fixitmap.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ function _onKeyup(e) {


function _onAdd(map) {
var lookup = data.data.name + ',' + data.address.replace('\n', ',');
var $container = $(`<div class="nav leaflet-bar">
<p class="help">Drag pin to set a new location for</p>
<div>${ data.data.name }</div>
<div class="address">${ data.address }</div>
<div class="address">
<a href="https://www.google.com/maps/?q=${ lookup }" rel="noreferrer" target="_blank">${ data.address }</a>
</div>
<input placeholder="Paste blob here."/>
</div>`);
if (data.data.status) {
Expand Down
5 changes: 5 additions & 0 deletions mixed_beverages/static_src/sass/app.sass
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ body
color: gray
font-style: italic
margin: 0
&.leaflet-bar
// override .leaflet-bar styling
a
width: 100%



.legend
Expand Down

0 comments on commit 93838e0

Please sign in to comment.