GIS Analy5cs Solu5on: Issues in Integra5ng Mul5ple Technologies Lucia Barbato, GISP Santosh Seshadri, MS David Lucus, PhD Candidate Center for Geospa5al Technology, Texas Tech University
render.js function RenderCountyList(o, ctrl) { var s = "<div>"; for (var i=0;i<o.vals.length; i++) { s += o.vals[i].txt + ", "; } s = s.substring(0, s.length-‐2); s += "</div>"; $("#" + ctrl).html(s); }
Integra5on // omap -‐ js object in GEOJSON format function RenderMap(omap) { map.removeLayer(geoJsonMap); geoJsonMap = L.geoJson(omap, { style : MapStyle, onEachFeature :onEachFeature }).addTo(map); } The number of Statewide and County projects are passed from the JSON file and displayed on the map. Coordinates for each county are stored in the database and Leaflet uses that field to draw the boundaries. Leanlet code
Projects is dynamically updated according to selec5ons Leaflet Customiza5on Search (Geocoder) Full Extent Display Chart Export Map (PDF) Print Map Clears Selected Coun5es Reset Map • Leaflet plugin provides Geocoder and Zoom • HighCharts pop-‐up rendered via JS modal • Export and Print JS func5ons dynamically design print page content • Leaflet func5on clears county selec5ons • Reset map is a JS func5on that defaults all selec5ons and re-‐ renders the map. When mul5ple coun5es are selected, the individual county awards are accumulated and the total is displayed in the popup.
An Open Source GIS Analy5cs Solu5on: Issues in Integra5ng Mul5ple Technologies Lucia Barbato, GISP -‐ [email protected] Santosh Seshadri, MS – [email protected] David Lucus, PhD Candidate – [email protected] Center for Geospa5al Technology, Texas Tech University