Commit 5816558ad87494940fa16b91fc6c1e4b60a0db25
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/leaflet.js
(1 / 1)
  | |||
44 | 44 | //'<p><b>' + props.name + '</b> : <span class="yellow">' + props.rating + '</span>'+ | |
45 | 45 | // ' / <span class="red">5</span> <small> >> ' + | |
46 | 46 | // info.policyExplain(props.rating) + '</small></p>' | |
47 | L.popup() | ||
47 | new L.Popup() | ||
48 | 48 | .setLatLng(e.latlng) | |
49 | 49 | .setContent("<div style='height:250px;overflow-y:scroll;'><b>"+e.target.feature.properties.name+"</b></br><span class='yellow'>"+M.filterTags(['rating'], e.target.feature.properties.id)[0].attributes.data +"</span>/<span class='red'>5</span><small>>> "+info.policyExplain(e.target.feature.properties.rating)+"</small></br>Pros:"+e.target.feature.properties.pros+"</br>Cons:"+e.target.feature.properties.cons+"</br><a href='#/funding'>Funding</a><br/><a href='#/policies/"+e.target.feature.id+"'>Read more...</a></br></div>") | |
50 | 50 | .openOn(map); |