# 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:** 23

<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: [August 21, 2023, 9:37am UTC](https://meta.discourse.org/t/locations-plugin/69742/938 "2023-08-21T09:37:52Z")

</div>

I’m just retesting a previously reported problem that it was thought had been fixed. Apologies for going back a month…little things like getting married, dog-sitting for a few weeks and an overseas visitor have kept me busy!

1. Set location topic default to User
2. Set a location for your user (if you don’t already have one)
3. Add a topic in a location enabled category. The topic gets your location and appears on the topic map with any other relevant markers.
4. Delete your user location
5. Add a topic to the same category as in (3). The topic doesn’t get your location (as you’d expect), but when you display the topic map all markers are missing.
6. Set location topic default to None - all markers reappeared on the topic map…initially. However, when viewing the user map there were no markers and after going back to the topic map all those markers have now disappeared again. I’ve tried deleting the two posts from (3) and (5), setting Location Topic Default back to User and adding a location back to my user but none of those make any markers reappear on any of the maps.

---

<div class="post-metadata">

### Author: ![OsaIsacson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osaisacson/32/263464_2.png) [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)
#### Post date: [September 27, 2023, 7:49am UTC](https://meta.discourse.org/t/locations-plugin/69742/939 "2023-09-27T07:49:59Z")

</div>

Has anyone implemented a view where you see the map on top and the list items underneath?

My client want this, but I’m advising against it. It seems to me like it would be cake on cake both ux and codewise since they both perform the same functions.

Opinions or tips on this?

---

<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: [September 27, 2023, 8:07am UTC](https://meta.discourse.org/t/locations-plugin/69742/940 "2023-09-27T08:07:10Z")

</div>

> [@OsaIsacson](#):
>
> the map on top

What map?

Are you referring to the Locations Plugin?

---

<div class="post-metadata">

### Author: ![OsaIsacson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osaisacson/32/263464_2.png) [@OsaIsacson](https://meta.discourse.org/u/OsaIsacson)
#### Post date: [September 27, 2023, 8:12am UTC](https://meta.discourse.org/t/locations-plugin/69742/941 "2023-09-27T08:12:34Z")

</div>

Apologies, yep I am. Looks like [this](https://bygg.boihop.co/c/gemenskaper/5/l/map?order=created) at present on my site.

In an ideal world selecting tags on top would limit both the map and a list under the map to the selected tag.  
Quickmock:

 ![Screenshot 2023-09-27 at 10.14.49](https://global.discourse-cdn.com/meta/original/4X/b/6/1/b61c518de28f6e2c8e6e8e2313428d798c6c3b1d.jpeg)  
 ![Screenshot 2023-09-27 at 10.15.21](https://global.discourse-cdn.com/meta/original/4X/b/3/a/b3ae868907e3067ca3faad1f6b66a233b4ac62c7.jpeg)

Perhaps one could:

1. Check if we are on the ‘Project and Gemenskaper’ page (easy)
2. Inject a duplicate list under the map (no clue how)
3. Hide the duplicate category/tags bar (easy)

…question is if that would make the tags work as expected (filtering both map and list on click and showing both) or if selecting one would make it default to only the list view - as it currently does when selecting a tag on the list.

Just spitballing. I don’t have a lot of hope.

---

<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: [September 27, 2023, 8:57am UTC](https://meta.discourse.org/t/locations-plugin/69742/942 "2023-09-27T08:57:15Z")

</div>

If you’d like to create such a view, PR accepted (so long as all else remains equal and this is just additional behaviour behind a setting).

If you need help to produce such a view on a commercial footing, you are welcome to reach out to me @ Pavilion (Locations is a Pavilion product).

---

<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: [September 27, 2023, 9:05am UTC](https://meta.discourse.org/t/locations-plugin/69742/943 "2023-09-27T09:05:36Z")

</div>

> [@OsaIsacson](#):
>
> Apologies, yep I am. Looks like [this](https://bygg.boihop.co/c/gemenskaper/5/l/map?order=created) at present on my site.

As it’s a feature request for this plugin I’ve moved it over to the relevant topic. 👍

---

<div class="post-metadata">

### Author: ![PeakProsperity](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@PeakProsperity](https://meta.discourse.org/u/PeakProsperity)
#### Post date: [October 10, 2023, 11:42am UTC](https://meta.discourse.org/t/locations-plugin/69742/944 "2023-10-10T11:42:31Z")

</div>

I’ve noticed my locations plugin has stopped geocoding even though my settings have remained unchanged and my API keys from LocationIQ are still valid. The issue happens when trying to assign a location to a topic. Whenever populating the fields, the map simply spins and spins and never completes.

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/3/d/f3da1eb147c25c523ae03024c23e58840f4dab3c.png)

Is this a known issue and do you have any thoughts on how to fix it? Thanks.

– Aaron

---

<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: [October 10, 2023, 12:21pm UTC](https://meta.discourse.org/t/locations-plugin/69742/945 "2023-10-10T12:21:52Z")

</div>

Anything suspicious in the browser console or in rails logs?

---

<div class="post-metadata">

### Author: ![PeakProsperity](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@PeakProsperity](https://meta.discourse.org/u/PeakProsperity)
#### Post date: [October 10, 2023, 12:59pm UTC](https://meta.discourse.org/t/locations-plugin/69742/946 "2023-10-10T12:59:04Z")

</div>

I don’t have access to the rails logs (need to ask the host), but nothing pops up when I click “Find Location”. It’s also worth mentioning I’m still on Discourse version 3.0.3.

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

---

<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: [October 30, 2023, 1:57pm UTC](https://meta.discourse.org/t/locations-plugin/69742/949 "2023-10-30T13:57:07Z")

</div>

Not sure if these need reporting, but I’m seeing quite a few deprecation notices for the Locations plugin, i.e.

```plaintext
Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:87:in `block in activate!`

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:88:in `block in activate!`

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:91:in `block in activate!`

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:92:in `block in activate!`

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:96:in `block in activate!`

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:97:in `block in activate!`

Deprecation notice: add_to_serializer should not be used to directly override include_*? methods. Use the include_condition keyword argument instead 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:98:in `block in activate!`

Deprecation notice: add_to_serializer's respect_plugin_enabled argument should be passed as a keyword argument 
At /var/www/discourse/plugins/discourse-locations/plugin.rb:223:in `block in activate!`

```

I’m running the latest Discourse and plugin versions.

---

<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: [October 30, 2023, 5:00pm UTC](https://meta.discourse.org/t/locations-plugin/69742/950 "2023-10-30T17:00:49Z")

</div>

I don’t know when this happened but my User Map has no user markers on it. I know there are over 20 users with a geo\_location set.

I’ve removed my own location and successfully re-added it so I don’t think geocoding is the problem. I’ve tried changing various settings but haven’t found anything that makes the users display again.

The topic location map has markers on it for the few topics that have locations set so it’s just users that are affected. I’m on the latest Discourse and Locations plugin.

Any thoughts on how to get my user markers back?

---

<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: [November 7, 2023, 11:19am UTC](https://meta.discourse.org/t/locations-plugin/69742/951 "2023-11-07T11:19:23Z")

</div>

Hello

Following an update yesterday of the latest version of the Location and Events plugins (and at the same time Discourse).

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

I encounter blocking bugs on the location and Events plugins 🙄

Map :  
[https://forums.ffjdr.org/map](https://forums.ffjdr.org/map)  
or  
[https://forums.ffjdr.org/c/e-irl/14/l/map](https://forums.ffjdr.org/c/e-irl/14/l/map)

Calendar :  
[https://forums.ffjdr.org/upcoming-events](https://forums.ffjdr.org/upcoming-events)  
or  
[https://forums.ffjdr.org/c/e-irl/14/l/calendar](https://forums.ffjdr.org/c/e-irl/14/l/calendar)

Agenda is OK :  
[https://forums.ffjdr.org/agenda](https://forums.ffjdr.org/agenda)  
or  
[https://forums.ffjdr.org/c/e-irl/l/agenda](https://forums.ffjdr.org/c/e-irl/l/agenda)

Thank you for your help (and for these great plugins!)

---

<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: [November 7, 2023, 11:21am UTC](https://meta.discourse.org/t/locations-plugin/69742/952 "2023-11-07T11:21:21Z")

</div>

Hey everyone, the Locations Plugin is now broken due to required upstream changes to facilitate the big ongoing Ember upgrade which is way more significant that usual.

CDCK were very good at giving us a heads up but we currently are working through the required changes and will get Locations back up as soon as we can.

We recommend you DO NOT rebuild for the time being if you wish to continue using the plugin.

Sorry to those of you who have already done so.

We will resolve it when we can.

Thanks very much for your interest in this free offering.

---

<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: [November 9, 2023, 12:19am UTC](https://meta.discourse.org/t/locations-plugin/69742/953 "2023-11-09T00:19:50Z")

</div>

> [@merefield](#):
>
> Thanks very much for your interest in this free offering.

And thank _you_ for the continued time and support that you dedicate to this free offering 👏 🙇‍♂️

---

<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: [November 9, 2023, 11:31am UTC](https://meta.discourse.org/t/locations-plugin/69742/954 "2023-11-09T11:31:31Z")

</div>

> [@merefield](#):
>
> We recommend you DO NOT rebuild for the time being if you wish to continue using the plugin.

Just not rebuild? So we’re safe to do upgrades from the Web Admin page?

---

<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: [November 9, 2023, 11:42am UTC](https://meta.discourse.org/t/locations-plugin/69742/955 "2023-11-09T11:42:46Z")

</div>

Neither, I’m afraid.

Just pretend you are on stable 🙂

---

<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: [November 13, 2023, 3:11pm UTC](https://meta.discourse.org/t/locations-plugin/69742/956 "2023-11-13T15:11:48Z")

</div>

I’ve just merged many early mornings and late nights of work to get this show back on the road.

It is _very_ different in implementation from the old plugin so please bear with there are probably lots of issues, I’ve barely tested it in Production:

- As part of the changes I’ve deprecated the use of widgets in favour of Glimmer implementation (widgets will eventually be on their way out). This was quite a journey, I can tell you, as the original widget code is very esoteric indeed. This should set us in good stead for a good while.
- There’s a new search system which is a little OTT (be good to add group capability at some point? if someone wants to sponsor that get in touch! )
- It no longer supports Layouts, but Layouts is currently 💀 so that’s moot - I’ll look to add back Layouts support when Layouts returns from the 💀
- I’ve cut some corners to get here so quickly - I’ve not added any additional FE tests … may get time to add ones for the maps over time.

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

NB I’ve added a compatibility file so Stable should still use the old code whilst we iron out the bugs in this new approach over time …

Known Issues:

- expand doesn’t work nicely atm.
- Name search on the User map has issues.
- Layouts is not yet supported (but that’s currently 💀 )

---

<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: [November 13, 2023, 3:55pm UTC](https://meta.discourse.org/t/locations-plugin/69742/957 "2023-11-13T15:55:10Z")

</div>

Hello

Il have just update and …the map live 😍 😍 😍

> **[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:

Merci beaucoup 💞

---

<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: [November 13, 2023, 8:51pm UTC](https://meta.discourse.org/t/locations-plugin/69742/958 "2023-11-13T20:51:29Z")

</div>

that’s great @Stephane_Roy … but I think also screaming out for a dark mode?

I haven’t had time to look at that yet as an auto integration into the plugin, but there was this CSS I shared a while back you can add as a Theme Component:

```plaintext
:root {
  --map-tiles-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

.locations-map {
  .leaflet-tile-pane {
    filter:var(--map-tiles-filter, none);
  }
  .leaflet-marker-shadow {
    display: none;
  }
}

```

that I believe still works …

 ![image](https://global.discourse-cdn.com/meta/original/4X/e/f/2/ef2ed3aff5b3af9dcc27ce6957fce7e35b4e42eb.jpeg)

might be a little easier on the eyes? 🕶

---

<div class="post-metadata">

### Author: ![Roi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roi/32/130587_2.png) [@Roi](https://meta.discourse.org/u/Roi)
#### Post date: [November 16, 2023, 10:35pm UTC](https://meta.discourse.org/t/locations-plugin/69742/959 "2023-11-16T22:35:46Z")

</div>

> [@merefield](#):
>
> I haven’t had time to look at that yet as an auto integration into the plugin, but there was this CSS I shared a while back you can add as a Theme Component:

Still works (“normal” and dark): [https://www.sidemount-forum.com/u/user-map](https://www.sidemount-forum.com/u/user-map)

Btw, I just upgraded and also the plugin works again (but I skipped the non-working time period 😉).

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

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