# Locations Plugin 🌍

**URL:** https://meta.discourse.org/t/locations-plugin/69742
**Category:** Plugin
**Tags:** paid-support
**Created:** [September 10, 2017, 10:36am UTC](https://meta.discourse.org/t/locations-plugin/69742 "2017-09-10T10:36:41Z")
**Posts on this page:** 20
**Page:** 29

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 9, 2024, 10:32am UTC](https://meta.discourse.org/t/locations-plugin/69742/1062 "2024-06-09T10:32:12Z")

</div>

And thanks to @RGJ I’ve also got rid of the jQuery.

Three 🐦 🐦 🐦, one 🪨

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [June 9, 2024, 10:50am UTC](https://meta.discourse.org/t/locations-plugin/69742/1063 "2024-06-09T10:50:02Z")

</div>

How do you know a dev is bored?

> [@merefield](#):
>
> I’ll take a look this week

Translates to: one hour

> [@merefield](#):
>
> I’ll probably not get around to that very soon

Translates to: one hour

😂

(Sorry off topic 🥴 )

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [June 9, 2024, 10:59am UTC](https://meta.discourse.org/t/locations-plugin/69742/1064 "2024-06-09T10:59:09Z")

</div>

ha ha - ha ha

And then one more 🥰.

I’m sure, many other _Discodians_ had noted this thing today (but failed to elaborate).

---

<div class="post-metadata">

### Author: ![blue-sky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blue-sky/32/381057_2.png) [@blue-sky](https://meta.discourse.org/u/blue-sky)
#### Post date: [June 9, 2024, 11:10am UTC](https://meta.discourse.org/t/locations-plugin/69742/1065 "2024-06-09T11:10:18Z")

</div>

Can we drag on the mini-map after click the ‘Show Map’ button under the topic title?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 9, 2024, 11:38am UTC](https://meta.discourse.org/t/locations-plugin/69742/1066 "2024-06-09T11:38:44Z")

</div>

You can drag the map around internally but no you can’t drag the map _container_ around.

I’m not sure how you’d distinguish between the two actions? 🤔

In any case PR welcome, that would be nice.

---

<div class="post-metadata">

### Author: ![blue-sky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blue-sky/32/381057_2.png) [@blue-sky](https://meta.discourse.org/u/blue-sky)
#### Post date: [June 9, 2024, 11:46am UTC](https://meta.discourse.org/t/locations-plugin/69742/1067 "2024-06-09T11:46:11Z")

</div>

I mean drag around internally on the mini-map. It not worked after click the ‘Show Map’ button under the topic title. The mini-map will close immediately when I try to drag or click on the mini-map internally.

---

<div class="post-metadata">

### Author: ![blue-sky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blue-sky/32/381057_2.png) [@blue-sky](https://meta.discourse.org/u/blue-sky)
#### Post date: [June 9, 2024, 11:55am UTC](https://meta.discourse.org/t/locations-plugin/69742/1068 "2024-06-09T11:55:39Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/b/7/7/b7770319284544eb91f25bbe7ead5ae0357afec0.png)  
This is a discussion from the past.  
Hi Robert, that’s the problem. It’s not solved yet. Am I right?

---

<div class="post-metadata">

### Author: ![Bathinda](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bathinda/32/135888_2.png) [@Bathinda](https://meta.discourse.org/u/Bathinda)
#### Post date: [June 9, 2024, 11:57am UTC](https://meta.discourse.org/t/locations-plugin/69742/1069 "2024-06-09T11:57:38Z")

</div>

I’m able to drag the map, but it (the map) will disappear as soon as I release the mouse button.  
Iow, I can drag, but not too much.

---

<div class="post-metadata">

### Author: ![blue-sky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blue-sky/32/381057_2.png) [@blue-sky](https://meta.discourse.org/u/blue-sky)
#### Post date: [June 9, 2024, 12:01pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1070 "2024-06-09T12:01:15Z")

</div>

yes, same with you.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 9, 2024, 12:03pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1071 "2024-06-09T12:03:10Z")

</div>

That’s interesting, yes.

The behaviour is different on the User Cards to the Topic Title.

On iOS iPad, the drag doesn’t cause a premature close on either though.

But on desktop, there’s definitely room (and potentially) scope for improvement here (since User Card seem to work fine?)

I can’t promise when I’ll look at that, but PR welcome in meantime.

---

<div class="post-metadata">

### Author: ![blue-sky](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blue-sky/32/381057_2.png) [@blue-sky](https://meta.discourse.org/u/blue-sky)
#### Post date: [June 9, 2024, 12:15pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1072 "2024-06-09T12:15:53Z")

</div>

ok, thx to Robert. here is the report: [The mini-map will close immediately when I try to drag or click on the mini-map internally. - Discourse Locations - Pavilion](https://coop.pavilion.tech/t/the-mini-map-will-close-immediately-when-i-try-to-drag-or-click-on-the-mini-map-internally/3572?u=skyzzu100)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [June 12, 2024, 1:50pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1073 "2024-06-12T13:50:35Z")

</div>

Thanks, I hope this resolves it:

[https://github.com/paviliondev/discourse-locations/pull/113](https://github.com/paviliondev/discourse-locations/pull/113)

---

<div class="post-metadata">

### Author: ![ckshen](https://avatars.discourse-cdn.com/v4/letter/c/ad7895/32.png) [@ckshen](https://meta.discourse.org/u/ckshen)
#### Post date: [July 16, 2024, 6:04pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1074 "2024-07-16T18:04:46Z")

</div>

> [@merefield](#):
>
> > [@ckshen](#):
> >
> > Question: Entire entered addresses used to show up under the topic header next to the map icon. Lately only the map icon shows up but not the address itself. Is this a recent change? Is there a way to have the address show up again? Thanks!
> 
> Sorry for slow response!
> 
> - how to reproduce reliably, can you provide exact steps?
> - what version of Discourse are you using?
> - what do you see in the HTML (using inspector)
> - do you see any error messages in console or log?
> - what is recorded in the User Custom Field for geo\_location? Take a look at `/u/<username>.json`

Sorry @merefield for the late response. I haven’t visited Meta for a while so only just saw your post now.

**how to reproduce reliably, can you provide exact steps?**

Our site is at [www.hungryonion.org](http://www.hungryonion.org). See this example:  
[Maine trip report 6/29-7/7 (mostly coastal areas north and south of Portland) - Regional Dining Discussions / Boston, New England - Hungry Onion](https://www.hungryonion.org/t/maine-trip-report-6-29-7-7-mostly-coastal-areas-north-and-south-of-portland/39717)

I edited the OP title, click add address button, type in address, select mapped address, click ok.

Same results if I start a new post and add an address.

It happens every time.

**what version of Discourse are you using?**

Discourse- 3.3.0 beta 1  
Locations- [3c350d0a](https://github.com/paviliondev/discourse-locations/commit/3c350d0a53dd8ea26286d7720cbbd35931d685cb)

**what do you see in the HTML (using inspector)**

The `location-text` is empty. this is a post with the address added within the last few weeks.

 ![image](https://global.discourse-cdn.com/meta/original/4X/c/3/e/c3e771c75854a5920a5360aa3b283bc8fb558253.png)

this is a post with the address added a few years ago. the `location-text` is populated as expected:

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/a/6/0a6773277628aaa70b2c8feccab2a38d25bc8cf4.png)

**do you see any error messages in console or log?**

Console: no  
Log: no

**what is recorded in the User Custom Field for geo\_location? Take a look at `/u/<username>.json`**

There isn’t any `geo_location` information for that user who posted the OP.

Thanks for looking into this!

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 31, 2024, 6:12pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1075 "2024-08-31T18:12:02Z")

</div>

Any chance we could get the placeholder text “Map loading…” while the map loads, please? It used to be part of the plugin but seems to have dropped off at some point.

We have ~1900 users on our map and it takes about 10 seconds to load from this

 ![Screenshot 2024-08-31 at 11.09.40 AM](https://global.discourse-cdn.com/meta/original/4X/f/3/1/f31da79a6b78a7a06386e570365fb6ab25d3636f.png)

to this

 ![Screenshot 2024-08-31 at 11.10.37 AM](https://global.discourse-cdn.com/meta/original/4X/b/b/3/bb33d3a7bcf91f365953c31a612f95f04b1580f6.jpeg)

On this droplet at DigitalOcean:

 ![Screenshot 2024-08-31 at 11.13.36 AM](https://global.discourse-cdn.com/meta/original/4X/a/8/1/a818d4eeea1bceb5dadd1271daaa0c4d33ffdb00.png)

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 31, 2024, 6:23pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1076 "2024-08-31T18:23:04Z")

</div>

The issue is deeper than that.

There’s a big opportunity to improve the performance here for larger user sets but no-one has ponied up the PR or funding to make that happen.

Perhaps if we make this a subscription product we might have the incentive to address these things …

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [August 31, 2024, 6:36pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1077 "2024-08-31T18:36:31Z")

</div>

I’m OK with the wait for the map to load as long as the user understands that it’s loading and doesn’t click away thinking that it’s broken. Once it’s loaded, it works very well with this number of mapped members.

@Richie - what’s your experience with load times?

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [September 3, 2024, 5:59pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1078 "2024-09-03T17:59:48Z")

</div>

Hi @omarfilip ours is around five seconds for ~2880 users on the map 🤔

My droplet spec is almost half of yours 🤔

 ![Screenshot 2024-09-03 at 18.59.02](https://global.discourse-cdn.com/meta/original/4X/4/d/0/4d0d47fa37f95bae16e0328a611835e5ea704605.png)

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [September 3, 2024, 6:20pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1079 "2024-09-03T18:20:07Z")

</div>

I have it still on Ubuntu 16.04.7 LTS. Wonder if that could be a factor.

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [September 3, 2024, 7:02pm UTC](https://meta.discourse.org/t/locations-plugin/69742/1080 "2024-09-03T19:02:49Z")

</div>

That is awful old. No matter if it is the reason or not is should update ASAP (not update-update, but create new one and moving everything over, you know)

---

<div class="post-metadata">

### Author: ![kOS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kos/32/441826_2.png) [@kOS](https://meta.discourse.org/u/kOS)
#### Post date: [October 28, 2024, 10:47am UTC](https://meta.discourse.org/t/locations-plugin/69742/1081 "2024-10-28T10:47:24Z")

</div>

Very nice, very nice.

May I ask for help, please?

Ive tried to change the style of the Map to a custom style, taken from the website that is linked at the related field. That didnt worked as I expected, so maybe a more detailed explanation of how the input shall be structured could help in general others.  
My first question is: Do you know any map that would provide a more or less realtime display of Night/Sunlight display? That would be so cool to have.

 ![This image depicts a world map on a dark gray background, with green continents and a yellow dot indicating a location in South America. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/c/c/3/cc3f4ed71699552a6596e3669d5cf526f46c8d5d.png)

Second Question:  
In the Preferences/Profile, Users get asked **four Times** 4️⃣ about where they are in the world 😃 😃 .

For us in our forum it asks for:

1. Timezone
2. Location
3. Region
4. Map Location (this seems to be the one that populates the User-Map?)

Is there any way to reduce this to ONE single Question? By telling my Map Location (im fine with the biggest city close by followed by Country), we could automate and calculate the Timezone.  
If we can do this, Id love to follow your guidance and bring some minimalism to the profile locations.

[Previous page](https://meta.discourse.org/t/locations-plugin/69742.md?page=28)

[Next page](https://meta.discourse.org/t/locations-plugin/69742.md?page=30)
