# תוסף מיקומים 🌍

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

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [13 בדצמבר,‏ 2023,‏ 1:43am UTC](https://meta.discourse.org/t/locations-plugin/69742/980 "2023-12-13T01:43:42Z")

</div>

What version of discourse you’re currently on?

---

<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: [13 בדצמבר,‏ 2023,‏ 7:52am UTC](https://meta.discourse.org/t/locations-plugin/69742/981 "2023-12-13T07:52:39Z")

</div>

I believe many people have migrated to the new Locations fact tables with no issues, so this is something peculiar to your instance.

As you can see from the code, I’ve tried to capture safely many cases where the data is bad (and ignore them), but might have missed a scenario and there is some kind of illegal json value.

Can you please either delete that Topics Custom Field (`TopicCustomField`) or fix its value, then retry.

There’s probably no point in keeping it because it’s likely an illegal value.

If there are not many Topics with locations, you can browse through them with this on the rails console:

`TopicCustomField.where(name: "location").all`

You can still access that custom field without the plugin installed.

Let me know what you find.

If this can be confirmed, I might improve the script.

> [@xiasummer](#):
>
> Encountered the same problem

I’m not aware of another report of this issue on this plugin.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [13 בדצמבר,‏ 2023,‏ 8:28am UTC](https://meta.discourse.org/t/locations-plugin/69742/982 "2023-12-13T08:28:18Z")

</div>

> [@merefield](#):
>
> I’m not aware of another report of this issue on this plugin.

I think that was a hangover from the posts being split from another topic before Locations was identified as the issue.

---

<div class="post-metadata">

### Author: ![xiasummer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xiasummer/32/82790_2.png) [@xiasummer](https://meta.discourse.org/u/xiasummer)
#### Post date: [13 בדצמבר,‏ 2023,‏ 11:55am UTC](https://meta.discourse.org/t/locations-plugin/69742/983 "2023-12-13T11:55:22Z")

</div>

I was from 3.2.0 beta2, upgrading to version 3.2.0 beta4-dev.

using branch test-passed.

I used too many topics with location, so don’t really dare to delete them.

Hope the next version of rebuild is OK for this plugin.

---

<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: [13 בדצמבר,‏ 2023,‏ 12:02pm UTC](https://meta.discourse.org/t/locations-plugin/69742/984 "2023-12-13T12:02:02Z")

</div>

I’m afraid you are going to have to do some investigation or it will likely fail again.

Please read my post above carefully.

---

<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: [18 בדצמבר,‏ 2023,‏ 10:33pm UTC](https://meta.discourse.org/t/locations-plugin/69742/985 "2023-12-18T22:33:10Z")

</div>

I’ve just merged this big update that supports Zeitwerk properly and adds Ember 5 support:

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

Let me know if there are any issues.

---

<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: [18 בדצמבר,‏ 2023,‏ 10:57pm UTC](https://meta.discourse.org/t/locations-plugin/69742/986 "2023-12-18T22:57:01Z")

</div>

@renato has kindly provided this awesome PR to add User Cards to User Map marker clicks!

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

Love it! 🚀 Thanks @renato !

@jimkleiber

---

<div class="post-metadata">

### Author: ![jimkleiber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimkleiber/32/121814_2.png) [@jimkleiber](https://meta.discourse.org/u/jimkleiber)
#### Post date: [19 בדצמבר,‏ 2023,‏ 4:24am UTC](https://meta.discourse.org/t/locations-plugin/69742/987 "2023-12-19T04:24:59Z")

</div>

Woohoo! I’m very excited to see this PR and grateful to @renato and @merefield for making it happen and @merefield for notifying me of it.

I just tested it out on one of my instances and I think I noticed a bug: when the map is fullscreen, the clicks don’t seem to show the card or navigate to the user profile.

Otherwise, I really like it, thank 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: [19 בדצמבר,‏ 2023,‏ 9:30am UTC](https://meta.discourse.org/t/locations-plugin/69742/988 "2023-12-19T09:30:11Z")

</div>

good catch! @renato do you want to have a look at that scenario and perhaps add unit tests to the fix? (then we wouldn’t have missed it).

(weirdly it works on my android phone btw, but not desktop Edge nor Firefox).

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [19 בדצמבר,‏ 2023,‏ 1:56pm UTC](https://meta.discourse.org/t/locations-plugin/69742/989 "2023-12-19T13:56:12Z")

</div>

To be honest I didn’t even notice we had this full-screen view 😄

It looks like the user card is opening, but behind the map when it’s `fixed` with a higher `z-index`:

> <https://github.com/merefield/discourse-locations/blob/2d70bd5dc78edd8c6ca35f2c3b81fed1639447d3/assets/stylesheets/common/locations.scss#L271-L279>

The user card uses `float-kit`’s `z-index`:

> <https://github.com/discourse/discourse/blob/2a10ea0e3f858f243330edce5a07015df72d7f88/app/assets/stylesheets/common/float-kit/d-menu.scss#L19-L19>

> <https://github.com/discourse/discourse/blob/e0f848c2eabed2ced3af863418a37d20f3cc4c2e/app/assets/stylesheets/common/foundation/variables.scss#L105-L105>

---

<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: [19 בדצמבר,‏ 2023,‏ 4:16pm UTC](https://meta.discourse.org/t/locations-plugin/69742/990 "2023-12-19T16:16:19Z")

</div>

Yes! And explains why there’s no issue on mobile!

---

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [19 בדצמבר,‏ 2023,‏ 4:40pm UTC](https://meta.discourse.org/t/locations-plugin/69742/991 "2023-12-19T16:40:39Z")

</div>

> [@merefield](#):
>
> awesome PR to add User Cards to User Map marker clicks!

That’s a very nice feature.

One small problem (being picky!)…if you click on an avatar near the right hand edge of the map the user card falls off the edge of the screen. The same happens with avatars near the bottom of the map, with the user card falling off the bottom of the screen. If the avatar is very close to the bottom it’s moved up to be more visible, but if you move the avatar a bit further away from the bottom it’s placed lower down so some of the card can’t be seen. Scroll bars can be used to view the card but I think it would be better if the card was positioned fully on the screen.

---

<div class="post-metadata">

### Author: ![renato](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/renato/32/383632_2.png) [@renato](https://meta.discourse.org/u/renato)
#### Post date: [19 בדצמבר,‏ 2023,‏ 5:44pm UTC](https://meta.discourse.org/t/locations-plugin/69742/992 "2023-12-19T17:44:38Z")

</div>

I’ll take a look when I get a chance, but I can also reproduce the card overflowing to the bottom on core if the avatar from a post stream is in a specific area:

 ![overflowing bottom](https://global.discourse-cdn.com/meta/original/4X/c/0/d/c0de128ceb6654c6b48003a6f9f232013a4a9cdd.jpeg)

I couldn’t reproduce the card overflowing to the right, though.

The user avatars are in a `position: absolute` container to display the map and it may affect `float-kit`s boundary detection strategy.

---

<div class="post-metadata">

### Author: ![Don](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/don/32/228726_2.png) [@Don](https://meta.discourse.org/u/Don)
#### Post date: [20 בדצמבר,‏ 2023,‏ 9:33am UTC](https://meta.discourse.org/t/locations-plugin/69742/993 "2023-12-20T09:33:10Z")

</div>

Thanks for the update Robert 🎉 Works really great on Ember 5.  
I’ve only noticed one issue but it maybe not related with this update. When the user remove the location from settings then it will still appear the empty location on the `/u/username` user page.

![Screenshot 2023-12-20 at 10.30.12](https://global.discourse-cdn.com/meta/original/4X/8/1/8/81832c7dd002ade0f62b28e2f0bfed451d1bf4b4.png)

Thanks 🙂

---

<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: [20 בדצמבר,‏ 2023,‏ 9:37am UTC](https://meta.discourse.org/t/locations-plugin/69742/994 "2023-12-20T09:37:38Z")

</div>

Oh thanks for the report, I’ll take a look.

---

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [20 בדצמבר,‏ 2023,‏ 1:51pm UTC](https://meta.discourse.org/t/locations-plugin/69742/995 "2023-12-20T13:51:12Z")

</div>

This is an example of the card overflowing to the right…

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/b/7/bb7c5588f87df7660acc1c64920cdbf9c62b5560.jpeg)

---

<div class="post-metadata">

### Author: ![Stephane\_Roy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephane_roy/32/222598_2.png) [@Stephane\_Roy](https://meta.discourse.org/u/Stephane_Roy)
#### Post date: [20 בדצמבר,‏ 2023,‏ 9:16pm UTC](https://meta.discourse.org/t/locations-plugin/69742/996 "2023-12-20T21:16:57Z")

</div>

Hello just updated to the latest version.  
It’s OK 👍

The function “open user card on map avatar click” is fabulous: very practical for accessing a user’s information (their answers to questions for example) and elegant at the same time 😍

- Would it be possible for the map area to use all the available space?

- Could be a bug: in full screen the map is partially refreshed at the edges..

Users map :  
[https://forums.ffjdr.org/locations/users\_map](https://forums.ffjdr.org/locations/users_map)

---

<div class="post-metadata">

### Author: ![Stephane\_Roy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephane_roy/32/222598_2.png) [@Stephane\_Roy](https://meta.discourse.org/u/Stephane_Roy)
#### Post date: [20 בדצמבר,‏ 2023,‏ 9:32pm UTC](https://meta.discourse.org/t/locations-plugin/69742/997 "2023-12-20T21:32:57Z")

</div>

A big THANK YOU from France for this dark theme.

The map now fits much better with the Starwars theme.

Would these 2 improvements be possible:

- Makes the search box more readable. By changing its background or the color of the font?

- Being able to choose on which criteria the search is carried out by default?  
On the user map the speudo would be more relevant.

Events map:

> **[Conventions JdR](https://forums.ffjdr.org/c/e-irl/14/l/map)**
>
> « Carte » pour une carte de France des conventions…
> « Agenda » pour une liste chronologique.
> ..Ajoutez les conventions de votre région !!
> Procédure et conseils via:

- And also with this link : “Sorry, we were unable to generate a preview for this web page, because the web server returned an error code of 500. Instead of a preview, only a link will appear in your post”

---

<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: [20 בדצמבר,‏ 2023,‏ 10:55pm UTC](https://meta.discourse.org/t/locations-plugin/69742/998 "2023-12-20T22:55:41Z")

</div>

> [@Stephane\_Roy](#):
>
> Could be a bug: in full screen the map is partially refreshed at the edges…

It’s a known issue.

I’m afraid I’m stretched across a lot of projects so I cant provide a resolution estimate.

---

<div class="post-metadata">

### Author: ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)
#### Post date: [21 בדצמבר,‏ 2023,‏ 8:47am UTC](https://meta.discourse.org/t/locations-plugin/69742/999 "2023-12-21T08:47:44Z")

</div>

> [@Stephane\_Roy](#):
>
> Makes the search box more readable. By changing its background or the color of the font?

Perhaps adding ‘Search’ as placeholder text would also help?

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

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