";
for (let ecoregion of level3Eco) {
items.innerHTML += `
${ecoregion.name}
`;
}
div.insertAdjacentHTML(
"beforeend",
""
);
return div;
};
//requested that legend be hidden, so it's commented out
// level3legend.addTo(map);
// if (params.eco3Show !== true && params.eco4Show !== true) {
// const legend = document.querySelector(".legend-items");
// legend.style.display = "none";
// }
}
/*
*eco3Load* will load the level 3 ecoregion data. Must be TRUE in order for eco3Show to work.
*eco3Show* will automatically populate the map with the level 3 ecoregions. If not selected, the ecoregions & legend will load, but will be toggled off & minimized respectively.
*/
if (params.eco3Load === true) {
//initialize ecoregion layer
const level3Layer = new L.layerGroup();
//add loading spinner while ecoregions load
document.querySelector("#ecoregion_map").insertAdjacentHTML(
"afterend",
`
Level 3 Ecoregions Loading
`
);
const loadLevel3Ecos = async () => {
const promises = [];
for (let eco of level3Eco) {
try {
let res = await fetch(
`https://geodata.epa.gov/arcgis/rest/services/ORD/USEPA_Ecoregions_Level_III_and_IV/MapServer/11/query?where=US_L3CODE+%3D+%27${eco.id}%27&f=geojson`
);
let json = await res.json();
//add ecoregion name so it can be bound to tooltip
json.name = eco.name;
json.style = eco.style;
json.info = eco.info;
promises.push(json);
} catch (error) {
console.log(error);
}
}
Promise.all(promises).then((res) => {
document.querySelector(".spinner-container").hidden = true;
document.querySelector("#level-3-loading").style.display = "none";
for (let ecoregion of res) {
L.geoJSON(ecoregion, {
className: "l3-layer-overlay",
fillOpacity: 0.2,
weight: 1,
color: ecoregion.style,
})
//TODO currently uses unsplash filler images, needs to be updated in future with actual ecoregion pictures
.bindTooltip(ecoregion.name, { className: "ecoregion-popup" })
.on("click", function (e) {
l3sidebar.setContent(`
${ecoregion.name}
Level 3 Ecoregion
${ecoregion.info}
Reference: Griffith, Bryce, Omernick & Rodgers (2007). Ecoregions of Texas.`);
l3sidebar.show();
})
.addTo(level3Layer);
}
//add the layer to the map
if (params.eco3Show === true) {
map.addLayer(level3Layer);
}
//add layer to overlay so it can be toggled
layerControl.addOverlay(level3Layer, "Level 3 Ecoregions");
});
};
loadLevel3Ecos();
//initialize sidebar
const l3sidebar = L.control.sidebar("l3sidebar", {
position: "left",
});
//add controls to sidebar
map.addControl(l3sidebar);
}
/*
*eco4Load* will load the level 3 ecoregion data. Must be TRUE in order for eco4Show to work.
*eco4Show* will automatically populate the map with the level 4 ecoregions. If not selected, the ecoregions & legend (for level 3 ecoregions) will load, but will be toggled off & minimized respectively.
*/
if (params.eco4Load === true) {
//initialize ecoregion layer
const level4Layer = new L.layerGroup();
//add loading spinner while ecoregions load
document.querySelector("#ecoregion_map").insertAdjacentHTML(
"afterend",
`
Level 4 Ecoregions Loading
`
);
const loadLevel4Ecos = async () => {
const lvl4Promises = [];
for (let eco of level4Eco) {
try {
let res = await fetch(
`https://geodata.epa.gov/arcgis/rest/services/ORD/USEPA_Ecoregions_Level_III_and_IV/MapServer/7/query?where=US_L4CODE+%3D+%27${eco.id}%27&f=geojson`
);
let json = await res.json();
//add ecoregion name so it can be bound to tooltip
json.name = eco.name;
json.style = eco.style;
json.info = eco.info;
lvl4Promises.push(json);
} catch (error) {
console.log(error);
}
}
Promise.all(lvl4Promises).then((res) => {
if (params.eco3Load === false && params.eco4Load === true) {
document.querySelector(".spinner-container").hidden = true;
}
document.querySelector("#level-4-loading").style.display = "none";
for (let ecoregion of res) {
L.geoJSON(ecoregion, {
className: "l4-layer-overlay",
fillOpacity: 0.4,
weight: 1,
color: ecoregion.style,
})
//TODO currently uses unsplash filler images, needs to be updated in future with actual ecoregion pictures
.bindTooltip(ecoregion.name, { className: "ecoregion-popup" })
.on("click", function (e) {
l4sidebar.setContent(`
${ecoregion.name}
Level 4 Ecoregion
${ecoregion.info}
Reference: Griffith, Bryce, Omernick & Rodgers (2007). Ecoregions of Texas.`);
l4sidebar.show();
})
.addTo(level4Layer);
}
if (params.eco4Show === true) {
//add the layer to the map
map.addLayer(level4Layer);
}
//add layer to overlay so it can be toggled
layerControl.addOverlay(level4Layer, "Level 4 Ecoregions");
});
};
loadLevel4Ecos();
const l4sidebar = L.control.sidebar("l4sidebar", {
position: "right",
});
map.addControl(l4sidebar);
}
/*
*chapterLoad* will load the chapter location pins & chapter counties to create a "heatmap". Must be TRUE in order for chapterShow to work.
*chapterShow* will automatically populate the map with the chapter location pins & chapter counties. If not selected, the chapter location pins & chapter counties will load but will be toggled off.
*/
if (params.chapterLoad === true) {
const loadChapters = async () => {
const chapterOptions = { ...iconOptions };
chapterOptions.borderColor = "#3c5799";
chapterOptions.textColor = "#3c5799";
chapterOptions.icon = "users";
//initialize layer for chapter pins
const chapterPins = new L.LayerGroup();
//initialize layer for chapter counties
const chapterCounties = new L.LayerGroup();
//storage for chapter counties
const countyArr = [];
//add loading spinner while ecoregions load
document.querySelector("#ecoregion_map").insertAdjacentHTML(
"afterend",
`
The below locales in North Texas are a great way to see our native plants in demonstration gardens, parks, prairies, preserves, and other sites. Further information is available by selecting a location on the map or scrolling down to the site summaries.
Leads: Josephine Keeney & Jane Oosterhuis Workdays: Monthly Knapp Heritage Park was dedicated in 2004 and managed by the Arlington Historical Society. Geraldine Mills is the Director of this park
Lead: Stesha Pasachnik Workdays: 2nd Friday of the month from 9:30 am to 11:30 am unless otherwise noted The Fort Worth Zoo Pollinator Grow Zone located at 1989 Colonial Parkway,
Leads: Theresa Kay Thomas and Greg Hubbard Workdays: Second and Fourth Thursday of each month The Southwest Regional / Hulen Library Demo garden is located on the southwest corner of
Lead: Josephine Keeney Workdays: Second Saturday of each month This Pollinator Garden was started from scratch in 2010 under the Leadership of Kevin Donovan and the sponsorship of the Arlington
Lead: Josephine Keeney Workdays: Fourth Monday of each month The garden was started November 2020 with a great from the Audubon Society and plants were donated by volunteers. Bluebird nest
Lead: Josephine Keeney Workdays: Third Monday of each month The Pollinator gardens had been in disrepair for the lack of volunteers. In 2019, The River Legacy Sience Center ask a
Garden Lead: Carol Marcottee This lovely Native Plant Garden is locate at 1901 W. Randol Mill Rd., Arlington, TX 76012. Workdays are the 4th Thursday – email list will keep
Garden Leader: Bill Freiheit The garden is a newly established native plant garden located at 4801 Marine Creek Parkway, Fort Worth, TX 76179. Volunteers include TCC students. Workdays are the
Lead: Josephine Keeney For more details, visit the Fielder House website The butterfly garden at Fielder House was started in 2006 and continues to be a work in progress on
Leads: Ann Knudson and Hester Schwarzer Workdays: Every Wednesday of the month and first Saturday on the month The Molly Hollar Wildscape, located in Veterans Park, Arlington, TX was started
Garden Leaders: Avon Burton and Marcie Delgado Mission To attract and support local butterflies, Monarch butterflies, native bees, and other pollinators and to provide educational tools and volunteer opportunities that
The Blackland Prairie Raptor Center in Lucas promotes and enhances populations of raptors through rehabilitation, conservation, and education initiatives. In line with their name, the facility has also undertaken large-scale
The 1,475 acre preserve in Hunt County contains some of the largest and most diverse remnants of the Blackland Prairie — the Texas version of the tallgrass prairie that once
The nature preserve, located in Allen, is 72 acres of natural habitat, and rich in floral diversity that is reminiscent of the native tallgrass Blackland Prairie.
A historic five-acre nature preserve situated in the midst of north Dallas. The site features a rare remnant of the Blackland Prairie once indigenous to the Dallas area, the historic
The 11,320-acre refuge on Lake Texoma includes shallow marshes, creeks, bottomland hardwoods, forested uplands and grasslands, that provide habitat for more than 300 species of birds and many varieties of wildlife.
A 289 acre nature preserve and natural science museum in McKinney. The grounds include a native plant garden, native Texas Butterfly house, and wildlife sanctuary with native grasses, trees, and perennials.
Lyndon B. Johnson National Grassland is a national grassland located near Decatur, and within an hour’s drive from Fort Worth. It is primarily used for recreation, such as hiking, camping,
Includes over 2,600 acres of prairies and bottomland forests adjacent to Lewisville Lake. LLELA’s mission is to preserve and restore the native habitat and biodiversity, with active prairie and forest restoration
A 436-acre native plant preserve located in northeast Collin County. Parkhill Prairie Park features a 52-acre relic of the Blackland tall-grass prairie and provides magnificent views of the countryside.
The 2,100-acre meadow in Lamar County is the largest section of native grassland existing in Texas. This grassland has remained uncultivated, providing an annual harvest of native grasses.
A two-acre Texas Historic Cemetery dating from 1847. Located in McKinney, the grounds have a wide variety of native grasses and perennials on undisturbed soil.