I'm not sure how the friend/foe thing is handled within phpBB - there may be specific functions written that could easily be used for Phoogle's purposes like you described. I just don't know.
Might be worth looking into that. If I have some time I might do that.
BassFace wrote:As for the Google marker manager, I didn't think it was well suited for this MOD, it is more for handling different sets of markers and what zoom level you want each set to start being shown. I didn't think that would fit well with a changing/growing set of user markers that should be shown at all zoom levels.
I brought it up because as of now you are only diplaying a limited number of markers. And when I'm looking for members near my location, I would not be able to find them all, because it is very likely they aren't displayed.
The marker manager is designed to handle a large amount of markers because it only displays a limited number of them at any given time (if scripted crorrectly
Google wrote:Marker manager is an interface between the map and the user, designed to manage adding and removing many points when the viewport changes.
Algorithm: The MM places its markers onto a grid, similar to the map tiles. When the user moves the viewport, the MM computes which grid cells have entered or left the viewport, and shows or hides all the markers in those cells.
(If the users scrolls the viewport beyond the markers that are loaded, no markers will be visible until the EVENT_moveend triggers an update.)
In practical consequences, this allows 10,000 markers to be distributed over a large area, and as long as only 100-200 are visible in any given viewport, the user will see good performance corresponding to the 100 visible markers, rather than poor performance corresponding to the total 10,000 markers.
The only problem I see is: How to define the marker groups within PHP based on the geocode. Because it would be nesseccary to group markers at a given location and a radius x based on zoom level. If we could solve this, I think marker manager could greatly improve this mod. And the geocode is just numbers, so it is "only" a mathematical problem.
Btw: Great work so far. I "stole" some of your JS code for my own testing with the API.