Mr Lucky
Well-known member
In so much as the map resizes accordingly - yes. There's nothing much else to do from a UI PoV.
What makes you say it's not?
The horizontal scroll bar.
Yes I appreciate it the map can be zoomed.
In so much as the map resizes accordingly - yes. There's nothing much else to do from a UI PoV.
What makes you say it's not?
No idea what the Latitude and Longitude fields are. Not my add-on.
As for the Map Location - it should not (I don't think) be shown by default. Did you enable it by mistake?
Nonetheless, you can turn it off here:
View attachment 148130
HTH
C
Ah, that makes sense.I think you're seeing the scrollbar because of the banner add at the top which does not change on the fly. The map, for me, changes to fit as you resize the window.
Two new bits of functionality added -
- Start a conversation with everyone visible on the map
- Show groups on the map, hide groups etc.
- Maintenance fixes.
Start a conversation with everyone visible on the map
You can now start a conversation with everyone visible on the map. This is handy if you want to contact everyone in a certain area. Normal permissions kick in with starting conversations and conversation limits.
This can be turned off in ACP.
Show...
Hello @CrispinP
Other cool stuff:
- view only all staffs
- view only all members in my group or group xyz (nice for social group addons)
...
I think that will be a grand feature for your cool map addon.
This basic spatial query for a distance from a specific point is a good example on only about 4k rows that have location data
The main sorting stage of the query is about 5-10 times slower on the InnoDB with no index.Code:SELECT user_id, X(cum_map_location) AS "latitude", Y(cum_map_location) AS "longitude", ( GLength( LineStringFromWKB( LineString( cum_map_location, GeomFromText('POINT(39.900757 -76.606021)') ) ) ) ) AS distance FROM xf_user_profile WHERE cum_map_location IS NOT NULL ORDER BY distance ASC LIMIT 0,30;
I'm also doing an accurate distance query taking into account longitude differential which shows some difference as well but is mostly restricted by the function math. Just playing around today and figuring out various methods for semi-accurately finding other users close without too much SQL work.
Code:drop function if exists lineDistanceC; delimiter // CREATE FUNCTION lineDistanceC (la1 DOUBLE, lo1 DOUBLE, la2 DOUBLE, lo2 DOUBLE) RETURNS DOUBLE BEGIN SET @r = 6371; SET @lat1 = RADIANS(la1); SET @lon1 = RADIANS(lo1); SET @lat2 = RADIANS(la2); SET @lon2 = RADIANS(lo2); SET @x = (@lon2-@lon1) * COS((@lat1+@lat2)/2); SET @y = (@lat2 - @lat1); RETURN (SQRT((@x*@x) + (@y*@y)) * @r); END // delimiter ; SELECT user_id, location, lineDistanceC(X(cum_map_location),Y(cum_map_location),39.900757,-76.606021) AS distance FROM xf_user_profile WHERE cum_map_location IS NOT NULL HAVING distance <=75 ORDER BY distance ASC
Well I'll be using it for my own custom purposes but for the map I was thinking something like a slider or dropdown with incremental distances and a show users. Depending on what distance is selected, you could auto-zoom to an appropriate level to show all the pins and then follow-on to your Start a conversation function (which works well, nice!)How did you think of including functionality like this in the map? I think something like a slider to say "show x distance from me"?
I'll look at splitting the table out too now. I have enough custom columns in there to justify it
Sure - those can be changed..maptoggled_button
- Any chance to add some text into this (for now is only 3 dots)
- Any chance to replace with some FA icon
- Any chance to have open by default
Well I'll be using it for my own custom purposes but for the map I was thinking something like a slider or dropdown with incremental distances and a show users. Depending on what distance is selected, you could auto-zoom to an appropriate level to show all the pins and then follow-on to your Start a conversation function (which works well, nice!)
User Group Selection and view on the map does not work. Either just a few are shown (less than the correct numbers) or none of a specific group at all.
I'll get a patch out for it.
Not sure if this is ideal or not. Are you looking for secondary groups to work to?
We use essential cookies to make this site work, and optional cookies to enhance your experience.