Skip to content
This repository has been archived by the owner on Jun 16, 2022. It is now read-only.

Initial viewport is off #29

Closed
erochest opened this issue Apr 20, 2012 · 5 comments
Closed

Initial viewport is off #29

erochest opened this issue Apr 20, 2012 · 5 comments

Comments

@erochest
Copy link
Contributor

Given the input data below, the timeline starts off viewing 1872.

{
    "events": [
        {
            "image": "http://neatline.dev/archive/square_thumbnails/4cf823b4a96ec709c42193f9abcceb9f.jpg",
            "description": "Yellowstone National Park, established by the U.S. Congress and signed into law by President Ulysses S. Grant on March 1, 1872, is a national park located primarily in the U.S. state of Wyoming, although it also extends into Montana and Idaho. Yellowstone, widely held to be the first national park in the world, is known for its wildlife and its many geothermal features, especially Old Faithful Geyser, one of the most popular features in the park. It has many types of ecosystems, but the subalpine forest is dominant.<br />\nNative Americans have lived in the Yellowstone region for at least 11,000 years. The region was bypassed during the Lewis and Clark Expedition in the early 19th century. Aside from visits by mountain men during the early-to-mid-19th century, organized exploration did not begin until the late 1860s. The U.S. Army was commissioned to oversee the park just after its establishment. In 1917, administration of the park was transferred to the National Park Service, which had been created the previous year. Hundreds of structures have been built and are protected for their architectural and historical significance, and researchers have examined more than 1,000 archaeological",
            "link": "http://neatline.dev/items/show/8",
            "title": "Yellowstone National Park",
            "start": "1969-12-31T16:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/9e89f1a5f0a8760a4356b02095c8156e.jpg",
            "description": "Sequoia National Park is a national park in the southern Sierra Nevada east of Visalia, California, in the United States. It was established on September 25, 1890. The park spans 404,063 acres (631.35 sq mi; 1,635.18 km). Encompassing a vertical relief of nearly 13,000 feet (4,000 m), the park contains among its natural resources the highest point in the contiguous 48 United States, Mount Whitney, at 14,505 feet (4,421 m) above sea level. The park is south of and contiguous with Kings Canyon National Park; the two are administered by the National Park Service together.<br />\nThe park is famous for its giant sequoia trees, including the General Sherman tree, one of the largest trees on Earth. The General Sherman tree grows in the Giant Forest, which contains five out of the ten largest trees in the world. The Giant Forest is connected by the Generals Highway to Kings Canyon National Park&#039;s General Grant Grove, home to the General Grant tree among other giant sequoias. The park&#039;s giant sequoia forests are part of 202,430 acres (81,921 ha) of old-growth forests shared by Sequoia and Kings Canyon National Parks. Indeed, the parks preserve a landscape that still resembles the southern Sierra",
            "link": "http://neatline.dev/items/show/3",
            "title": "Sequoia National Park",
            "start": "1969-12-31T16:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/f7987c1d4636de78ccbddcfa70903daa.jpg",
            "description": "Yosemite National Park ( /joʊˈsɛmɨtiː/ yoh-SEM-it-ee) is a United States National Park spanning eastern portions of Tuolumne, Mariposa and Madera counties in northeastern California, United States. The park covers an area of 761,268 acres (3,080.74 km) and reaches across the western slopes of the Sierra Nevada mountain chain. Over 3.7 million people visit Yosemite each year: most spend their time in the seven square miles (18 km) of Yosemite Valley. Designated a World Heritage Site in 1984, Yosemite is internationally recognized for its spectacular granite cliffs, waterfalls, clear streams, Giant Sequoia groves, and biological diversity. Almost 95% of the park is designated wilderness. Although not the first designated national park, Yosemite was central to the development of the national park idea, largely owing to the work of people like Galen Clark and John Muir.<br />\nYosemite is one of the largest and least fragmented habitat blocks in the Sierra Nevada, and the park supports a diversity of plants and animals. The park has an elevation range from 2,127 to 13,114 feet (648 to 3,997 m) and contains five major vegetation zones: chaparral/oak woodland, lower montane forest, upper",
            "link": "http://neatline.dev/items/show/4",
            "title": "Yosemite National Park",
            "start": "1969-12-31T16:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/9e5a3c63b857de29addfd67bf2d25c7b.jpg",
            "description": "Mount Rainier National Park is a United States National Park located in southeast Pierce County and northeast Lewis County in Washington state. It was one of the US&#039;s earliest National Parks, having been established on March 2, 1899 as the fifth national park in the United States. The park encompasses 236,381 acres (369.35 sq mi; 956.60 km) including all of Mount Rainier, a 14,410-foot (4,390 m) stratovolcano. The mountain rises abruptly from the surrounding land with elevations in the park ranging from 1,600 feet (490 m) to over 14,000 feet (4,300 m). The highest point in the Cascade Range, around it are valleys, waterfalls, subalpine wildflower meadows, old growth forest and more than 25 glaciers. The volcano is often shrouded in clouds that dump enormous amounts of rain and snow on the peak every year and hide it from the crowds that head to the park on weekends.<br />\nMount Rainier is circled by the Wonderland Trail and is covered by several glaciers and snowfields totaling some 35 square miles (91 km). Carbon Glacier is the largest glacier by volume in the continental United States, while Emmons Glacier is the largest glacier by area. About 1.8 million people visit Mount Rainier",
            "link": "http://neatline.dev/items/show/35",
            "title": "Mount Rainier National Park",
            "start": "1969-12-31T16:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/538dd0ad9feebaaebe33e75d1c230636.jpg",
            "description": "Crater Lake National Park is a United States National Park located in southern Oregon. Established in 1902, Crater Lake National Park is the fifth oldest national park in the United States and the only one in the state of Oregon. The park encompasses the caldera of Crater Lake, a remnant of a destroyed volcano, Mount Mazama, and the surrounding hills and forests.<br />\nThe lake is 1,943 feet (592 m) deep at its deepest point, which makes it the deepest lake in the United States, the second deepest in North America and the ninth deepest in the world. Crater Lake is often referred to as the seventh deepest lake in the world, but this former listing excludes the approximately 3,000-foot (910 m) depth of subglacial Lake Vostok in Antarctica, which resides under nearly 13,000 feet (4,000 m) of ice, and the recent report of a 2,740-foot (840 m) maximum depth for Lake O&#039;Higgins/San Martin, located on the border of Chile and Argentina. However, when comparing its average depth of 1,148 feet (350 m) to the average depth of other deep lakes, Crater Lake becomes the deepest in the Western Hemisphere and the third deepest in the world. The impressive average depth of this volcanic lake is due to the",
            "link": "http://neatline.dev/items/show/21",
            "title": "Crater Lake National Park",
            "start": "1902-05-22T00:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/a7abd17a9a62de96c3294116a5b2ae94.jpg",
            "description": "Wind Cave National Park is a United States national park 10 miles (16 km) north of the town of Hot Springs in western South Dakota. Established in 1903 by President Theodore Roosevelt, it was the seventh U.S. National Park and the first cave to be designated a national park anywhere in the world. The cave is notable for its displays of the calcite formation known as boxwork. Approximately 95 percent of the world&#039;s discovered boxwork formations are found in Wind Cave. Wind Cave is also known for its frostwork. The cave is also considered a three-dimensional maze cave, recognized as the densest (most passage volume per cubic mile) cave system in the world. The cave is currently the fifth-longest in the world with 137.02 miles (220.51 km) of explored cave passageways, with an average of four new miles of cave being discovered each year. Above ground, the park includes the largest remaining natural mixed-grass prairie in the United States.<br />\nThe Lakota (Sioux), Indigenous People who live in the Black Hills of South Dakota, spoke of a hole that blew air, a place they consider sacred as the site where The Lakota first emerged from the underworld where they lived before the demiurge",
            "link": "http://neatline.dev/items/show/15",
            "title": "Wind Cave National Park",
            "start": "1903-01-09T00:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/3f4d78b40d7226edd2bbc337ba5fd5cc.jpg",
            "description": "Zion National Park is located in the Southwestern United States, near Springdale, Utah. A prominent feature of the 229-square-mile (590 km) park is Zion Canyon, which is 15 miles (24 km) long and up to half a mile (800 m) deep, cut through the reddish and tan-colored Navajo Sandstone by the North Fork of the Virgin River. The lowest elevation is 3,666 ft (1,117 m) at Coalpits Wash and the highest elevation is 8,726 ft (2,660 m) at Horse Ranch Mountain. Located at the junction of the Colorado Plateau, Great Basin, and Mojave Desert regions, the park&#039;s unique geography and variety of life zones allow for unusual plant and animal diversity. Numerous plant species as well as 289 species of birds, 75 mammals (including 19 species of bat), and 32 reptiles inhabit the park&#039;s four life zones: desert, riparian, woodland, and coniferous forest. Zion National Park includes mountains, canyons, buttes, mesas, monoliths, rivers, slot canyons, and natural arches.<br />\nHuman habitation of the area started about 8,000 years ago with small family groups of Native Americans; the semi-nomadic Basketmaker Anasazi (300 CE) stem from one of these groups. In turn, the Virgin Anasazi culture (500 CE) developed",
            "link": "http://neatline.dev/items/show/17",
            "title": "Zion National Park",
            "start": "1909-07-31T00:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/f43375c21e075393fabd6ea23a004b33.jpg",
            "description": "Glacier National Park is located in the U.S. state of Montana, bordering the Canadian provinces of Alberta and British Columbia. The park encompasses over 1,000,000 acres (4,000 km) and includes parts of two mountain ranges (sub-ranges of the Rocky Mountains), over 130 named lakes, more than 1,000 different species of plants and hundreds of species of animals. This vast pristine ecosystem is the centerpiece of what has been referred to as the &quot;Crown of the Continent Ecosystem&quot;, a region of protected land encompassing 16,000 square miles (41,000 km).<br />\nThe region that became Glacier National Park was first inhabited by Native Americans and upon the arrival of European explorers, was dominated by the Blackfeet in the east and the Flathead in the western regions. Soon after the establishment of the park on May 11, 1910, a number of hotels and chalets were constructed by the Great Northern Railway. These historic hotels and chalets are listed as National Historic Landmarks, and a total of 350 locations are on the National Register of Historic Places. By 1932, work was completed on the Going-to-the-Sun Road, later designated a National Historic Civil Engineering Landmark, which provided",
            "link": "http://neatline.dev/items/show/28",
            "title": "Glacier National Park",
            "start": "1910-05-11T00:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/90f33c92700d9bb1777f6caad87d9229.jpg",
            "description": "Acadia National Park is a National Park located in the U.S. state of Maine. It reserves much of Mount Desert Island, and associated smaller islands, off the Atlantic coast. Originally created as Lafayette National Park in 1919, the first National Park East of the Mississippi, it was renamed Acadia in 1929.<br />\nThe area first was inhabited by the Wabanaki people.<br />\nIn the fall of 1604, Samuel de Champlain observed a high-notched island composed of seven or eight mountains rising to bare-rock summits from slopes of birch, fir, and pine. Over four centuries later, the area remains essentially the same.<br />\nThe landscape architect Charles Elliot is credited with the idea for the park. It first attained federal status when President Woodrow Wilson, established it as Sieur de Monts National Monument on July 8, 1916, administered by the National Park Service. On February 26, 1919, it became a national park, with the name Lafayette National Park in honor of the Marquis de Lafayette, an influential French supporter of the American Revolution. The park&#039;s name was changed to Acadia National Park on January 19, 1929.<br />\nFrom 1915 to 1933, the wealthy philanthropist John D. Rockefeller, Jr. financed,",
            "link": "http://neatline.dev/items/show/23",
            "title": "Acadia National Park",
            "start": "1916-07-08T00:00:00-08:00"
        },
        {
            "image": "http://neatline.dev/archive/square_thumbnails/fe7fc9c98be3b1afe340f0a9e9d7890a.jpg",
            "description": "Grand Canyon National Park is the United States&#039; 15th oldest national park and is located in Arizona. Within the park lies the Grand Canyon, a gorge of the Colorado River, considered to be one of the Wonders of the World. The park covers 1,217,262 acres (1,902 sq mi; 4,926 km) of unincorporated area in Coconino and Mohave counties.<br />\nMost visitors to the park come to the South Rim, arriving on Arizona State Route 64. The Highway enters the park through the South Entrance, near Tusayan, Arizona, and heads eastward, leaving the park through the East Entrance. All park accommodations are operated by the Xanterra corporation. Park headquarters are at Grand Canyon Village, a short distance from the South Entrance, being also the location of the most popular viewpoints. Some thirty miles of the South Rim are accessible by road. A much smaller venue for tourists is found on the North Rim, accessed by Arizona State Route 67. There is no road connection between the two within Arizona except via the Navajo Bridge, near Page, Arizona, entailing a five-hour drive. Otherwise, the two rims of the Canyon are connected via Boulder City, Nevada, and the Hoover Dam.<br />\nThe rest of the Grand Canyon is",
            "link": "http://neatline.dev/items/show/5",
            "title": "Grand Canyon National Park",
            "start": "1919-02-26T00:00:00-08:00"
        }
    ]
}
@jeremyboggs
Copy link
Member

