Commit 28e6c6bc7ed5907215535a3052501094991a3af5
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/map.js
(3 / 2)
  | |||
13 | 13 | d > 2 ? "#f03b20" : | |
14 | 14 | "#b10026"; | |
15 | 15 | ||
16 | }var india_map = L.tileLayer('http://{s}.tile.cloudmade.com/157f9082094e402f89d242e9b9144483/997/256/{z}/{x}/{y}.png', { | ||
16 | } | ||
17 | var india_map = L.tileLayer('http://{s}.tile.cloudmade.com/157f9082094e402f89d242e9b9144483/997/256/{z}/{x}/{y}.png', { | ||
17 | 18 | attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery ©<a href="http://cloudmade.com">CloudMade</a>' | |
18 | 19 | }); | |
19 | 20 | //Using a empty geojson object to instantiate the geojson layer | |
… | … | ||
36 | 36 | // info.policyExplain(props.rating) + '</small></p>' | |
37 | 37 | L.popup() | |
38 | 38 | .setLatLng(e.latlng) | |
39 | .setContent("<div style='height:250px;overflow-y:scroll;'><b>"+e.target.feature.properties.name+"</b></br><span class='yellow'>"+e.target.feature.properties.rating+"</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='#/policies/"+e.target.feature.id+"'>Read more...</a></br></div>") | ||
39 | .setContent("<div style='height:250px;overflow-y:scroll;'><b>"+e.target.feature.properties.name+"</b></br><span class='yellow'>"+e.target.feature.properties.rating+"</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>") | ||
40 | 40 | .openOn(map); | |
41 | 41 | ||
42 | 42 | // info.update(layer.feature.properties); |