Changeset 6514 in main
- Timestamp:
- 06/04/14 18:56:19 (8 years ago)
- Location:
- trunk/ibisph-view/src/main/webapp
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ibisph-view/src/main/webapp/WEB-INF/config/spring/https.xml
r6513 r6514 17 17 files that are served up on the vendor's site and not locally. 18 18 - Need to make sure ALL content is served up via HTTPS - see the web.xml 19 and ss.xml requests mappings etc.19 and filter.xml requests mappings etc. 20 20 21 21 High Level Steps: -
trunk/ibisph-view/src/main/webapp/js/jquery.leaflet.js
r6513 r6514 451 451 function setupChoroplethValuesAndLegend() 452 452 { 453 if(config.choropleth.dataClasses.numberOfGroups > config.choropleth.dataClasses.dataValues.length) config.choropleth.dataClasses.numberOfGroups = config.choropleth.dataClasses.dataValues.length; 454 if("Jenks" == config.choropleth.dataClasses.type) 453 if(config.choropleth.dataClasses.numberOfGroups >= config.choropleth.dataClasses.dataValues.length) 454 { 455 config.choropleth.dataClasses.numberOfGroups = config.choropleth.dataClasses.dataValues.length; 456 config.choropleth.dataClasses.determinantValues = getClassNone(config.choropleth.dataClasses.dataValues); 457 } 458 459 else if("Jenks" == config.choropleth.dataClasses.type) 455 460 { 456 461 config.choropleth.dataClasses.determinantValues = geoStats.getClassJenks(config.choropleth.dataClasses.numberOfGroups); … … 480 485 config.choropleth.dataClasses.determinantValues = geoStats.getClassQuantile(config.choropleth.dataClasses.numberOfGroups); 481 486 } 482 else if("Equal " == config.choropleth.dataClasses.type)487 else if("EqualInterval" == config.choropleth.dataClasses.type) 483 488 { 484 489 config.choropleth.dataClasses.determinantValues = geoStats.getClassEqInterval(config.choropleth.dataClasses.numberOfGroups); 485 490 } 486 else if(" equal" == config.choropleth.dataClasses.type)487 { 488 config.choropleth.dataClasses.determinantValues = equalBreaks(config.choropleth.dataClasses.dataValues, config.choropleth.dataClasses.numberOfGroups);491 else if("EqualGroup" == config.choropleth.dataClasses.type) 492 { 493 config.choropleth.dataClasses.determinantValues = getClassEqualGroup(config.choropleth.dataClasses.dataValues, config.choropleth.dataClasses.numberOfGroups); 489 494 } 490 495 491 496 //geoStats.setColors(["red", "green", "blue", "yellow", "purple", "black"]); 492 console.log(".setupChoroplethValuesAndLegend - determinantValues: " + config.choropleth.dataClasses.determinantValues + ", actual Values: " + config.choropleth.dataClasses.dataValues);497 console.log(".setupChoroplethValuesAndLegend - type: " + config.choropleth.dataClasses.type + ", determinantValues: " + config.choropleth.dataClasses.determinantValues + ", actual Values: " + config.choropleth.dataClasses.dataValues); 493 498 //console.log(".setupChoroplethValuesAndLegend - legend HTML: " + geoStats.getHtmlLegend(null, null, 1) ); 494 499 … … 575 580 function getDataValueTitle(value) 576 581 { 582 if(undefined == value) return(""); 577 583 for(var i=0; i < config.choropleth.dataObject.data.length; i++) 578 584 { … … 754 760 * the data and sets the determinant value when group count exceeded. 755 761 */ 756 function equalBreaks(dataValueArray, numberOfGroupsGroups)757 { 758 var data = dataValueArray.sort( );762 function getClassEqualGroup(dataValueArray, numberOfGroupsGroups) 763 { 764 var data = dataValueArray.sort(function(a,b) { return a - b;}); 759 765 var dataBreakInterval = data.length / numberOfGroupsGroups; 766 var dataBreakIndex = dataBreakInterval * 1; 760 767 var determinantValues = []; 761 768 determinantValues[0] = data[0]; … … 764 771 while(i < data.length) 765 772 { 766 if(i > dataBreakIn terval)767 { 768 determinantValues[currentGroup] = data[i ];773 if(i > dataBreakIndex) 774 { 775 determinantValues[currentGroup] = data[i-1]; // use previous value as determinent comparison is < based. 769 776 currentGroup++; 770 dataBreakIn terval= currentGroup * dataBreakInterval;777 dataBreakIndex = currentGroup * dataBreakInterval; 771 778 } 772 779 i++; 773 780 } 774 determinantValues[numberOfGroupsGroups] = data[i ];781 determinantValues[numberOfGroupsGroups] = data[i-1]; 775 782 return(determinantValues); 776 783 }; //~~~~~~~~~~~~~~~~~~~~~~~~~ End of Function ~~~~~~~~~~~~~~~~~~~~~~~~~ 777 784 778 785 786 function getClassNone(dataValueArray) 787 { 788 var data = dataValueArray.sort(function(a,b) { return a - b;}); 789 var determinantValues = []; 790 determinantValues[0] = data[0]; 791 for(var i=1; i<data.length; i++) determinantValues[i] = data[i-1]; 792 determinantValues[data.length] = data[data.length-1]; 793 return(determinantValues); 794 }; //~~~~~~~~~~~~~~~~~~~~~~~~~ End of Function ~~~~~~~~~~~~~~~~~~~~~~~~~ 779 795 780 796 -
trunk/ibisph-view/src/main/webapp/xslt/html/LeafletMapGraphic.xslt
r6513 r6514 73 73 <option value="ArithmeticProgression">Arithmetic Progression</option> 74 74 <option value="Quantile">Quantile</option> 75 <option value="Equal">Equal</option> 75 <option value="EqualInterval">Equal Interval</option> 76 <option value="EqualGroup">Equal Group</option> 76 77 </select> 77 78
Note: See TracChangeset
for help on using the changeset viewer.