In Drupal 7, I have the following data structure:
• Construction Project
o Project Date Range, Date, Pop-Up Calendar
o Project Location, Geolocation, Google Map
• Time/Location Entry
o Project, Entity Reference, Select List (referencing Construction Project)
o Work Scope, Term Reference, Select List (reference Taxonomy term Work Scope)
o Date Range, Date, Pop-Up Calendar (includes end date)
o Line Design, List (text), Select List
o Line Stroke, List (test), Select List
o Waypoint, Geolocation, Google Map (multi value field)
- Work Scopes
The requirement is the build a custom module that produces a page like [url removed, login to view] This page is using the google maps JS API and you can review the code here [url removed, login to view]
Obviously this demo is static. What I want to achieve is a dynamic map that refreshes when a new date range is entered.
If a Time/Location Entry has a date range that is at all included in the date range chosen by the user, that time location entry will be shown on the map. If you click the “Refresh Map” button, you can see that it loads a new map with new lines.
I would prefer as much use of the views module as possible as it’s much easier to edit that a completely custom module, but if that’s not possible, I understand.
Please let me know if you have any questions.