Can you add a comment that says what the values for the DC:Date fields are for each of those items? Seems like it might be parsing the dates incorrectly. They should be in ascending order, so it seems like it's orderign them correctly, but not converting the date correctly.

@erochest
Copy link
Contributor Author

Here are the set of dates those are drawn from.



mysql> select text from omeka_element_texts et join omeka_elements e on e.id=et.element_id join omeka_items i on i.id=et.record_id where e.name='date' order by et.text;
+------------+
| text       |
+------------+
| 1872-03-01 |
| 1890-10-01 |
| 1890-10-01 |
| 1899-03-02 |
| 1902-05-22 |
| 1903-01-09 |
| 1909-07-31 |
| 1910-05-11 |
| 1916-07-08 |
| 1919-02-26 |
| 1921-03-04 |
| 1929-02-26 |
| 1930-05-14 |
| 1934-06-15 |
| 1935-01-04 |
| 1938-06-29 |
| 1939-01-29 |
| 1940-03-04 |
| 1940-04-03 |
| 1941-07-01 |
| 1947-12-06 |
| 1956-08-02 |
| 1961-07-01 |
| 1962-01-01 |
| 1964-09-12 |
| 1968-01-01 |
| 1975-04-08 |
| 1976-10-18 |
| 1978-11-10 |
| 1980-03-05 |
| 1980-06-28 |
| 1980-12-02 |
| 1980-12-02 |
| 1980-12-02 |
| 1980-12-02 |
| 1980-12-02 |
| 1980-12-02 |
| 1980-12-02 |
| 1987-10-27 |
| 1988-10-31 |
| 1994-10-14 |
| 1994-10-31 |
| 1994-10-31 |
| 1999-10-21 |
| 2004-09-13 |
+------------+
45 rows in set (0.02 sec)

@erochest
Copy link
Contributor Author

Interesting, I just noticed that this is pulling the start date from the full range of dates, not from just those being shown. #25 should take care of this.

@jeremyboggs
Copy link
Member

Can you confirm that the latest changes, particular @695faa0159e60ed18cad556915b5104a464b4581 resolve this issue?

@erochest
Copy link
Contributor Author

Looks good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants