Locations Plugin

For the users map, look for location users map default in the Plugin settings and check Default to users map when navigating to 'Users'.

4 Likes

This is better than before! :+1:

Do you think it would be possible, in the future, to include this widened map when we click a user’s location too?

image

3 Likes

An upgrade to latest Discourse (2.6.0.beta5, 886d619d3f) with the Locations plugin active resulted in a blank site. It worked in safe mode when unofficial plugins were disabled. Commenting out the Locations plugin in the yaml file and rebuilding fixed the issue.

from_version: be5efc9410, f178532, 1460764, be5efc9410
repository: /var/www/discourse, /var/www/discourse/plugins/discourse-data-explorer, /var/www/discourse/plugins/discourse-locations, /var/www/discourse/plugins/styleguide
3 Likes

It’s due to a deprecation in core. I just pushed a fix

Would appreciate feedback.

3 Likes

Thanks for the quick fix, Robert. After a rebuild all is back to normal and working as expected.

2 Likes

There is a delay of about 3 seconds in map display at /u/user-map?period=location. During this time “No results were found” is shown. Is it possible to change this to say “Loading map…” instead?

I don’t have data to support it, but I think many users will not stick around and wait for the map to load since there is no indication it’s coming.

When page is first loaded:
map loading text

After about 3 seconds:

1 Like

Unfortunately the current architecture is at its limit. I recently deployed a fix which doubled this performance (goodness knows how you got on before?). Looks like you have an extremely demanding use case (quite an impressive number of locations!). I’m not sure we have a solution atm.

1 Like

It was faster before - can’t remember when it got slower, but performance is fine as-is; that’s not the complaint. Setting the expectation that the map is about to be displayed would be a good fix for this.

2 Likes

Got it, yes that’s more doable. Can you please raise the request here?

I can’t promise that it will get looked at imminently (am crazy busy at moment and have imminent house move to contend with) but this would address the demanding use cases to some extent, thanks for the suggestion.

2 Likes

You can change that text here:

Not sure where else Discourse uses it though :thinking:

2 Likes

Heh - yes - I didn’t want to go that route specifically for that reason. :slight_smile:

2 Likes

I’ve changed mine…

It produces this effect:

3 Likes

The unintended consequence is found in the Users List:

3 Likes

Sorry for the delay.

There’s no API for this afaics.

It’s just taking the value from the title:

2 Likes

Has anyone come across this before? that the map just occupies only a portion of the map space? It always displayed just fine, until we updated the plugin.

1 Like

Does this resolve if you remove the Layouts plugin?

2 Likes

Oddly, the map doesn’t show up (all blank) when I remove the layouts plugin. I was originally thinking it might be a CSS issue but the issue persists after I removed all CSS.

Which is real odd, because your map at Pavilion looks just fine.

1 Like

Cannot repro. Check for a Theme clash?

Latest update to core seems to have killed this stone dead:

image

Clicking the user map, or the map icon on a user card causes a self inflicted dos :pensive:

It then just keeps going, killing the browser stone dead within a handful of seconds:

dead2

Same on the user map page:

I’ve had to disable the plugin completely this morning.

1 Like

Related perhaps?

1 Like