-
Notifications
You must be signed in to change notification settings - Fork 4
Program Structure
Temporary document for finding box shaped geo coordinates of an area based on window size of the web browser. This is used for building custom map tiles and including the geodata map area.
Main Tidepools loading script, specifying local, cloud or hybrid map tiles, loading maps, landmarks and optional APIs. There are additional customization settings here too.
If tidepools.js is set to load APIs, they are done here, by populating new map layers with representational landmarks for each API pulled from various sources.
Handler for drag dropping landmarks onto maps with various drop zones and creates a copy of what a user is dragging as a visual reference when dragging.
Universal variables for all tidepools JS scripts. jQuery handlers for submitting landmarks, maps, comments to PHP. Dynamic content sizing functions (changing scroll view based on window size, etc.). Mobile check function to determine if user is on mobile device.
Functions related to interacting with landmarks, from drag dropping handlers, including hidden values in form submissions, deleting landmarks, etc.
Loads maps and landmarks from PHP, based on objects inside the browsing window, handles landmark drawing and re-drawing based on zoom and pans from user.
Main loading page
Returns image size of image (to determine proportional content scaling in map_rendering.js).
Displays list view of appropriate landmarks, either those currently on map or those returned from search results.
Displays list view of most recent comments from landmarks currently on map.
Displays a single landmarks comment feed and general status.
Dynamically generates landmark filters menu, based on array stored in tidepools_variables.php
Dynamically generates landmark menu, based on array stored in tidepools_variables.php
Finding all map layers visible to the current user.
Displaying list of all map layers visible to user
Generates HTML content of all landmark popup windows, depending on variables passed to this file.
When a user pans or zooms in the mapping interface, this function is called to recalculate visible landmarks in the current window view, for all map layers. It also determines what time-based landmarks are visible based on the current time and each landmarks start and end time.
Records comments to Mongo database via form submission.
Records landmarks to Mongo database via form submission.
Records map layers to Mongo database via form submission.
Placeholder for recording new users to Mongo database.
Removes landmark from Database.
Universal variables for tidepools php functions. Holds name of Mongo collection right now, and arrays used for search and dynamic menu generation.