Ticket #125 (closed task: done)

Opened 7 years ago

Last modified 7 years ago

Add markers for incident locations to Incident map

Reported by: jdalbey Owned by: jdalbey
Priority: Medium Milestone: May 2019 Training
Component: Electronic Instructor Notebook Version:
Severity: Minor Keywords:
Cc:

Description

Part of the EI notebook is an incident map (for instructors only).
Examine the Incident script (e.g. full_script.xml) to identify the cross streets where each incident occurs. Use Google Maps to find the lat/long for each location. Add a marker to a google map and embed this in the page in the EI notebook.

Change History

comment:1 Changed 7 years ago by jdalbey

In the XML file, the start of the incident should contain one or more tags like this from which the location postmile can be obtained.

			<LOCATION_INFO ID="187_N_405_ML">
				<Route>405</Route>
				<Direction>NB</Direction>
				<Postmile>8.4</Postmile>
				<Location_type>ML</Location_type>					
			</LOCATION_INFO>

comment:2 Changed 7 years ago by jdalbey

As a temporary workaround I followed the directions in this tutorial:
 https://nearplace.com/blog/how-to-add-multiple-markers-on-google-maps/
to create this static google map:
 https://drive.google.com/open?id=11RLV4iMbnXW7HlZCATvTa9z1Y01gngzR&usp=sharing

We can just link to this in the EI notebook for now.

comment:3 Changed 7 years ago by jdalbey

  • Status changed from new to closed
  • Resolution set to done

Workaround implemented. Modified einotebook/maps/index.html to embed the google map mentioned in the previous comment. Closing the ticket for now.

Note: See TracTickets for help on using tickets.