Skip to content

Commit

Permalink
Move city boundaries to be on top
Browse files Browse the repository at this point in the history
  • Loading branch information
tunglinn committed Nov 4, 2023
1 parent cea0bf2 commit 24f5adf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/setUpSite.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ const setUpSite = async () => {
setUpAbout();

const map = createMap();
await Promise.all([setUpCitiesLayer(map), setUpParkingLotsLayer(map)]);
// Adding layers in this order to ensure city boundaries is on the top
await setUpParkingLotsLayer(map);
await setUpCitiesLayer(map);

// There have been some issues on Safari with the map only rendering the top 20%
// on the first page load. This is meant to address that.
Expand Down

0 comments on commit 24f5adf

Please sign in to comment.