Skip to content

FrontEndParty/old-maps-demo

Repository files navigation

OldInsuranceMaps.net - Front End Party

For this Front End Party we will incorporate historical map layers from OldInsuranceMaps.net into new web map applications. OIM makes it easy for people to "georeference" scans of old maps, and once they have been georeferenced they be used in web applications or geospatial analysis.

Demos on GitHub pages: https://frontendparty.github.io/old-maps-demo

Getting started

You will need nodejs installed before getting started.

  1. Clone this repo and enter the directory

    git clone https://github.com/mradamcox/oldmaps cd oldmaps

  2. Install dependencies

    npm install

  3. Run the dev server

    npm start

You should now be able to open the app in a browser at https://localhost:5173 and checkout the examples described below.

Create a new map

Make a new branch

git checkout -b my_map

Then create a new directory with an index.html and main.js file inside:

my_map/
    index.html
    main.js

Feel free to copy one of the examples if you want, or start something from scratch.

Finally, update vite.config.js with a new line to get your new map included in the build.

    ...
    input: {
        main:'index.html',
        low_level_flights: 'low_level_flights/index.html',
        lost_markets: 'lost_markets/index.html'
+       my_map: 'my_map/index.html'
      }

You should be able to view your app at https://localhost:5173/oldmaps/my_map/.

Note: You must add the trailing slash!

Be sure to run a production build to make sure your map is included (this is how the GitHub pages is deployed):

npm run build

Finally, once your work is committed, make a PR to this repo and we'll merge it in!

Examples

Two examples show how layers from OldInsuranceMaps can be brought into a web map environment using OpenLayers, a JavaScript web mapping library. Each example does little more than adapt example code and then add some old map layers.

Lost Markets (points example)

Highlights the locations of a few open air markets that existed in the 1880s. Click a point to get the market's name in a popup.

Low-level Flights (game example)

Flies a lil plane around the French Quarter in 1885. Click/tap the map to change the plane's direction. This uses two great OpenLayers extension libraries, ol-ext and ol-games.

Resources to work with

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •