Commit 5816558ad87494940fa16b91fc6c1e4b60a0db25

  • avatar
  • arvind
  • Sun Sep 22 16:01:57 IST 2013
Bug fix for map
  
4444 //'<p><b>' + props.name + '</b> : <span class="yellow">' + props.rating + '</span>'+
4545 // ' / <span class="red">5</span> <small> &gt;&gt; ' +
4646 // info.policyExplain(props.rating) + '</small></p>'
47 L.popup()
47 new L.Popup()
4848 .setLatLng(e.latlng)
4949 .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>&gt;&gt; "+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>")
5050 .openOn(map);