Skip to content

Commit

Permalink
Update Map, add Intro
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahrider committed Nov 1, 2023
1 parent 1ff1124 commit 449d73f
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
8 changes: 6 additions & 2 deletions _layouts/fcmap.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ <h2 class='page-title'>{{ page.title }}</h2>
.scrollable-popup {
max-height: 170px; /* Adjust the maximum height as needed */
overflow-y: auto;
font-size: 13px;
}
</style>

Expand Down Expand Up @@ -115,8 +116,8 @@ <h2 class='page-title'>{{ page.title }}</h2>
function createPopup(feature, layer) {
var jadeInventory = feature.properties["jades"];

// Replace all ')' characters with '"></li><li>' to create list items
var modifiedJadeInventory = jadeInventory.replace(/\)/g, '"></li><li>');
// Replace all ')' characters with ')</li><li>' to create list items
var modifiedJadeInventory = jadeInventory.replace(/\)/g, ')</li><li>');

var popup_text =
"<b>Palace Name: </b>" + feature.properties["palace_name"] + "<br>" +
Expand All @@ -125,6 +126,9 @@ <h2 class='page-title'>{{ page.title }}</h2>
"<b>Object Count: </b>" + feature.properties["object_cnt"] + "<br>" +
"<b>Jade Inventory: </b><ul class='scrollable-popup'><li>" + modifiedJadeInventory + "</li></ul>";

// Remove the trailing <li> element
popup_text = popup_text.replace(/<li><\/li><\/ul>/, "</ul>");

layer.bindPopup(popup_text);
}

Expand Down
2 changes: 1 addition & 1 deletion _sass/_wax.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ content section
li {
font-family: $body-font;
color: $text-color;
font-size: 1rem;
// font-size: 1rem;
line-height: 2rem;
max-width: 100%;
}
Expand Down
14 changes: 13 additions & 1 deletion pages/forbiddencity.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,16 @@ title: Forbidden City Map
permalink: /forbiddencity/
---

This is the page for the Forbidden City Map.
This cluster map of the Forbidden City shows the density and information about the **Hindustan jades** according to the 1925, National Palace Museum, Beijing, inventory of classical objects. In that same year, The Palace Museum opened the doors to the Forbidden City's rear palaces to the public for the first time. For centuries before, the Forbidden City was the regal and secluded home for Ming and Qing emperors.

However, 1925 marked an important year for what would become the National Palace Museum we know today. This inventory, and the gradual opening of the Forbidden City grounds, provide a look into how Republican leadership utilized the former seat of dynastic power and classical Chinese art to assert authority domestically to its visitors, as well as internationally through the inclusion of Hindustan objects from across Muslim regions.

**A note about the inventory** -
The current inventory includes only jades that now are housed in the National Palace Museum, Taipei. The National Palace Museum, Beijing, does not provide open access images of their collection. Additional jades stored in other museums or private collections will be added as they are made available.

## Map Interaction
The Map of the Forbidden City supports the following in English, Pinyin, and Simplified Chinese.
- Search for
- Palaces
- Jade objects
- Object density comparison using clusters

0 comments on commit 449d73f

Please sign in to comment.