You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prior to resolving issue #54 feature request: marker clustering, I would like to normalize the various classes of markers. Currently, districts, regionals, and teams have different marker lists. Team infowindows are populated from a real-time TBA pull, while competitions' info are in the data file. I propose a single array for marker creation:
type: integer //or possibly character: a code for team, district, regional, RCMP, CMP
label: text // label for popup and root of filename for custom icon if one exists
icon: boolean // Is there a custom icon for this team/event? (null by default; set from overrides.js)
// possibly this would be a partial url string instead, but I think boolean is sufficient.
lat: float // Latitude in degrees north of equator
lng: float // Longitude in degrees east of Greenwich
marker: Marker // begins null; set in a marker creation loop.
This single array of markers would still have markers turned on/off by type, but would be more amenable to implementing a cluster scheme.
Also, note that competition popup labels would be populated with a call to TBA rather than from cached data. I also intend to add in the CMP events from TBA, and maybe will add ToC.
Any issues with making these changes?
The text was updated successfully, but these errors were encountered:
I've made the first few steps towards this in my fork. I have changed the competitions.js to events.js because it has a slimmer structure format rather than an array format. I've also collapsed the three marker array variables to a single one. May of the calls have fewer arguments. Next is to collapse openTeamInfo(num,marker) and openCompInfo(marker) to a single openInfo(marker).
Prior to resolving issue #54 feature request: marker clustering, I would like to normalize the various classes of markers. Currently, districts, regionals, and teams have different marker lists. Team infowindows are populated from a real-time TBA pull, while competitions' info are in the data file. I propose a single array for marker creation:
type: integer //or possibly character: a code for team, district, regional, RCMP, CMP
label: text // label for popup and root of filename for custom icon if one exists
icon: boolean // Is there a custom icon for this team/event? (null by default; set from overrides.js)
// possibly this would be a partial url string instead, but I think boolean is sufficient.
lat: float // Latitude in degrees north of equator
lng: float // Longitude in degrees east of Greenwich
marker: Marker // begins null; set in a marker creation loop.
This single array of markers would still have markers turned on/off by type, but would be more amenable to implementing a cluster scheme.
Also, note that competition popup labels would be populated with a call to TBA rather than from cached data. I also intend to add in the CMP events from TBA, and maybe will add ToC.
Any issues with making these changes?
The text was updated successfully, but these errors were encountered: