Commit 0fa0049330ac3f02c2493ec1c22b330b3be5725c
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/map.js
(14 / 6)
  | |||
28 | 28 | // info.policyExplain(props.rating) + '</small></p>' | |
29 | 29 | L.popup() | |
30 | 30 | .setLatLng(e.latlng) | |
31 | .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</a></br><a href=#>Policy</a></div>") | ||
31 | .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.properties.name+"'>Read more...</a></br></div>") | ||
32 | 32 | .openOn(map); | |
33 | 33 | ||
34 | 34 | // info.update(layer.feature.properties); | |
… | … | ||
91 | 91 | 'licenseType': 'CR', | |
92 | 92 | 'licenseCost': '120000000 INR', | |
93 | 93 | 'licenseRange': '100 KM', | |
94 | 'url':'#/survey/gka', | ||
94 | 'survey':'#/survey/gka', | ||
95 | 'profile':'#/profile/gka', | ||
96 | 'research': '#/research/gka', | ||
95 | 97 | 'effectiveRange': '15 KM' | |
96 | 98 | }, | |
97 | 99 | { | |
… | … | ||
107 | 107 | 'licenseType': 'CR', | |
108 | 108 | 'licenseCost': '120000000 INR', | |
109 | 109 | 'licenseRange': '100 KM', | |
110 | 'url':'#/survey/llv', | ||
110 | 'research':'#/research/llv', | ||
111 | 'profile':'#/profile/llv', | ||
112 | 'survey':'#/survey/llv', | ||
111 | 113 | 'effectiveRange': '15 KM' | |
112 | 114 | }, | |
113 | 115 | { | |
… | … | ||
123 | 123 | 'licenseType': 'CR', | |
124 | 124 | 'licenseCost': '120000000 INR', | |
125 | 125 | 'licenseRange': '100 KM', | |
126 | 'url':'#/survey/rbk', | ||
126 | 'research':'#/research/rbk', | ||
127 | 'profile':'#/profile/rbk', | ||
128 | 'survey':'#/survey/rbk', | ||
127 | 129 | 'effectiveRange': '35 KM' | |
128 | 130 | }, | |
129 | 131 | { | |
… | … | ||
139 | 139 | 'licenseType': 'CR', | |
140 | 140 | 'licenseCost': '1 Crore', | |
141 | 141 | 'licenseRange': '100 KM', | |
142 | 'url':'#/survey/kmv', | ||
142 | 'research':'#/research/kmv', | ||
143 | 'profile':'#/profile/kmv', | ||
144 | 'survey':'#/survey/kmv', | ||
143 | 145 | 'effectiveRange': '70 KM' | |
144 | 146 | } | |
145 | 147 | ]; | |
… | … | ||
2123 | 2123 | 'fillOpacity':0.7}); | |
2124 | 2124 | lg.addLayer(c); | |
2125 | 2125 | lg.addLayer(d); | |
2126 | c.bindPopup("<a href='"+lat_lng[i]['url']+"'>"+lat_lng[i]['stnName']+"</a>"); | ||
2126 | c.bindPopup("<a href='"+lat_lng[i]['survey']+"'>"+lat_lng[i]['stnName']+"</a></br><a href='"+lat_lng[i]['profile']+"'>Profile</a></br><a href='"+lat_lng[i]['research']+"'>Research</a>"); | ||
2127 | 2127 | c.addEventListener('mousemove',function(e){ | |
2128 | 2128 | e.target.openPopup(); | |
2129 | 2129 | }); |