Skip to content

mrcoulson/Emergency-Responders-Mapbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Emergency Responders Mapbook

Background

Emergency response personnel (e.g., ambulance drivers or police officers) were navigating the county with a massive printed tome of paper maps. This application gives them an electronic equivalent that allows them to find addresses more quickly and easily. One of the biggest (and most fun) challenges so far has been the need to create a web application that can run 100% locally on the device (we use it on an iPad) without needing any network connection. Now that we are actually offering this thing for download on our site, I've changed the versioning from 0.x to 1.x.

Components

The components of the application are separated into different folders.

Application Root

This folder contains an HTML index file.

img

This contains any images needed for the index file.

css

This folder obviously just holds the CSS files for the web pages.

data

This folder contains CSV files and Python scripts. The CSV files are produced with ESRI ArcMap. The Python scripts read the CSV files and write them into HTML and JavaScript files. In our implementation of the application, the end user does not need any interaction with these files. They are simply there to update data when we push out a new version.

htmls

This is where all of the HTML files for the web application live. They're all static HTML files because the application needs to run in an environment without server-side processing.

jpegs

The jpegs folder contains the images required for the project. There are two folders: one for index maps and one for the mapbook pages themselves. These JPEGs are exported from ArcMap with a Python script. We do not include the images in the mapbookjpegs folder on GitHub because there are so many. You can download those from http://goo.gl/J8sRN.

js

The js folder contains the JavaScript files necessary to run the application. This includes the jQuery library, Matt Stow's jQuery-rwdImageMaps script, general scripts to run the web pages, and the data needed for the address search.

How It Works

Displaying Mapbook Pages

Basically, any requested mapbook page is handled by jpeg.html. The file name of the map is passed in the URL like this:

jpeg.html?s=map12

Searching Addresses

The address search uses an associate array to match addresses as output from ArcMap with mapbook page numbers. Basically, the value of the search box is passed as a value for the array. Simplified example:

var search = $("#txtAddress").val();

var result = address[search];

We use the associative array approach because it runs right inside the browser as long as JavaScript is supported and it is much faster than other options we tried (e.g., jQuery plugins for searching tables).

Deployment

Here at Frederick County, we use the mapbook on iPads with an app called GoodReader. It is simple to download new versions of the mapbook to the iPad (since we cannot simply access the file system on iOS) and then run the files locally inside GoodReader. In tests on Android devices, we were able to run the mapbook locally in a web browser by storing it on an SD card.

Credit Is Due

The original inspiration for this project came from a similar application used by Page County, VA. Lindsey Felton is responsible for maps and project guidance. Scripting and pretentious HTML compliance is by Jeremy Coulson.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published