Check the setting location users map limit. If itโs lower than the number of users who have added their location, the ones after the limit number will not be shown on the map.
That was it. Thanks. ![]()
Some of my users encounter a rate limit with the default provider (nominatim) that makes them wait one minute before trying again.
Weirdly, I donโt come across any kind of limit.
See: The location field in profile is kind of broken - Forum Feedback - Unicyclist.com
- Any idea why I donโt encounter any limit whereas some users encounter it? I tried writing long locationsโ names while typing fast.
- What would be your second choice for the location_geocoding_provider setting (for a free usage)?
- Whatโs the location_geocoding_debounce setting?
I see that in nominatimโs usage policy that โAuto-complete search This is not yet supported by Nominatim and you must not implement such a service on the client side using the API.โ
There is no auto-completion in the location button on a new topic, but there is one in the custom user field:



- Is this a forbidden usage?

Yes, and no. Mostly no. It can be against GDPR, if the location comes automatically without userโs action AND the site is driven by a company or community, meaning not a private person, AND it is not needed.
Butโฆ geo-location is really unaccurate. I donโt know how things are in France but in Finland all operators act countrywide so every time my IP changes, changes my location and everytime it points to wrong city.
And IP is not considered as personal data, but more or less as public data that cannot use to identify a single person.
But in use of the plugin geo-location isnโt forbidden, prohibited or unlegal, because an user wants to show it. And using IP as source of location is never unlegal.
There can be some more moral issues, though. But it depends of forum.
I may misunderstand how the plugin works actually. Iโll have to read all this topic. Thanks for your reply. ![]()
You can only use Nominatim for testing. For production use I would recommend
Just following this up from last month, apologies, Iโd somehow missed any notifications to replies ![]()
Our other site, which is displaying the larger text is using Leaflet v1.5.1
I see the Locations plugin was 1.3.4 and is now 1.7.1, which means the version isnโt an issue.
Agreed.
Just to remind people, the text is so small on our Locations map that itโs unreadable.
Example with screen shots here: Locations Plugin ๐ - #736 by Richie
Thanks Robert @merefield yes I do have access to the source of the other site where the text is larger but on the same basemap.
The difference I believe is that there is an additional parameter being passed:
tileSize: 512
Itโs applied in this context:
// Attribution
var mbAttr = 'Map © <a href="https://www.openstreetmap.org/">OpenStreetMap</a>, Imagery ยฉ <a href="https://www.mapbox.com/">Mapbox</a>, Content © <a href="https://GreyArro.ws/">Grey Arrows Drone Club</a>',
mbUrl = 'https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}?access_token=<%=Variabs.GlobalVariables.strOpenStreetMapKey%>',
mbMaxZoom = '20'
;
// Basemaps
var
// Full list: https://gis.stackexchange.com/a/244797/145060
// Full list: https://docs.mapbox.com/help/troubleshooting/migrate-legacy-static-tiles-api/#which-classic-styles-are-being-deprecated
// Full list: https://docs.mapbox.com/api/maps/#mapbox-styles
dark = L.tileLayer(mbUrl, { id: 'dark-v10', maxZoom: mbMaxZoom, attribution: mbAttr, tileSize: 512, zoomOffset: -1 }),
road = L.tileLayer(mbUrl, { id: 'outdoors-v11', maxZoom: mbMaxZoom, attribution: mbAttr, tileSize: 512, zoomOffset: -1 }),
satellite = L.tileLayer(mbUrl, { id: 'satellite-v9', maxZoom: mbMaxZoom, attribution: mbAttr, tileSize: 512, zoomOffset: -1 }),
hybrid = L.tileLayer(mbUrl, { id: 'satellite-streets-v11', maxZoom: mbMaxZoom, attribution: mbAttr, tileSize: 512, zoomOffset: -1 })
;
Therefore, I think I have a feature request ![]()
Please can we add a tileSize to the plugin settings?
Unless I can somehow pass the desired tilesize in the Map tile layer uri setting? ![]()
Hello,
I noticed an issue with composer location button I think.
Discourse version a6abf8d07a
Thank you ![]()
Thanks @Don I can repro, although it doesnโt seem to stop the show, Iโll take a look v soon
Itโs due to a breaking change from this commit in core: FIX: Use CSS transition to make room for composer (#16750) ยท discourse/discourse@9ea8a4a (github.com)
Iโve pushed a fix together with some minor formatting tweaks to improve the L&F:
Thank you Robert
I am really appreciate you fix this so quickly out of maintenance time. I will update soon and update this post as well how it works. ![]()
Works fantastic thanks again! ![]()
Hi. Anyone know if itโs possible somehow to add a location to a map by dropping a pin with this plugin?
The locations of some communities are in places that are hard to identify without the use of coordinates, which might put some users off adding a location. Thanks!
I was sure someone requested this before but itโs not on the current list afaics.
Feature requests can be made here: Pavilion
But please note we are usually busy enough maintaining the plugins that new features are rare without someone sponsoring the work.
We would also welcome PRs. This is an especially good feature to add.
Hello,
I noticed an issue with location under topic title. If a user remove a previously added location from /preferences/profile
Then it will show an empty location under topic title instead of remove it.
Thank you ![]()
Hi!
Iโve modified list/topic-list-item.raw template to display the location on the topic list:
{{#if topic.location}}
<div class="title-location">
{{d-icon 'map-marker-alt'}} {{location-format topic.location opts}}{{location-label-container}}
</div>
{{/if}}
But I think my condition isnโt properly written, because if I disable the plugin, the topic list loop breaks.
What would be the correct way to check if the topic location exists in the handlebars template?
Overriding this seems a bit extreme, why not use connectors?:
topic-list-after-title OR
topic-list-before-category
Take a look at An interesting strategy for passing properties via raw template plugin outlets
Because I didnโt find the right ones (or maybe they didnโt exist at the time I modified the template, about 2 years ago) ![]()
Will probably be easier this way, Iโll give it a try, thanks!
Uhโฆ Canโt achieve to use these connectors.
Boring stuff I've tried and looked at
Iโve read Developing Discourse Themes & Theme Components.
Assuming this is how we add HTML code in a connector:
<script type="text/x-handlebars" data-template-name="/connectors/topic-above-post-stream/test">
<div style="height: 200px; width: 200px;background: red"></div>
</script>
I tried
<script type="text/x-handlebars" data-template-name="/connectors/topic-list-after-title/test">
<div style="height: 200px; width: 200px;background: red"></div>
</script>
But it didnโt work. Is that because topic-list-item is a .hbr and not a .hbs file?
I used (deprecated) Plugin outlet locations theme component but the outlets inside the topic list donโt show up.
I also looked at this What is the difference between raw.hbs handlerbar files and only .hbs handlerbar files?.
Or maybe I just need to create a theme component with an additional file, like this https://github.com/discourse/discourse-topic-thumbnails/blob/main/javascripts/discourse/connectors/topic-list-before-link/topic-thumbnail.hbr?
But here, new connectors are created, while topic-list-after-title and topic-list-before-category already existโฆ So Iโm a bit puzzled here.
Maybe this helps?:
![]()

{{context.topic.location.street}}

or even better:
{{location-format context.topic.location}}
which leads to:
![]()
which you can then refine with CSS (eg move to new line).
Yup, perfect, thanks a lot Robert!
https://github.com/Canapin/topic-list-locations
So, for those who are interested, this theme component simply adds the locations to the topic list.
์์๋ ์ ์ฌ์ฉํ๋ ๊ฒ์ด ํจ์ฌ ์ฐ์ํ์ง๋ง, ๋ฌธ์ ๊ฐ ํ๋ ์์ต๋๋ค.
์์๋ ์ ์์น๋ ๋ฐ๋ก ์ฃผ์ ์ ๋ชฉ์ ๋คโฆ ๊ทธ๋ฆฌ๊ณ ๋ฐฐ์ง div(์ฝ์ง ์์ ๋ฉ์์ง๋ ์ ์ฃผ์ ๋ฅผ ๋ํ๋ด๋ ์ ์ ํ์ํ๋ ๊ณณ)์ ์์ ์์ต๋๋ค. ๊ทธ ๊ฒฐ๊ณผ:
CSS๋ฅผ ์ฌ์ฉํด๋(์ฌ๋ฌ ๊ฐ์ง๋ฅผ ์๋ํด ๋ณด์์ต๋๋ค) ์ด ๋ฌธ์ ๋ฅผ ์ฝ๊ฒ ํด๊ฒฐํ ์ ์๋ ๋ฐฉ๋ฒ์ ์ฐพ์ง ๋ชปํ์ต๋๋ค.
๋ํ #contribute:feature์์ ์๋ก์ด ์์๋ ์ ์์ฒญํ๋ ๊ฒ์ Discourse์ ์ถ๊ฐ๋ ๋งํผ ํฅ๋ฏธ๋กญ์ง ์๋ค๊ณ ๋๊ปด์ง๋๋ค.
์์ : ๋ฐฐ์ง๊ฐ ์์น ๋ฐ๋ก ์์ ์ค๋๋ก ์กฐ์ ํ์ต๋๋ค. ์ด ์ ๋๋ฉด ๋ฉ๋๋ค.






