Skip to content

Commit cb6f6dd

Browse files
committed
remove annoyingly large files
1 parent fec46e5 commit cb6f6dd

1 file changed

Lines changed: 103 additions & 15 deletions

File tree

ht-map-beta.html

Lines changed: 103 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,7 @@ <h3 id="legend-title" class="font-medium mb-2"></h3>
13871387
});
13881388

13891389
// Parcel suitability/land use/density
1390-
fetchJSON('parcels', 'CMRPC_Parcels_Suitability_LandUse_DUA_260302.json')
1390+
fetchJSON('parcels', 'CMRPC_Parcels_Suitability_LandUse_DUA_TranspoDiv_260618.json')
13911391
.then(data => {
13921392
batchSetFeatureStates({
13931393
data,
@@ -3968,25 +3968,113 @@ <h3 id="legend-title" class="font-medium mb-2"></h3>
39683968
case "suit-d": {
39693969
const suitability = attributes.suitclass1;
39703970
const suitabilityStatement = {
3971-
'A1' : `This parcel is in an lively area with adequate infrastructure to support density. If developing for greater density, this parcel would be a good candidate for the highest density residential typology possible.`,
3972-
'B1' : `This parcel has ready access to public sewer and is located in a transportation or marginally transportation diverse area. There is some activity. This parcel would be a good candidate for fairly dense missing middle housing, such as row houses or a quadplex.`,
3973-
'B2' : `This parcel has ready access to public sewer and is located in a transportation or marginally transportation deiverse area. It is not located in a high activity area. This parcel would be a good candidate for fairly dense missing middle housing, such as ownership-oriented row hours or a quadplex.`,
3974-
'B3' : `This parcel has no existing access to sewer but is located in a transportation or marginally transportation diverse area. Activity around this parcel is limited. If developing for greater density, this parcel would be a good candidate for up to a duplex. Further development potential may be unlocked should infrastructure be added or if the parcel is greater than an acre.`,
3975-
'B4' : `This parcel has no existing access to sewer but is located in a transportation or marginally transportation diverse area. It is located in a high activity area. If developing for greater density, this parcel would be a good candidate for up to a duplex. Further development potential may be unlocked should infrastructure be added or if the parcel is greater than an acre.`,
3976-
'B5' : `This parcel has ready access to public sewer but is located in an area of no transportation diversity. It is located in an area of high activty. If developing for greater density, this parcel would be a good candidate for fairly dense missing middle types oriented toward ownership, such as anything up to a town house.`,
3977-
'B6' : `This parcel has neither sewer access nor any type of transportation diversity. It is, however, located in a high activity area. If developing for greater density, this parcel would be a good candidate for up to a duplex, though improvements in infrastruture could unlock greater development potential. `,
3978-
'C1' : `This parcel has ready access to public sewer. It is not located in a transportation or marginally transportation diverse area, and there is litte activity around. If developing for greater density, this parcel could support up to a triplex or a small row of town homes.`,
3979-
'C2' : `This parcel has neither sewer access nor any type of transportation diversity. It is located in a somewhat limited activty area. If developing for higher density, this parcel could support up to a duplex.`,
3980-
'D1' : `This parcel has no sewer access, no transportation diversity, and no activity center. If developing for higher density, this parcel could support up to a duplex.`
3981-
};
3982-
3983-
const displaySuitability = suitabilityStatement[suitability]|| `Not available.`;
3971+
// 'A1' : `This parcel is in an lively area with adequate infrastructure to support density. If developing for greater density, this parcel would be a good candidate for the highest density residential typology possible.`,
3972+
// 'B1' : `This parcel has ready access to public sewer and is located in a transportation or marginally transportation diverse area. There is some activity. This parcel would be a good candidate for fairly dense missing middle housing, such as row houses or a quadplex.`,
3973+
// 'B2' : `This parcel has ready access to public sewer and is located in a transportation or marginally transportation deiverse area. It is not located in a high activity area. This parcel would be a good candidate for fairly dense missing middle housing, such as ownership-oriented row hours or a quadplex.`,
3974+
// 'B3' : `This parcel has no existing access to sewer but is located in a transportation or marginally transportation diverse area. Activity around this parcel is limited. If developing for greater density, this parcel would be a good candidate for up to a duplex. Further development potential may be unlocked should infrastructure be added or if the parcel is greater than an acre.`,
3975+
// 'B4' : `This parcel has no existing access to sewer but is located in a transportation or marginally transportation diverse area. It is located in a high activity area. If developing for greater density, this parcel would be a good candidate for up to a duplex. Further development potential may be unlocked should infrastructure be added or if the parcel is greater than an acre.`,
3976+
// 'B5' : `This parcel has ready access to public sewer but is located in an area of no transportation diversity. It is located in an area of high activty. If developing for greater density, this parcel would be a good candidate for fairly dense missing middle types oriented toward ownership, such as anything up to a town house.`,
3977+
// 'B6' : `This parcel has neither sewer access nor any type of transportation diversity. It is, however, located in a high activity area. If developing for greater density, this parcel would be a good candidate for up to a duplex, though improvements in infrastruture could unlock greater development potential. `,
3978+
// 'C1' : `This parcel has ready access to public sewer. It is not located in a transportation or marginally transportation diverse area, and there is litte activity around. If developing for greater density, this parcel could support up to a triplex or a small row of town homes.`,
3979+
// 'C2' : `This parcel has neither sewer access nor any type of transportation diversity. It is located in a somewhat limited activty area. If developing for higher density, this parcel could support up to a duplex.`,
3980+
// 'D1' : `This parcel has no sewer access, no transportation diversity, and no activity center. If developing for higher density, this parcel could support up to a duplex.`
3981+
'A1': {
3982+
bullets: [
3983+
'Located in a lively, high-activity area',
3984+
'Adequate infrastructure to support density',
3985+
'Best candidate for the highest density residential typology possible'
3986+
]
3987+
},
3988+
'B1': {
3989+
bullets: [
3990+
'Ready access to public sewer',
3991+
'Transportation or marginally transportation-diverse area with some activity',
3992+
'Good candidate for fairly dense missing middle housing (e.g. row houses or quadplex)'
3993+
]
3994+
},
3995+
'B2': {
3996+
bullets: [
3997+
'Ready access to public sewer',
3998+
'Transportation-diverse area but not high activity',
3999+
'Good candidate for ownership-oriented row houses or a quadplex'
4000+
]
4001+
},
4002+
'B3': {
4003+
bullets: [
4004+
'No existing sewer access; limited activity',
4005+
'Transportation or marginally transportation-diverse area',
4006+
'Candidate for up to a duplex — more potential with infrastructure or 1+ acre parcel'
4007+
]
4008+
},
4009+
'B4': {
4010+
bullets: [
4011+
'No existing sewer access but high-activity area',
4012+
'Transportation or marginally transportation-diverse area',
4013+
'Candidate for up to a duplex — more potential with added infrastructure'
4014+
]
4015+
},
4016+
'B5': {
4017+
bullets: [
4018+
'Ready access to public sewer; high-activity area',
4019+
'No transportation diversity',
4020+
'Good candidate for ownership-oriented missing middle up to a townhouse'
4021+
]
4022+
},
4023+
'B6': {
4024+
bullets: [
4025+
'No sewer access or transportation diversity',
4026+
'High-activity area',
4027+
'Candidate for up to a duplex — infrastructure improvements could unlock more'
4028+
]
4029+
},
4030+
'C1': {
4031+
bullets: [
4032+
'Ready access to public sewer',
4033+
'Not in a transportation-diverse or high-activity area',
4034+
'Could support up to a triplex or small row of townhomes'
4035+
]
4036+
},
4037+
'C2': {
4038+
bullets: [
4039+
'No sewer access or transportation diversity',
4040+
'Somewhat limited activity area',
4041+
'Could support up to a duplex'
4042+
]
4043+
},
4044+
'D1': {
4045+
bullets: [
4046+
'No sewer access, no transportation diversity, no activity center',
4047+
'Could support up to a duplex'
4048+
]
4049+
}
4050+
};
4051+
4052+
4053+
const displaySuitability = suitabilityStatement[suitability];
4054+
4055+
let suitabilityHTML;
4056+
if (!displaySuitability) {
4057+
suitabilityHTML = `<p>Not available.</p>`;
4058+
} else if (displaySuitability.bullets) {
4059+
const items = displaySuitability.bullets
4060+
.map(b => `<div>• ${b}</div>`)
4061+
.join('');
4062+
suitabilityHTML = `<div style="margin-top: 4px; line-height: 1.4;">${items}</div>`;
4063+
} else {
4064+
suitabilityHTML = `<p>${displaySuitability}</p>`;
4065+
}
39844066

39854067
html = `
39864068
<div class="popup-header">${parcelDisplayName}</div>
39874069
<div class="popup-content">
3988-
Suitability class: ${suitability || "N/a"} <p>${displaySuitability}
4070+
Suitability class: ${suitability || "N/a"}
4071+
${suitabilityHTML}
39894072
</div>`;
4073+
// html = `
4074+
// <div class="popup-header">${parcelDisplayName}</div>
4075+
// <div class="popup-content">
4076+
// Suitability class: ${suitability || "N/a"} <p>${displaySuitability}
4077+
// </div>`;
39904078
break;
39914079
}
39924080

0 commit comments

Comments
 (0)