-
Notifications
You must be signed in to change notification settings - Fork 12
Generating a static map image
Dave Thaler edited this page Oct 17, 2025
·
1 revision
Notification emails to subscribers include a link to a map of the hydrophone location. Whenever a new hydrophone is added, a new static map must be generated to avoid bad links being used. The process to do so is as follows:
- Go to the USGS map site in a full-screen browser.
- Enter the same coordinates as Orcasite has for the hydrophone. You can get the coordinates by grabbing them from the public JSON API.
- Set the "basemap" (top icon on the right) to "Imagery with Labels".
- For "layers" (second icon on the right), turn on "National Hydrography Dataset".
- Use the
+/-icons on the left until the bottom right corner says "Zoom Level: 13". - Take a screenshot (e.g., on Windows use the "Snipping Tool") and then open it in an image editor such as Paint.
- Resize the image to 33%. For example, in Paint, this can be done via the Resize icon in the "Image" section of the ribbon, or by hitting Ctrl-W.
- Crop the image down to a 300 x 200 px section. For example, in Paint, this can be done by dragging the image borders.
- Save As a jpg with a filename that matches the
slugvalue configured on Orcasite. - Go to the Azure Storage browser.
- Select "Blob containers" then "images"
- Upload the jpg saved above